Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3700 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4614 invoked by uid 1007); 3 Aug 2003 03:47:13 -0000 Message-ID: <20030803034712.4612.qmail@pb1.pair.com> To: internals@lists.php.net References: <3F1D78DB.20905@wp-sa.pl> <1058913250.22615.123.camel@localhost> <3F1E41A8.6040106@wp-sa.pl> Date: Sun, 3 Aug 2003 00:47:15 -0300 Lines: 44 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Posted-By: 200.196.104.198 Subject: Re: [PHP-DEV] Feature proposal From: cunha17@uol.com.br ("Cristiano Duarte") Sorry, but didn't all there error/warnings/info got logged if you want ? I think you can set loggin on in php.ini and IMHO that's the best place to dig for bugs... Cristiano Duarte. "Wojtek Meler" escreveu na mensagem news:3F1E41A8.6040106@wp-sa.pl... > Timm Friebe wrote: > > On Tue, 2003-07-22 at 19:48, Wojtek Meler wrote: > > > >>I have to fight with people that using error suppression operator - they > >>just hide their bugs. > >>I wrote simple patch that allows set disable_error_suppression=On in > >>php.ini that causes engine to ignore '@' operators. > > > > > > Use set_error_handler(), then; the callback function is called > > regardless whether the error suppression "operator" @ was used. > > > > thekid@friebes:~ > php -r 'function handler() { > > var_dump(array_pop(array_slice($a= func_get_args(), 1, 1))); } > > set_error_handler("handler"); @include("foo");' > > ^^^^^^^^^^^^^^^ > > > > string(64) "Unknown(foo): failed to create stream: No such file or > > directory" > > string(116) "Unknown(): Failed opening 'foo' for inclusion > > (include_path='.:/home/thekid/devel/xp/skeleton:/home/thekid/classes')" > > > > - Timm > > > > > but try this : > > php -r 'function handler() { var_dump(array_pop(array_slice($a= > func_get_args(), 1, 1))); } set_error_handler("handler"); > @nonexist();echo "and now what?";' > > regards > Wojtek >