#50251 [NEW]: Deprecated php.ini options warnings are not supressable
From: jd at cpanel dot net
Operating system: Centos 5 AMD64
PHP version: 5.3.1
PHP Bug Type: *Configuration Issues
Bug description: Deprecated php.ini options warnings are not supressable
Description:
------------
This is pretty much a duplicate of bug 49362 which was incorrectly
closed.
Jani's fix at revision 288038 doesn't correct the problem.
In a nutshell, it's impossible to configure PHP's error_reporting level so
that it doesn't spit out warnings about deprecated php.ini directives at
startup. This is because the warnings are displayed before the
error_reporting setting is registered.
Reproduce code:
---------------
root@rh73 [~]# printf "[PHP]\nerror_reporting = E_ALL & ~E_DEPRECATED &
~E_WARNING\nmagic_quotes_gpc = On\n" >~/php.ini
root@rh73 [~]# /usr/bin/php -c/root/ -v
PHP Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and
greater in Unknown on line 0
PHP 5.3.1 (cgi-fcgi) (built: Nov 19 2009 18:50:13)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
root@rh73 [~]#
--
Edit bug report at http://bugs.php.net/?id=50251&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50251&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50251&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50251&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50251&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50251&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50251&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50251&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50251&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50251&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50251&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50251&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50251&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50251&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50251&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50251&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50251&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50251&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50251&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50251&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50251&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50251&r=mysqlcfg
Thread (5 messages)
- jd at cpanel dot net