Re: [path] fixing errors, take 2

From: Date: Sun, 19 Dec 2010 10:03:09 +0000
Subject: Re: [path] fixing errors, take 2
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-51085@lists.php.net to get a copy of this message
On Sun, Dec 19, 2010 at 10:56, Stas Malyshev <smalyshev@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

« previous php.internals (#51085) next »