Bug #78829 [Opn->Fbk]: 数字传引用计算问题

From: Date: Mon, 18 Nov 2019 13:11:13 +0000
Subject: Bug #78829 [Opn->Fbk]: 数字传引用计算问题
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223776@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78829&edit=1

 ID:                 78829
 Updated by:         cmb@php.net
 Reported by:        1003674174 at qq dot com
 Summary:            数字传引用计算问题
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Variables related
 Operating System:   windows
 PHP Version:        7.3.11
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Isn't 5 the output one would expect?


Previous Comments:
------------------------------------------------------------------------
[2019-11-18 09:35:47] 1003674174 at qq dot com

Description:
------------
php5.6echo的值是6,php7的值是5

Test script:
---------------
$a=1;$b=&$a;echo (++$a)+(++$a);exit;



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=78829&edit=1


Thread (7 messages)

« previous php.bugs (#223776) next »