Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119578 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 58713 invoked from network); 19 Feb 2023 12:03:34 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Feb 2023 12:03:34 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 56F11180210 for ; Sun, 19 Feb 2023 04:03:34 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 138.201.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from swift.blarg.de (swift.blarg.de [138.201.185.127]) by php-smtp4.php.net (Postfix) with ESMTP for ; Sun, 19 Feb 2023 04:03:33 -0800 (PST) Received: from swift.blarg.de (swift.blarg.de [IPv6:2a01:4f8:c17:52a8::2]) (Authenticated sender: max) by swift.blarg.de (Postfix) with ESMTPSA id D089241086; Sun, 19 Feb 2023 13:03:32 +0100 (CET) Date: Sun, 19 Feb 2023 13:03:31 +0100 To: Niels Dossche Cc: internals@lists.php.net Message-ID: References: <478d639f-9f09-4747-a21a-eb4bceb5c053@app.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [PHP-DEV] What's the purpose of zend_result? From: max+php@blarg.de (Max Kellermann) On 2023/02/19 11:56, Niels Dossche 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)