Edit report at https://bugs.php.net/bug.php?id=61356&edit=1
ID: 61356
User updated by: dave dot kimble at gmx dot com
Reported by: dave dot kimble at gmx dot com
Summary: error_reporting always reports E_STRICT
-Status: Open
+Status: Closed
Type: Bug
Package: PHP options/info functions
Operating System: Windows 7 Ult 32
PHP Version: 5.4.0
Block user comment: N
Private report: N
New Comment:
AfterLogic say they are very sorry and their code DOES contain error_reporting
in 2 scripts for debug purposes that should be commented out.
Sorry to waste your time.
CLOSED
Previous Comments:
------------------------------------------------------------------------
[2012-03-13 03:36:23] dave dot kimble at gmx dot com
Here is a test script:
<?php
echo (
'script = ' . $_SERVER['SCRIPT_NAME'] . '<BR>' .
'php ini loaded = ' . php_ini_loaded_file() . '<BR>' .
'error_reporting = ' . ini_get('error_reporting') . '<BR>' .
'display_errors = ' . ini_get('display_errors') . '<BR>' .
'end');
?>
Here is the output:
script = /webmail/test.php
php ini loaded = C:\PHP\php.ini
error_reporting = 22527
display_errors =
end
22527 = (32767 - 8192 - 2048) = E_ALL & ~E_DEPRECATED & ~E_STRICT
so something is the matter with error_reporting because E_STRICT messages ARE
appearing.
The display_errors is WRONG because in C:\PHP\php.ini it is set to:
display_errors = Off
The php.ini file is at http://www.peakoil.org.au/php.ini
------------------------------------------------------------------------
[2012-03-13 01:35:41] [email protected]
You are missing something here. This works fine for everyone else. Hard to tell
from here what it is though.
------------------------------------------------------------------------
[2012-03-13 01:10:07] dave dot kimble at gmx dot com
Yes, the correct file was identified by phpinfo as C:/PHP/php.ini .
Yes, the web server was restarted afterwards.
I also inserted error_reporting into /webmail/index.php to no effect.
If I add a line 2 to /webmail/index.php :
<?php
error_reporting(0);
and it meets other error_reporting() functions in included files,
does the scope of the new error reporting extend to index.php ?
I see a change has been added to
http://php.net/manual/en/function.error-reporting.php for v5.4.0 making
E_STRICT part of E_ALL.
So there has been a change in this very area where I am finding a problem.
------------------------------------------------------------------------
[2012-03-12 21:45:42] [email protected]
create a phpinfo.php with:
<?php
phpinfo();
and check the ini settings. If it is the same than in your php.ini ("loaded
php.ini tells you which is loaded), then your app changes them somewhere.
------------------------------------------------------------------------
[2012-03-12 21:04:22] dave dot kimble at gmx dot com
Yes, the correct file was identified by phpinfo as C:/PHP/php.ini .
Yes, the web server was restarted afterwards.
I also inserted error_reporting into /webmail/index.php to no effect.
The PHP manual notes changes on error_reporting with various versions,
but I have been unable to discover any changes with v5.4.0 .
Versions:
OS: Windows 7 Ult 32-bit
Web Server: Fastream IQ 11.5.5R
PHP: 5.4.0 VC9 Threadsafe
OpenSSL 0.9.8.20
SQL Server: MySQL 5.5.21
Mail Server: hMailServer 5.3.3-B1879
WebMail: AfterLogic 6.3.10
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=61356
--
Edit this bug report at https://bugs.php.net/bug.php?id=61356&edit=1