Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69214 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37044 invoked from network); 18 Sep 2013 19:57:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Sep 2013 19:57:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.52 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 74.125.82.52 mail-wg0-f52.google.com Received: from [74.125.82.52] ([74.125.82.52:45587] helo=mail-wg0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/81-29009-AA50A325 for ; Wed, 18 Sep 2013 15:57:30 -0400 Received: by mail-wg0-f52.google.com with SMTP id m15so7050866wgh.19 for ; Wed, 18 Sep 2013 12:57:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qj+zCx6rW9Imo34bQCNTwEe7DQsC+n+1DiiC4191MWA=; b=g7uhl6O5qExVwaoK4hoiXiVBL1/WEWihgOJzlLxxVJL19TfIkOlUNCoweRI16Pj5f4 NnjQcxoefapalyUPuKI4OVjs57pZTpmsfUYW1JS0fwdlJgHYqcy3+vZY/E+rWwB0caE8 FdZO4PymjVqk6Zb+p0dt2BM9e9pO93Lgx/1lIRFXR+v1wI8puQcpjVcvXlLnDad477Lg eTlk36BdGl4CUV9nS0B59+bqBZFAC6GPqc5asd2mOA5FpC1SFN91CLbnPanWQcIzVVbB 2GFAPg3gfjBbkC2E9QEYtcG4F/MuokSHudsIx2odmipQRgojK8pDa0I711vwhzSaNNSi PVBA== MIME-Version: 1.0 X-Received: by 10.181.11.163 with SMTP id ej3mr8447883wid.47.1379534247346; Wed, 18 Sep 2013 12:57:27 -0700 (PDT) Received: by 10.216.184.3 with HTTP; Wed, 18 Sep 2013 12:57:27 -0700 (PDT) In-Reply-To: References: <49D57F66323040FC9AE48244DAAF3771@gmail.com> <012B9378-3C3A-4169-96D3-3B57D6C7A82C@seancoates.com> Date: Wed, 18 Sep 2013 20:57:27 +0100 Message-ID: To: Bob Weinand Cc: Developers List PHP Mailing Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Re: Allowing is_* functions to accept multiple parameters From: leight@gmail.com (Leigh) On 18 September 2013 18:50, Bob Weinand wrote: > At least, from a technical point, evaluating LTR would require to change the engine > (would be some more complex change as it would require to switch between contexts > and being able to execute the ZEND_SEND_VAL opcodes one by one Feels like you're overthinking it? Plan was to allow any is_* function to be called as normal (SEND_VAR, SEND_VAR ... FCALL), then iterate over the supplied arguments inside the function and return false at the first failure, emulating the boolean short circuit.