Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68229 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90256 invoked from network); 20 Jul 2013 00:13:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jul 2013 00:13:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.52 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.52 mail-la0-f52.google.com Received: from [209.85.215.52] ([209.85.215.52:32817] helo=mail-la0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/85-13120-036D9E15 for ; Fri, 19 Jul 2013 20:13:37 -0400 Received: by mail-la0-f52.google.com with SMTP id fo12so3850908lab.39 for ; Fri, 19 Jul 2013 17:13:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=ywr7fJkWVp/NHu7nt4J1RcBLcvtS6YEP6reV7NJTaw8=; b=r9m/tlv7MS7asr9vTVejMeHtJlowqLZRvxG0KhXFOp746u8E3QJc1kJAre7Jll4xbS SWvNVRdBZ4y5+hpMF4mFwsbqThzpbNbYo0ZYFN44HjbHo4LgY1VQIApeI1MijkfZH1Az fBYOXWZOLAwYVU8MdTrtLbnyVO+hqsvyDaoBaSS43M7ydcg9uKSwRCXUrF9KI6Gq3XVh eb9wgpPxFpjspRlQYcbb6tFf/7sbOAEbvREVxrtakGeVfvOjRmTS46/JYvqqISxrVokU WjZx9+Ze1itkkUKD+xnkdL2tvWp7jsEwoKqCZrRBckVStVNN6z+xtcMDUOeqBlUS7dNc 4RAg== X-Received: by 10.152.28.199 with SMTP id d7mr8369177lah.67.1374279212791; Fri, 19 Jul 2013 17:13:32 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.4.233 with HTTP; Fri, 19 Jul 2013 17:12:52 -0700 (PDT) Date: Sat, 20 Jul 2013 09:12:52 +0900 X-Google-Sender-Auth: ObqXszvXbEU-ObU9r5QKRonamMc Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e0160b4324cfdde04e1e65095 Subject: Operator precedence is undefined? From: yohgaki@ohgaki.net (Yasuo Ohgaki) --089e0160b4324cfdde04e1e65095 Content-Type: text/plain; charset=ISO-8859-1 Hi all, Take a look at this bug report. https://bugs.php.net/bug.php?id=65087 He complains about documentation of ++/--. The doc says http://www.php.net/manual/en/language.operators.precedence.php --------------- // mixing ++ and + produces undefined behavior $a = 1; echo ++$a + $a++; // may print 4 or 5 --------------- "may print 4 or 5"?? Undefined?? In old PHP there may be such limitation. I cannot believe this is true now, but I ask list before I fix doc. Any comments? -- Yasuo Ohgaki yohgaki@ohgaki.net --089e0160b4324cfdde04e1e65095--