php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44708 display errors = Off, but errors still display.
Submitted: 2008-04-12 21:13 UTC Modified: 2008-04-13 17:27 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: pinnwilliam at yahoo dot com Assigned: fb-req-jani (profile)
Status: Not a bug Package: *General Issues
PHP Version: 5.2.5 OS: Windows XP
Private report: No CVE-ID: None
 [2008-04-12 21:13 UTC] pinnwilliam at yahoo dot com
Description:
------------
I am using Apache server 2.2 and PHP 5.  I was able to turn on "display errors" in the php.ini file, but when I attemped to shut "display errors" off, i.e., "display_errors = Off," errors still display on the .php files.  I have restarted the server and computer.  Doing these things does not solve the problem.   

Reproduce code:
---------------
display_errors = Off

Expected result:
----------------
Errors won't display on the .php page.  

Actual result:
--------------
Errors continue to show on the .php page.  

Patches

php.ini (last revision 2010-12-18 13:44 UTC by benselma dot ahmed at gmail dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-12 22:28 UTC] jani@php.net
First of all: make sure your php.ini file is actually loaded. "display_errors" is On by default (IIRC) so if no php.ini (or wrong!) is loaded you'll see the errors. 

To check what php.ini was used: <?php phpinfo(); ?> and there's the information in the first block. Path where it's looked for and below that what file exactly was loaded.
 [2008-04-13 05:13 UTC] pinnwilliam at yahoo dot com
The path for php.ini is C:\WINDOWS\php.ini.  I ran the phpinfo() function.  The path for php.ini appears to be correct.  However, the phpinfo output says, "Loaded Configuration File: (none)."  

How do I get php.ini to load, or get phpinfo() to read it and display it?
 [2008-04-13 11:35 UTC] jani@php.net
You need to put a file called "php.ini" in c:\windows\ 

This is not any bug, so please ask further support questions elsewhere.
 [2008-04-13 16:46 UTC] pinnwilliam at yahoo dot com
Sorry for the confusion.  The php.ini file was placed in the windows directory.  I thought I had made that clear.  The phpinfo() is not reading it for some reason.  I restarted the server and computer.  Thoses acts did not solve the problem.  

There is definitely a bug.  I followed all instructions to the letter and then some.  Happy debugging.  :-)
 [2008-04-13 17:27 UTC] pinnwilliam at yahoo dot com
Hi again, I figured out a solution that you might pass on.  The php.ini file should be placed in the following path: C:\PHP\php.ini.  Restart the server, and it WORKS!  c:\windows\ is the wrong directory to place the php.ini file in--at least for Windows XP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Nov 05 00:01:27 2024 UTC