Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84027 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18157 invoked from network); 27 Feb 2015 16:46:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2015 16:46:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=damz@damz.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=damz@damz.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain damz.org designates 74.125.82.49 as permitted sender) X-PHP-List-Original-Sender: damz@damz.org X-Host-Fingerprint: 74.125.82.49 mail-wg0-f49.google.com Received: from [74.125.82.49] ([74.125.82.49:40903] helo=mail-wg0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0D/EB-32582-A6F90F45 for ; Fri, 27 Feb 2015 11:46:35 -0500 Received: by wghl18 with SMTP id l18so21519361wgh.7 for ; Fri, 27 Feb 2015 08:46:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=damz.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=rlMQFywPopwXQ5YoOZvj9GTgAhkU75nCS9zIUaibvlM=; b=Ow82ooGnY1ABFz75cnqo+qFAK7JU5a28FgIjhY6LdM+/j8ZyLv3tEeHbAAvsh658qz 4rM170KH/YXVUewRwXw28+noRTY5e/QUTgKU6IpTfUk2i6lHBUJicOcg9fszsEwtpSrN jjQ4HKpX7eGN2n9FOhy9vJIyonCorBAwlauZ4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=rlMQFywPopwXQ5YoOZvj9GTgAhkU75nCS9zIUaibvlM=; b=mxieupD5Tkl8F0aoqBnh4mlUCKyutJdT7dL6EsjGK9h469h8DhKt969GP1wI4i0PQr UjDu/MxzHIoszpaE5fBy6xYL9q9317Qj/lO/2mXYRsPKslGCRZLlzVpw1H2I4LQrFBJ3 g7wvUfSPL/ZxL+56uaq1pbkqSGug9lb2IageqoRJXeNnpv1+TT/ZuMWREQ+RuZs+jYbo U++K7f8YwlKKzxuOzijfYYFNtUpdVyYAxe0D856sfqzsdGDTC+tx0+6KO9utxKAT+md6 4pFKN/WTvSNcOHhd/ZKgSzhwgnWuCAnuMh55vuq4hC7iAmOiBhZFWObVWLtnpcIAA0qE oKwA== X-Gm-Message-State: ALoCoQn00DFp0dHvN9JciPwyAYRTU+Xy9Yzc/E/W4FyflHQ9DpTLsQS2vcTwm/PnlCEc/DRIv2H7 MIME-Version: 1.0 X-Received: by 10.194.21.137 with SMTP id v9mr29003667wje.140.1425055591598; Fri, 27 Feb 2015 08:46:31 -0800 (PST) Received: by 10.28.181.131 with HTTP; Fri, 27 Feb 2015 08:46:31 -0800 (PST) X-Originating-IP: [78.126.234.166] In-Reply-To: <4ED7146272E04A47B986ED49E771E347D3111ACD71@Ikarus.ameusgmbh.intern> References: <4ED7146272E04A47B986ED49E771E347D3111ACD71@Ikarus.ameusgmbh.intern> Date: Fri, 27 Feb 2015 17:46:31 +0100 Message-ID: To: Christian Stoller Cc: Zeev Suraski , PHP internals Content-Type: multipart/alternative; boundary=047d7b5d283452a4510510149c80 Subject: Re: [PHP-DEV] Coercive STH - some real world tests and updated RFC From: damz@damz.org (Damien Tournoud) --047d7b5d283452a4510510149c80 Content-Type: text/plain; charset=UTF-8 Hi Christian, On Fri, Feb 27, 2015 at 5:15 PM, Christian Stoller wrote: > In this case FALSE is an expected result and it is intended. And as > I said other languages are going the same way. > Other languages are also doing something saner. It's not really an argument either way. Just because it makes more sense for you, it does not imply that > it makes more sense for everybody. In my opinion it makes sense to > return an "error code" if a function is called with invalid > arguments. > You probably haven't read the examples that I pasted. If you think that it makes sense to return an error code if the function is called with invalid arguments, it should be done consistently. The current behavior is just an absurdly inconsistent, it is really hard to find an argument in favor of it, other than the argument in favor of backward compatibility. Damien --047d7b5d283452a4510510149c80--