com php-src: Fixed IS_REFERENCE handling in sort() : Zend/zend_operators.c

From: Date: Fri, 07 Mar 2014 05:51:39 +0000
Subject: com php-src: Fixed IS_REFERENCE handling in sort() : Zend/zend_operators.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77718@lists.php.net to get a copy of this message
Commit: ecc06873986c7136b2a134788d0fad58e09358cf Author: Xinchen Hui <laruence@gmail.com> Fri, 7 Mar 2014 13:51:39 +0800 Parents: f3a6c30ccaa72e9ab0981758853f5de76e4ce462 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ecc06873986c7136b2a134788d0fad58e09358cf Log: Fixed IS_REFERENCE handling in sort() Changed paths: M Zend/zend_operators.c Diff: diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index df7ba8f..55e2998 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -1504,8 +1504,8 @@ ZEND_API int numeric_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_ { zval op1_copy, op2_copy; - ZVAL_DUP(&op1_copy, op1); - ZVAL_DUP(&op2_copy, op2); + ZVAL_DUP_DEREF(&op1_copy, op1); + ZVAL_DUP_DEREF(&op2_copy, op2); convert_to_double(&op1_copy); convert_to_double(&op2_copy);

« previous php.cvs (#77718) next »