mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
- Bugfix #36941 (ArrayIterator does not clone itself)
This commit is contained in:
parent
1160f87d1d
commit
ac099ca676
2 changed files with 25 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue