Page 1 of 1

display_errors = On not showing up in phpinfo() [SOLVED]

Posted: Fri Sep 14, 2007 11:49 am
by hardi
So that's the problem. I made a fresh install of PHP 5.2.4 Apache 2.2.6 and Mysql5.0.45.
I set the display_errors value to On in php.ini, but phpinfo() shows that display_errors is Off.
I have restarted the webserver and my computer but nothing changed. When I write a faulty script and run it from command line, it produces an error, but when run through apache, it gives no errors. The phpinfo() outputs the right php.ini filename, which I edited - so it's not reading a wrong php.ini file.

What could be the problem?

Posted: Fri Sep 14, 2007 12:34 pm
by anjanesh
Have you tried refreshing the page after clearing the cache ?

SOLVED

Posted: Fri Sep 14, 2007 1:48 pm
by hardi
there were 2 evaluations in php.ini both were display_errors = somevalue.
when setting the value, I searched for display_errors and changed it and expected it to change in phpinfo() too, but it didn't, because later in the file, there was another display_errors = Off and that pretty much nilled my effort.

Posted: Fri Sep 14, 2007 3:05 pm
by pickle
Thanks for posting the solution.