Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59804 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1317 invoked from network); 12 Apr 2012 21:42:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Apr 2012 21:42:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@googlemail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@googlemail.com X-Host-Fingerprint: 209.85.215.42 mail-lpp01m010-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:36949] helo=mail-lpp01m010-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8D/35-00290-85C478F4 for ; Thu, 12 Apr 2012 17:42:49 -0400 Received: by lahl5 with SMTP id l5so2030721lah.29 for ; Thu, 12 Apr 2012 14:42:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=oVhO/CdG5ydYIWwyBthbIMlwLQHz+w8b8CryBvoSVrI=; b=bDz+fLlA7UB3WrRUBdzP8pEJ3g6uuHiVDnRLXlDVByWsYN1uaM53tgAeNYDfD9qlUZ J/qRkFEzSWLbMTaCtR3xPJy3TlyfofefYyFPvrzKGGtATyYNmq3U547h3iSqeoHGCM9X obZm4rAiggbgSdArhuygVwwX5/Tz5dVmkxO+AYsGye9AIhclYY7CtMx9z97dljc1JRgs 5vhaSv7x4LJl1zRlnQowP/0AkNCFYY9JiFYyGalj0uvQScv8h8vNAVrNymZqTN9R4FMU pXR2hVrIyXPU1iPRTjnEjXhInQKAuOZ2Qp68rQ5T7VlQEofZuHQ7aN5haFiyhnK9rmgY r07Q== MIME-Version: 1.0 Received: by 10.112.101.67 with SMTP id fe3mr1789575lbb.52.1334266965205; Thu, 12 Apr 2012 14:42:45 -0700 (PDT) Received: by 10.152.127.68 with HTTP; Thu, 12 Apr 2012 14:42:45 -0700 (PDT) Date: Thu, 12 Apr 2012 23:42:45 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: [RFC] Allow non-variable arguments to empty() and isset() From: nikita.ppv@googlemail.com (Nikita Popov) Hi internals! 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.