php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43629 trigger_error fails to trigger an error on Windows 2003
Submitted: 2007-12-18 18:32 UTC Modified: 2008-03-14 16:46 UTC
From: jwohlers at waubonsee dot edu Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.5 OS: Windows 2003 SP2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jwohlers at waubonsee dot edu
New email:
PHP Version: OS:

 

 [2007-12-18 18:32 UTC] 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. 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-14 16:46 UTC] jwohlers at waubonsee dot edu
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 04:01:35 2025 UTC