On Sun, Dec 19, 2010 at 10:56, Stas Malyshev <smalys...@sugarcrm.com> 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 case. With error_get_last() we probably can't fix it since it > requires storing full error message for every error. That kind of sucks :(
I like the idea behind the patch, and I cannot think of a clean way around the error_get_last() problem. error_get_last() also has issues with user defined error handler, so I suppose we should just document it properly.. -Hannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php