Hi internals,
I would like to implement FR #45235. below copied from Github.
What do you think about it?
You can view the Pull Request on github:
https://github.com/php/php-src/pull/1135
Pull Request Description:
In PHP a simple assign expression would raise error, if user use
error_get_last()
to check they can't guarantee the call site raise the
error.
This patch implement a function to clear the error state.
http://php.net/error_get_last
The top voted user contributed note are a tricky way to clear last error.
also there are a lot of apps use the similar hacks.
Request: https://bugs.php.net/bug.php?id=45235
--
Reeze Xia
http://reeze.cn
Hi internals,
I would like to implement FR #45235. below copied from Github.
What do you think about it?
I had the same idea and I even got a patch somewhere.
I'm +1 and should merge your idea soon, if nobody rejects the idea.
PS : we could benefit from this move to refactor error management as well,
Nikic's got an RFC about exceptions in the engine as well.
Julien.Pauli