php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26865 PHP ini E_NOTICE setting ignored
Submitted: 2004-01-10 18:12 UTC Modified: 2004-01-12 00:00 UTC
From: mmdrake at bctonline dot com Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 4.3.4 OS: Windows
Private report: No CVE-ID: None
 [2004-01-10 18:12 UTC] mmdrake at bctonline dot com
Description:
------------
PHP.ini settings as listed below.

In spite of this, notices are written anyway, causing major performance issues when a PHP-Gtk screen has several vars declared on the fly.

This worked at one point; no changes have been made to the way the script is called (from a batch file, using php_gtk.exe wrapper); only changes to the code.  Can't spot anything that might have this kind of impact, where the ini file is basically ignored.

There is only one php.ini file on the machines, so no possibility of wrong file being read.

Occurs in both WinNT and Win98.



Reproduce code:
---------------
PHP.ini has error logging on, with settings as follows:

error_reporting = E_ALL & ~E_NOTICE
log_errors = On
error_log = gtk_error.txt


Expected result:
----------------
NO NOTICES, only errors or warnings.

Actual result:
--------------
All notices are written to the error log, together with warnings and errors.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-10 20:29 UTC] sniper@php.net
The php.ini file is not being read at all.
Check your setup.

 [2004-01-11 02:49 UTC] mmdrake at bctonline dot com
PHP.ini is being read.  I can change the error log name and have a new file created.
 [2004-01-11 08:32 UTC] sniper@php.net
Are you sure the error_reporting isn't overriden in the script? (with call to ini_set() or error_reporting())

 [2004-01-11 23:43 UTC] mmdrake at bctonline dot com
So, so sorry; you're right and we didn't catch it.  We had copied some code for one of our COM calls from an online example and there was a statement in there for 'error_reporting'.  It didn't get caught because it was in a different directory from the main code.

thanks.
 [2004-01-12 00:00 UTC] alan_k@php.net
Not bug -> bogus
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 15:01:32 2024 UTC