Re: com php-src: Array addition is not commutative: Zend/zend_vm_def.h Zend/zend_vm_execute.h Zend/zend_vm_opcodes.c
| From: | Nikita Popov | Date: | Fri, 15 Dec 2017 15:04:42 +0000 |
| Subject: | Re: com php-src: Array addition is not commutative: Zend/zend_vm_def.h Zend/zend_vm_execute.h Zend/zend_vm_opcodes.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-100598@lists.php.net to get a copy of this message | ||
On Fri, Dec 15, 2017 at 12:40 PM, Dmitry Stogov <dmitry@php.net> wrote:
> Commit: 66a604171cc676ebc8cb717437f6b9cd589d3d24
> Author: Dmitry Stogov <dmitry@zend.com> Fri, 15 Dec 2017
> 14:40:19 +0300
> Parents: 588f1df7a24867a43e9574b57957e6fca2518c17
> Branches: master
>
> Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=
> 66a604171cc676ebc8cb717437f6b9cd589d3d24
>
> Log:
> Array addition is not commutative
>
If operator overloading for objects is used, then mul is also not
necessarily commutative. E.g. multiplication on two Matrix objects is not
commutative.
Nikita