Bug #61356 [Com]: error_reporting always reports E_STRICT

From: Date: Sun, 02 Feb 2014 15:56:09 +0000
Subject: Bug #61356 [Com]: error_reporting always reports E_STRICT
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184125@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61356&edit=1

 ID:                 61356
 Comment by:         hc dot stoellinger at aon dot at
 Reported by:        dave dot kimble at gmx dot com
 Summary:            error_reporting always reports E_STRICT
 Status:             Not a bug
 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:

Hello, 
I experience exactly this bug under PHP 5.8.1 (Linux-Mint-Petra). Is there some patch for it?
Regards
H. Stoellinger
Salzburg


Previous Comments:
------------------------------------------------------------------------
[2012-03-14 01:45:18] aharvey@php.net

No worries, thanks.

------------------------------------------------------------------------
[2012-03-14 01:42:52] dave dot kimble at gmx dot com

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

------------------------------------------------------------------------
[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] rasmus@php.net

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.

------------------------------------------------------------------------


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


Thread (11 messages)

« previous php.bugs (#184125) next »