diff options
| author | Marcus Boerger <helly@php.net> | 2006-04-01 22:39:42 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2006-04-01 22:39:42 +0000 |
| commit | ac099ca676fb97df2ead41be379f360aca31a86c (patch) | |
| tree | 1d6c71c34f2bb9a2e739d1e088bc42ebb62e54e9 /ext/spl/spl_array.c | |
| parent | 1160f87d1d698b55585fe0a118bda2b7bec732b8 (diff) | |
| download | php-git-ac099ca676fb97df2ead41be379f360aca31a86c.tar.gz | |
- Bugfix #36941 (ArrayIterator does not clone itself)
Diffstat (limited to 'ext/spl/spl_array.c')
| -rwxr-xr-x | ext/spl/spl_array.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c index 80b70dedbf..b8d2217cf0 100755 --- a/ext/spl/spl_array.c +++ b/ext/spl/spl_array.c @@ -228,6 +228,7 @@ static zend_object_value spl_array_object_clone(zval *zobject TSRMLS_DC) spl_array_object *intern; old_object = zend_objects_get_address(zobject TSRMLS_CC); + SEPARATE_ZVAL(&zobject); new_obj_val = spl_array_object_new_ex(old_object->ce, &intern, zobject TSRMLS_CC); new_object = &intern->std; |
