mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-29 03:45:43 +00:00
fix array keys being too strict to refs
and add tests
This commit is contained in:
1 parent
881c502520
commit
d0c23bf03b
1 file changed
+4
@@ -731,6 +731,8 @@ static zend_always_inline int fast_equal_check_string(zval *op1, zval *op2)
|
||||
|
||||
static zend_always_inline int fast_is_identical_function(zval *op1, zval *op2)
|
||||
{
|
||||
ZVAL_DEREF(op1);
|
||||
ZVAL_DEREF(op2);
|
||||
if (Z_TYPE_P(op1) != Z_TYPE_P(op2)) {
|
||||
return 0;
|
||||
} else if (Z_TYPE_P(op1) <= IS_TRUE) {
|
||||
@@ -741,6 +743,8 @@ static zend_always_inline int fast_is_identical_function(zval *op1, zval *op2)
|
||||
|
||||
static zend_always_inline int fast_is_not_identical_function(zval *op1, zval *op2)
|
||||
{
|
||||
ZVAL_DEREF(op1);
|
||||
ZVAL_DEREF(op2);
|
||||
if (Z_TYPE_P(op1) != Z_TYPE_P(op2)) {
|
||||
return 1;
|
||||
} else if (Z_TYPE_P(op1) <= IS_TRUE) {
|
||||
|
||||
Reference in new issue
Block a user