Click to See Complete Forum and Search --> : PHP parser errors not displaying - get a blank page


drpro
06-20-2005, 04:21 AM
Hi,

I have PHP 5.0.3 with apache 1.3.33 installed on Windows XP.

For some reason I am not getting any errors displayed if I have a syntax error in my code. eg:

<?php

phpinfo_xx();

?>

The above displays a blank page.

In my php.ini I have

error_reporting = E_ALL & E_STRICT
display_errors = On

I've confirmed that the correct php.ini is being used - adding an extension and checking phpinfo().
After changing my php.ini I restart apache each time to test.

What have I missed?

Thanks
David

Installer
06-21-2005, 10:30 AM
It's not a syntax error, but you should be getting a fatal error message, of course.

In phpinfo compare the local and master values for error_reporting and display_errors. Maybe an .htaccess file got in there somehow.

drpro
06-24-2005, 12:45 AM
I fixed it by removing the E_STRICT. It seems to stop syntax errors being displayed.

Thanks