ID: 43629
User updated by: jwohlers at waubonsee dot edu
Reported By: jwohlers at waubonsee dot edu
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Windows 2003 SP2
PHP Version: 5.2.5
New Comment:
I found out the cause of this problem, in the sites apache config file
there was a "php_admin_flag display_errors off" statement. In previous
versions of PHP this was apparently allowed to be overridden.
Previous Comments:
------------------------------------------------------------------------
[2007-12-18 18:32:57] jwohlers at waubonsee dot edu
Description:
------------
I have been unable to make php generate errors by using the
trigger_error function on an Apache / Windows 2003 server. The same
code works fine on a duplicate install of Apache / PHP on windows XP. I
have tried changing all of the error reporting setting in php.ini and
added code to my script to try to force error reporting.
Reproduce code:
---------------
<?php
/* Set error handling */
error_reporting (E_ALL);
ini_set('display_errors','1');
ini_set('display_startup_errors','1');
ini_set("log_errors","1");
/* Trigger an error */
trigger_error("This is an error");
?>
Expected result:
----------------
I would expect to receive the following output:
"Notice: This is an error in C:\websites\library\HTML\error.php on line
9"
and that is the output I receive from the Windows XP machine. On
windows 2003, I receive a blank page.
Actual result:
--------------
Output on windows 2003 server is blank.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43629&edit=1