From: patpro at patpro dot net Operating system: FreeBSD PHP version: 5.4.4 Package: *Configuration Issues Bug Type: Bug Bug description:error_reporting does not work as expected in php.ini
Description: ------------ # php -v PHP 5.4.4 (cli) (built: Jul 9 2012 00:15:41) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies Configure Command => './configure' '--with-layout=GNU' '--localstatedir=/var' '--with-config-file-scan-dir=/usr/local/etc/php' '-- disable-all' '--enable-libxml' '--enable-mysqlnd' '--with-libxml-dir=/usr/local' '--with-pcre-regex=/usr/local' '--with-zlib-dir=/usr' '--program-prefix=' '--enable-fpm' '--with-fpm-user=www' '--with-fpm-group=www' '--with-apxs2=/usr/local/sbin/apxs' '--with-regex=php' '--with-zend-vm=CALL' '--prefix=/usr/local' '--mandir=/usr/local/man' '-- infodir=/usr/local/info/' '--build=amd64-portbld-freebsd8.1' Server API => Command Line Interface Configuring the error_reporting directive in php.ini to deactivate E_STRICT won't work unless you use the numerical form. For example, this will not work: error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT but this will work: error_reporting = 5111 I can reproduce this problem on FreeBSD 8.2 and 8.1, running PHP 5.4.3 and PHP 5.4.4. I have not tested this issue on another OS. Expected result: ---------------- # php -r 'phpinfo();' | grep error_reporting error_reporting => 5111 => 5111 Actual result: -------------- # php -r 'phpinfo();' | grep error_reporting error_reporting => 22527 => 22527 -- Edit bug report at https://bugs.php.net/bug.php?id=62584&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62584&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62584&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62584&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62584&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62584&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62584&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62584&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62584&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62584&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62584&r=support Expected behavior: https://bugs.php.net/fix.php?id=62584&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62584&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62584&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62584&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62584&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62584&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62584&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62584&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62584&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62584&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62584&r=mysqlcfg
