ID:               49388
 Updated by:       [email protected]
 Reported By:      romanf at trash dot net
-Status:           Open
+Status:           Verified
 Bug Type:         Output Control
 Operating System: OpenSuse 11
 PHP Version:      5.3.0
 New Comment:

Thank you for your bug report.

I could reproduce your problem with the following command:
php -d 'error_reporting=0' -d 'magic_quotes_gpc=on' -r ''

It seems that PHP is not yet initialized when the warning is triggered.
When it is not initialized it prints all warnings without taking
error_reporting into account (module_initialized is 0 on
main/main.c:920).


Previous Comments:
------------------------------------------------------------------------

[2009-08-27 14:14:49] romanf at trash dot net

Description:
------------
I have a php.ini with

error_reporting=0
magic_quotes_gpc=on

If I run a test-script on the CLI, the deprecated warning is still
shown on stderr.

When run under a webserver (e.g. apache) no output is produced.

Expected result:
----------------
Deprecated warning should be suppressed on CLI as well if
error_reporting=0.

Actual result:
--------------
Deprecated warning is NOT suppressed on CLI (and only on CLI) if
magic_quotes_gpc=on regardless of error_reporting.


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


-- 
Edit this bug report at http://bugs.php.net/?id=49388&edit=1

Reply via email to