Re: Feature proposal
| From: | Wojtek Meler | Date: | Wed, 23 Jul 2003 08:04:56 +0000 |
| Subject: | Re: Feature proposal | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-3573@lists.php.net to get a copy of this message | ||
Timm Friebe wrote:
On Tue, 2003-07-22 at 19:48, Wojtek Meler wrote: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 WojtekI 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 :