php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46016 display_errors = Off doesn't work
Submitted: 2008-09-07 09:18 UTC Modified: 2008-09-07 11:16 UTC
From: php at jamesvalero dot com Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 5.2.6 OS: Windows 2003 R2 STD
Private report: No CVE-ID: None
 [2008-09-07 09:18 UTC] php at jamesvalero dot com
Description:
------------
The box is a W2k3 R2 STD using IIS. The error seems to be related to FastCGI as display_errors works when using php5isapi.dll.

phpinfo(); shows that c:\windows\php.ini is being loaded and display_errors is off in both Local & Master under PHP Core.

Again, this occurs when using php-cgi.exe

Reproduce code:
---------------
<?php
phpinfo();
asdf
?>

Expected result:
----------------
Show only normal phpinfo(); output

Actual result:
--------------
The normal phpinfo(); output and 

PHP Notice: Use of undefined constant asdf - assumed 'asdf' in D:\Domains\itgstats-dev.domain.com\public_html\phpinfo.php on line 4 


FWIW, when enabling display_errors, I get more errors


Notice: Use of undefined constant asdf - assumed 'asdf' in D:\Domains\itgstats-dev.hottopic.com\public_html\phpinfo.php on line 4
PHP Notice: Use of undefined constant asdf - assumed 'asdf' in D:\Domains\itgstats-dev.hottopic.com\public_html\phpinfo.php on line 4 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-07 09:28 UTC] tularis@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.


 [2008-09-07 09:30 UTC] php at jamesvalero dot com
note on the differences in the domain name: I forgot to edit the name in the error output. Is it possible to modify the original post?
 [2008-09-07 09:32 UTC] php at jamesvalero dot com
I replied in another similar bug report but it looked like it was already closed. Does replying in closed bugs, where I am not the owner, re-open stale bug reports?

Thanks
 [2008-09-07 09:34 UTC] php at jamesvalero dot com
http://bugs.php.net/bug.php?id=44729 is the report in question. Is this the same submission you were referring to?
 [2008-09-07 09:43 UTC] php at jamesvalero dot com
Correction: Calling the linked report "closed" may have been misleading. A better way of asking should have been: Are reports tagged with "No Feedback" still looked at when new comments are submitted by other members of the community?
 [2008-09-07 11:16 UTC] dsp@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 06:01:30 2024 UTC