Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59805 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5313 invoked from network); 12 Apr 2012 22:43:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Apr 2012 22:43:18 -0000 Authentication-Results: pb1.pair.com header.from=ww.galen@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ww.galen@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: ww.galen@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:53091] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 92/D5-00290-58A578F4 for ; Thu, 12 Apr 2012 18:43:18 -0400 Received: by iaeh11 with SMTP id h11so4053621iae.29 for ; Thu, 12 Apr 2012 15:43:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=54LeOT9V6w1zoH9X2OW5iQ+zADu9uJawkFnfESRCqcI=; b=BMtoDDl4ukVGQdGCatEE72uQiR9f4L8gqP2m+QC3/fMbFuQIKIMO8vBqAx6dLtBYEH bX+LntT8f+5tB638qK83nHKlcsEKkUdFEqre4gnHcLbXBCao1kMsZIrkzKlIRD4EO6Rt j+WxE4KW2XGzfM0XVhujsXZLN/CirVYLySO55x2sC5cHKVHxTXxuQUb8+l2GahuZa+OK 4N+vb1k4/wi00NW8zZIGX/XWS4t06igfN5CjXSO0zqoY7ChckI3JZv7QD91JsqyGlm6F 50kpfcl8oe2s42fUhz0NP3+tGumI6QQtvqP60lS3txRdktBOids0igTgzHIFt9sMtFbl 3Gew== Received: by 10.50.153.198 with SMTP id vi6mr31650igb.0.1334270595134; Thu, 12 Apr 2012 15:43:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.144.201 with HTTP; Thu, 12 Apr 2012 15:42:34 -0700 (PDT) In-Reply-To: References: Date: Thu, 12 Apr 2012 15:42:34 -0700 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=e89a8f22c681db741704bd8314b2 Subject: Re: [PHP-DEV] [RFC] Allow non-variable arguments to empty() and isset() From: ww.galen@gmail.com (Galen Wright-Watson) --e89a8f22c681db741704bd8314b2 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Apr 12, 2012 at 2:42 PM, Nikita Popov wrote: > > As per the comments I created an RFC, proposing to allow arbitrary > expressions to be passed to empty() and isset(): > > https://wiki.php.net/rfc/empty_isset_exprs > > The patch is available as a PR: > > https://github.com/php/php-src/pull/54 > > Nikita > > PS: I added isset() too, to address the consistency concerns mentioned on > IRC. > > Just to be clear, under the new behavior, calling "empty" or "isset" on undefined variables and undefined array indices shouldn't produce a notice when E_NOTICE is set, correct? Basically, the change isn't regressive.