Files
archived-pecl-php-operator/php7-is_greater.diff
Sara Golemon d270470099 Add support for is_greater(_or_equal) back
Support still requires a patch to the runtime,
but it's a really small patch now.
2017-03-09 14:59:26 -08:00

14 lines
427 B
Diff

diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 88d7192..b797939 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -6716,7 +6716,7 @@ void zend_compile_greater(znode *result, zend_ast *ast) /* {{{ */
zend_emit_op_tmp(result,
ast->kind == ZEND_AST_GREATER ? ZEND_IS_SMALLER : ZEND_IS_SMALLER_OR_EQUAL,
- &right_node, &left_node);
+ &right_node, &left_node)->extended_value = 1;
}
/* }}} */