Re: [PHP-DEV] [path] fixing errors, take 2

2010-12-19 Thread Hannes Magnússon
On Sun, Dec 19, 2010 at 10:56, Stas Malyshev wrote: > Hi! > >> AFAICT from the patch.. >> if (@strpos()) {} else { var_dump(error_get_last()); } >> will give you the last error that happened before strpos()? > > Hmm... that unfortunately depends on ignore_repeated_errors, I didn't see > this use c

Re: [PHP-DEV] [path] fixing errors, take 2

2010-12-19 Thread Stas Malyshev
Hi! AFAICT from the patch.. if (@strpos()) {} else { var_dump(error_get_last()); } will give you the last error that happened before strpos()? Hmm... that unfortunately depends on ignore_repeated_errors, I didn't see this use case. With error_get_last() we probably can't fix it since it requ

Re: [PHP-DEV] [path] fixing errors, take 2

2010-12-19 Thread Hannes Magnússon
On Sun, Dec 19, 2010 at 04:31, Stas Malyshev wrote: > Hi! > > Since my first attempt to make error reporting in PHP more efficient (see > epic thread here: > http://www.pubbs.net/200908/php/49633-php-dev-patch-error-masks.html) I > thought about another approach to fixing it. > This approach elimi

[PHP-DEV] [path] fixing errors, take 2

2010-12-18 Thread Stas Malyshev
Hi! Since my first attempt to make error reporting in PHP more efficient (see epic thread here: http://www.pubbs.net/200908/php/49633-php-dev-patch-error-masks.html) I thought about another approach to fixing it. This approach eliminates the need for additional .ini setting and shortcuts only