RE: [PHP4BETA] Dont you love those error messages? :)

From: Date: Wed, 04 Aug 1999 17:58:09 +0000
Subject: RE: [PHP4BETA] Dont you love those error messages? :)
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-3115@lists.php.net to get a copy of this message
Shouldnt the default be that it shows serious errors like this? I mean, a *LOT* of people are going to spend a *LOT* of time trying to figure this one out if the page stays blank. I didnt change any settings, so I figured it'd show things like this. Sander > -----Original Message----- > From: Zeev Suraski [mailto:zeev@zend.com] > Sent: Wednesday, August 04, 1999 20:53 > To: Sander Pilon; PHP4 > Subject: Re: [PHP4BETA] Dont you love those error messages? :) > > > You don't have your error reporting set high enough. > Note the difference between PHP 4.0 and 3.0 - in 3.0, the script up until > the point where the function is redefined would get executed; In 4.0, > since compilation is performed, the error will be generated right > away, and > before a single line is executed! Yes, that means you can't use > error_reporting() to set the error reporting to a higher level if > the error > is a compile time error, since the error will occur before > error_reporting() gets called. > You must use .htaccess or equivalent to set the error reporting to show > E_COMPILE_ERROR. > > Zeev > > At 17:11 04/08/99 , Sander Pilon wrote: > >Okay, > > > >The initial reason for getting the latest CVS was an error where a script > >wouldnt include another script. > > > >The page just stayed blank. > > > >The new recompile didnt solve the problem, but I did find what caused it. > > > >If an already declared function is declared again, no error message is > >generated. > > > >A little script to demonstrate: > > > ><script language="php"> > > function foo() > > { > > echo "hello"; > > } > > > > function foo() > > { > > echo "hello"; > > } > > > > echo "check!"; > ></script> > > > >Should output an error, but instead the page stays blank. > > > >*POOF* 4 hours down the drain :) > > > >Sander > > > > > >-- > >PHP 4 Beta > > -- > Zeev Suraski <zeev@zend.com> http://www.zend.com/ > For a PGP public key, finger bourbon@netvision.net.il >

« previous php.version4 (#3115) next »