Skip to content

Commit b73fa1f

Browse files
committed
Fixed build on windows
1 parent 9d1e36e commit b73fa1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/spl/spl_array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,8 +1164,8 @@ static void spl_array_set_array(zval *object, spl_array_object *intern, zval *ar
11641164
//??? TODO: try to avoid array duplication
11651165
ZVAL_DUP(&intern->array, array);
11661166
} else {
1167-
ZVAL_COPY(&intern->array, array);
11681167
zend_object_get_properties_t handler = Z_OBJ_HANDLER_P(array, get_properties);
1168+
ZVAL_COPY(&intern->array, array);
11691169
if ((handler != std_object_handlers.get_properties && handler != spl_array_get_properties)
11701170
|| !spl_array_get_hash_table(intern, 0)) {
11711171
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);

0 commit comments

Comments
 (0)