mirror of
https://github.com/php/php-src.git
synced 2024-12-16 13:26:19 +08:00
Merge branch 'PHP-5.6'
This commit is contained in:
commit
237c1bf7b5
@ -1026,12 +1026,14 @@ ZEND_API int pow_function(zval *result, zval *op1, zval *op2 TSRMLS_DC)
|
||||
ZEND_TRY_BINARY_OBJECT_OPERATION(ZEND_POW);
|
||||
|
||||
if (Z_TYPE_P(op1) == IS_ARRAY) {
|
||||
ZVAL_LONG(op1, 0);
|
||||
ZVAL_LONG(result, 0);
|
||||
return SUCCESS;
|
||||
} else {
|
||||
zendi_convert_scalar_to_number(op1, op1_copy, result);
|
||||
}
|
||||
if (Z_TYPE_P(op2) == IS_ARRAY) {
|
||||
ZVAL_LONG(op2, 0);
|
||||
ZVAL_LONG(result, 1L);
|
||||
return SUCCESS;
|
||||
} else {
|
||||
zendi_convert_scalar_to_number(op2, op2_copy, result);
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ float(1)
|
||||
float(1)
|
||||
|
||||
-- Iteration 19 --
|
||||
float(1)
|
||||
int(1)
|
||||
|
||||
-- Iteration 20 --
|
||||
float(1)
|
||||
@ -169,4 +169,4 @@ float(1)
|
||||
|
||||
-- Iteration 26 --
|
||||
%s
|
||||
===Done===
|
||||
===Done===
|
||||
|
Loading…
Reference in New Issue
Block a user