com php-src: Fixed build on windows: ext/spl/spl_array.c

From: Date: Sat, 14 Feb 2015 04:57:53 +0000
Subject: com php-src: Fixed build on windows: ext/spl/spl_array.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84878@lists.php.net to get a copy of this message
Commit: b73fa1fa8fdddb069ffa9f07e1362b29edf51162 Author: Xinchen Hui <laruence@php.net> Sat, 14 Feb 2015 12:57:53 +0800 Parents: 9d1e36e4b6c73b5f3d9962e336a3ab0e9b456632 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b73fa1fa8fdddb069ffa9f07e1362b29edf51162 Log: Fixed build on windows Changed paths: M ext/spl/spl_array.c Diff: diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c index 5cdd333..2796ca6 100644 --- a/ext/spl/spl_array.c +++ b/ext/spl/spl_array.c @@ -1164,8 +1164,8 @@ static void spl_array_set_array(zval *object, spl_array_object *intern, zval *ar //??? TODO: try to avoid array duplication ZVAL_DUP(&intern->array, array); } else { - ZVAL_COPY(&intern->array, array); zend_object_get_properties_t handler = Z_OBJ_HANDLER_P(array, get_properties); + ZVAL_COPY(&intern->array, array); if ((handler != std_object_handlers.get_properties && handler != spl_array_get_properties) || !spl_array_get_hash_table(intern, 0)) { zend_throw_exception_ex(spl_ce_InvalidArgumentException, 0, "Overloaded object of type %s is not compatible with %s", Z_OBJCE_P(array)->name, intern->std.ce->name);

« previous php.cvs (#84878) next »