Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96180 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85036 invoked from network); 30 Sep 2016 10:45:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Sep 2016 10:45:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=php-mailing-list@lool.fr; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php-mailing-list@lool.fr; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lool.fr from 212.27.42.2 cause and error) X-PHP-List-Original-Sender: php-mailing-list@lool.fr X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:42206] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/A2-55621-C424EE75 for ; Fri, 30 Sep 2016 06:45:38 -0400 Received: from pcdepk (unknown [82.236.192.32]) by smtp2-g21.free.fr (Postfix) with ESMTP id 874D820036C for ; Fri, 30 Sep 2016 12:45:29 +0200 (CEST) To: Date: Fri, 30 Sep 2016 12:45:27 +0200 Message-ID: <001601d21b07$c1b76b70$45264250$@lool.fr> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0017_01D21B18.85403B70" X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdIbBblNAL8SHMGiSTaBFIo7PG2qqw== Content-Language: fr Subject: php short circuit bug? From: php-mailing-list@lool.fr ("Pascal KISSIAN") ------=_NextPart_000_0017_01D21B18.85403B70 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi everybody, Perhaps am I making a mistake, but the following code fragment: Emits the following notice: PHP Notice: Undefined index: bb in test.php on line 4 The php documentation : http://php.net/manual/en/language.operators.logical.php states in exemple 1 that short circuit is implemented. In my example as !isset($t_aa["bb"]) true, then the second expression ($t_aa["bb"]=="")should not be evaluated! Is it a php bug? Or am i missing something? Cheers, Pascal KISSIAN ------=_NextPart_000_0017_01D21B18.85403B70--