RE: [PHP4BETA] Dont you love those error messages? :)
| From: | Sander Pilon | Date: | Wed, 04 Aug 1999 23:45:05 +0000 |
| Subject: | RE: [PHP4BETA] Dont you love those error messages? :) | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-3130@lists.php.net to get a copy of this message | ||
In php.ini it's like this:
; error_reporting is a bit-field. Add each number up to get desired error
reporting level
; 1 = Normal errors
; 2 = Normal warnings
; 4 = Parser errors
; 8 = Notices - warnings you can ignore, but sometimes imply a bug
error_reporting = 7
Isnt that high enough?
> -----Original Message-----
> From: Zeev Suraski [mailto:zeev@zend.com]
> Sent: Wednesday, August 04, 1999 22:17
> To: Sander Pilon; PHP4
> Subject: RE: [PHP4BETA] Dont you love those error messages? :)
>
>
> The default is to show these messages. You may be overriding the
> built-in
> default with your php.ini.
>
> Zeev
>
> At 19:58 04/08/99 , Sander Pilon wrote:
> >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
> > >
>
> --
> Zeev Suraski <zeev@zend.com> http://www.zend.com/
> For a PGP public key, finger bourbon@netvision.net.il
>