Bug #73672 [Opn->Nab]: æ£å表达å¼è¿ç®é¡ºåºçé®
| From: | laruence@php.net | Date: | Wed, 07 Dec 2016 09:15:20 +0000 |
| Subject: | Bug #73672 [Opn->Nab]: æ£å表达å¼è¿ç®é¡ºåºçé® | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-205817@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73672&edit=1
ID: 73672
Updated by: laruence@php.net
Reported by: jay_medivh at foxmail dot com
Summary: æ£å表达å¼è¿ç®é¡ºåºçé®
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: windows
PHP Version: 7.0.14RC1
Block user comment: N
Private report: N
New Comment:
è¿æ¯æ¯åå²éçé®é¢, ç»åæ§ä¸å,
PHPçæ¯å·¦ç»å, èJavaæ¯å³ç»å.
å¯ä»¥åè: http://stackoverflow.com/questions/20559150/ternary-operator-left-associativity
thanks
Previous Comments:
------------------------------------------------------------------------
[2016-12-07 06:37:09] jay_medivh at foxmail dot com
Description:
------------
è¿éæä¸æ®µç¨åºä¸ç代ç
var_dump(18130300 == 18130300 ? "hello world" : 18130300 ? 1 : 2);
å¦ä¸ä»£ç å¨JavaåC#ä¸è¿è¡ç»æä¸ºhello world ,
使¯å¨phpä¸åæäºåè¾¹ç1ï¼ææçé®ï¼è¿æ¯phpç¹å®çè¿ç®é¡ºåºçç¡®ä¸JavaåC#ä¸åè¿æ¯å
¶ä»åå
Test script:
---------------
<?php
var_dump(18130300 == 18130300 ? "hello world" : 18130300 ? 1 : 2);
Expected result:
----------------
hello world
Actual result:
--------------
1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73672&edit=1