Re: What's the purpose of zend_result?
| From: | Max Kellermann | Date: | Sun, 19 Feb 2023 12:03:31 +0000 |
| Subject: | Re: What's the purpose of zend_result? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-119578@lists.php.net to get a copy of this message | ||
On 2023/02/19 11:56, Niels Dossche <dossche.niels@gmail.com> wrote:
> It's also worth noting that there's a couple of places where there's
> just a check for if (function()) { failure code }. i.e. there is no
> check for == FAILURE, it's just "implied".
Ouch. That's not only fragile, but also very obscure.
(Yadda yadda, C++ wouldn't even allow this, etc., you know)