Re: PEAR DB version 1.7.6 with php version 5.1.1
| From: | bertrand Gugger | Date: | Wed, 15 Feb 2006 20:15:31 +0000 |
| Subject: | Re: PEAR DB version 1.7.6 with php version 5.1.1 | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22994@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
On 2/15/06, bertrand Gugger <bertrand@toggg.com> wrote:Justin Patrin wrote:Please don't use numbers here. Use the constants such as E_ALL or E_ALL & ~E_NOTICE really, with calculations ?Turn off E_STRICT error reporting. PEAR DB is not E_STRICT compatible.To tell it in good english: in front of you script for just getting it in this script (although it's almost compile time made, so, not sure it will do it): error_reporting( (int) ini_get( 'error_reporting' ) & E_ALL); or in php.ini for all scripts: error_reporting = 2047
<quote http://php.net/manual/en/configuration.changes.php> *Caution* PHP constants do not exist outside of PHP. For example, in httpd.conf you can not use PHP constants such as *E_ALL* or *E_NOTICE* to set the error_reporting <http://fr.php.net/manual/en/ref.errorfunc.php#ini.error-reporting> directive as they will have no meaning and will evaluate to /0/. Use the associated bitmask values instead. These constants can be used in php.ini </quote> Don't be pedantic, I tried to explain it in some simple code example.or in httpd.conf for global apache or localy .htaccess: php_value error_reporting 2047 and here by apache ?