Re: PEAR DB version 1.7.6 with php version 5.1.1

From: Date: Wed, 15 Feb 2006 20:19:32 +0000
Subject: Re: PEAR DB version 1.7.6 with php version 5.1.1
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22995@lists.php.net to get a copy of this message
On 2/15/06, bertrand Gugger <bertrand@toggg.com> wrote: > Justin Patrin wrote: > > >On 2/15/06, bertrand Gugger <bertrand@toggg.com> wrote: > > > > > >>Justin Patrin wrote: > >> > >> > >> > >>>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 > >> > >> > > > >Please don't use numbers here. Use the constants such as E_ALL or > >E_ALL & ~E_NOTICE > > > > > really, with calculations ? Yes. Really. With Calculations. The php.ini should use constants. It's right there in the examples. > > > > > > >>or in httpd.conf for global apache or localy .htaccess: > >>php_value error_reporting 2047 > >> > >> > and here by apache ? > <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> Yep, outside of PHP (i.e. in .htaccess and Apache config) you should probably use numbers. > > Don't be pedantic, I tried to explain it in some simple code example. > -- Justin Patrin

« previous php.pear.general (#22995) next »