Hello,

[ Question ]
How do I force error_log to log only errors specified in the error_reporting directive? Is it even possible or did I get something wrong? I have one old script which uses ereg and the awesome size of the error log is getting on my nerves.


[ Current ini config ]
error_reporting = E_ALL & ~E_DEPRECATED  ;;or E_ALL ^ E_DEPRECATED
display_errors = Off
log_errors = On
error_log = /var/log/php-fpm/php-errors.log

[ PHP ]
5.3.3 + suhosin patch 5.3.3-0.9.10 + suhosin extension 0.9.32.1
pecl: imagick-3.0.1RC1, APC-3.1.3p1, geoip-1.0.7, rar-2.0.0
php configure: in the appendix

[ Expected result ]
php-errors.log containing all errors EXCEPT deprecated notices

[ Actual result ]
....
.... PHP Deprecated:  Function ereg() is deprecated in ...
....

[ Notes ]
I know which ini php loads, so yeah.. I'm actually using the same that I'm configuring.
I'm not using syslog, but a file. See Current ini config above.


Thank you for your time.

[ Appendix ]
../configure --prefix=/usr --enable-fpm --disable-rpath --with-pear --disable-debug --with-openssl --with-pcre-regex --with-zlib --enable-bcmath --with-bz2 --enable-calendar --with-curl --enable-exif --enable-inline-optimization --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-gettext --with-imap --with-imap-ssl --with-kerberos --enable-mbstring --enable-mbregex --with-mcrypt --with-mysql --with-mysqli --enable-pdo --with-pdo-mysql --with-pdo-pgsql --with-pgsql --enable-shmop --enable-soap --enable-sockets --enable-sqlite-utf8 --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-tidy --enable-wddx --with-xmlrpc --with-xsl --enable-zip --enable-ftp --enable-dom --enable-xmlwriter --enable-xmlreader --enable-tokenizer --enable-simplexml --enable-session --enable-posix --enable-phar --enable-libxml --enable-json --with-iconv --enable-filter --enable-fileinfo --enable-ctype

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to