Re: [PHP4BETA] calling an undefined function with @ shoud give an error!!!

From: Date: Wed, 12 May 1999 18:13:55 +0000
Subject: Re: [PHP4BETA] calling an undefined function with @ shoud give an error!!!
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-811@lists.php.net to get a copy of this message
On Wed, 12 May 1999, Zeev Suraski wrote: > At 19:35 12/05/99 , Thies C. Arntzen wrote: > > >doing > > > ><?php > > > >$tubu = @fopen("kfjsdk","r"); > > > >causes php4 to silently exit - > > > > > >i think that fatal errors should always get printed??? > > No, you're only supposed to use @ if you know what you're doing. You must > be able to rely on @ to shut up any error you don't want the users to see. are you sure that we want this behaviour on "ungraceful" shutdowns of the engine???? ok, but then an undefined function-call should not cause parser/excutor exit... or - maybe we should at least enable it as long as we don't have all the basic things working.... tc > > Zeev > -- > Zeev Suraski <zeev@zend.com> http://www.zend.com/ > For a PGP public key, finger bourbon@netvision.net.il > > Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany -- PHP 4 Beta

« previous php.version4 (#811) next »