summaryrefslogtreecommitdiff
path: root/Zend/zend_opcode.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2015-02-18 08:48:17 +0100
committerStanislav Malyshev <stas@php.net>2015-02-18 08:48:17 +0100
commit3551083c2c188d3d5de5e58f3bd2624f2abfefc4 (patch)
tree1eb26aae540444335011fa33268f23698a16e7a7 /Zend/zend_opcode.c
parent3ddc246b5a80d8c2917fbcffc3eadde54d2ca575 (diff)
parentd8b7a4480b4f03b0b2644ed044004435abbbf9a9 (diff)
downloadphp-git-3551083c2c188d3d5de5e58f3bd2624f2abfefc4.tar.gz
Merge branch 'pull-request/1007'
* pull-request/1007: Fix associativity to match Perl Blast off to space.
Diffstat (limited to 'Zend/zend_opcode.c')
-rw-r--r--Zend/zend_opcode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c
index c1e3adb3ec..d75cdd0ff3 100644
--- a/Zend/zend_opcode.c
+++ b/Zend/zend_opcode.c
@@ -863,6 +863,8 @@ ZEND_API binary_op_type get_binary_op(int opcode)
return (binary_op_type) is_smaller_function;
case ZEND_IS_SMALLER_OR_EQUAL:
return (binary_op_type) is_smaller_or_equal_function;
+ case ZEND_SPACESHIP:
+ return (binary_op_type) compare_function;
case ZEND_BW_OR:
case ZEND_ASSIGN_BW_OR:
return (binary_op_type) bitwise_or_function;