Has anyone encountered this?
var_dump(CRYPT_SHA256 == 1); // returns bool(true)
var_dump(defined(CRYPT_SHA256)); // returns bool(false)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Add quotation marks
Otherwise, you are asking whether the value of the
CRYPT_SHA256constant is also the name of another constant….Edit : Add namespace
If your constant is defined in a namespace, you must include it in the constant name.
This is not the case in the original question, but it can be a cause of the same problem too.