3

Please correct me if I am wrong. From what I gather, PHP should issue a warning for this but doesn't. I am using PHP 5.2.17. How can I fix this? I am assuming this is set somewhere in php.ini?

2 Answers 2

4

Check the docs for error reporting. I believe if you enable E_NOTICE you'll see warnings for undefined variables. You can read up on all the error reporting constants here.

Sign up to request clarification or add additional context in comments.

Comments

3

Probably error reporting is off.

error_reporting(-1);

Or, you are using a variable in a way that it does not have to be declared.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.