Re: PHP 4.0 Bug #5601: @function() should not turn of error reporting for critical errors

From: Date: Fri, 14 Jul 2000 12:42:42 +0000
Subject: Re: PHP 4.0 Bug #5601: @function() should not turn of error reporting for critical errors
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-24522@lists.php.net to get a copy of this message
The whole point of @ is to swallow those errors and not expose them to the remote user. If you are using @ you are basically telling PHP you will check the errors yourself. -Rasmus On 15 Jul 2000 hartmut@six.de wrote: > From: hartmut@six.de > Operating system: * > PHP version: 4.0.1pl2 > PHP Bug Type: Misbehaving function > Bug description: @function() should not turn of error reporting for critical errors > > try for example > > <?php @nonexistant_function(); echo "done\n"; ?> > > and you won't get any ouptut at all > because execution is terminated due to > calling a nonexistant function > > i just spent a lot of time debugging a set of > script that denied to work on a server without > giving any information about whats wrong only > to find out that somewhere nested deep within > all the files that got included was a > > @OCILogin(...) > > and this cauesd the script to die silently as > no Oracle support was available in the PHP > build i used ... :( > > >

« previous php.dev (#24522) next »