diff options
author | Dmitry Stogov <dmitry@zend.com> | 2019-04-04 18:18:52 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2019-04-04 18:18:52 +0300 |
commit | 0deb6419e87ef6cf0a67fee3ff08e8b7c800b282 (patch) | |
tree | b619d5f46b97470104095c423c4d2ac0b1f9dbf0 /Zend/zend_operators.c | |
parent | c4d5d26df365193d7367f7df72874997d1327299 (diff) | |
parent | 9038d5c6ee223027dde2e9e69e24e7d3c04e8af2 (diff) | |
download | php-git-0deb6419e87ef6cf0a67fee3ff08e8b7c800b282.tar.gz |
Merge branch 'PHP-7.4'
* PHP-7.4:
Make is_identical() functions return zend_bool (instead of int)
Diffstat (limited to 'Zend/zend_operators.c')
-rw-r--r-- | Zend/zend_operators.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index 832e715da1..361223a7c0 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -2161,8 +2161,6 @@ ZEND_API int ZEND_FASTCALL compare_function(zval *result, zval *op1, zval *op2) static int hash_zval_identical_function(zval *z1, zval *z2) /* {{{ */ { - zval result; - /* is_identical_function() returns 1 in case of identity and 0 in case * of a difference; * whereas this comparison function is expected to return 0 on identity, @@ -2170,14 +2168,11 @@ static int hash_zval_identical_function(zval *z1, zval *z2) /* {{{ */ */ ZVAL_DEREF(z1); ZVAL_DEREF(z2); - if (is_identical_function(&result, z1, z2)==FAILURE) { - return 1; - } - return Z_TYPE(result) != IS_TRUE; + return fast_is_not_identical_function(z1, z2); } /* }}} */ -ZEND_API int ZEND_FASTCALL zend_is_identical(zval *op1, zval *op2) /* {{{ */ +ZEND_API zend_bool ZEND_FASTCALL zend_is_identical(zval *op1, zval *op2) /* {{{ */ { if (Z_TYPE_P(op1) != Z_TYPE_P(op2)) { return 0; |