]> granicus.if.org Git - php/commitdiff
MFB: Fix #44838 (static class reference restricting overwriting)
authorEtienne Kneuss <colder@php.net>
Sat, 3 May 2008 16:00:40 +0000 (16:00 +0000)
committerEtienne Kneuss <colder@php.net>
Sat, 3 May 2008 16:00:40 +0000 (16:00 +0000)
ext/spl/spl_directory.c

index 703eae203bedd7cbf1f69a412f92ccd53eec8497..fbedf49666b3d5b6a23b17a140e0277451135cf9 100755 (executable)
@@ -1055,7 +1055,7 @@ SPL_METHOD(RecursiveDirectoryIterator, getChildren)
        INIT_PZVAL(&zpath);
        ZVAL_STRINGL(&zpath, intern->file_name, intern->file_name_len, 0);
 
-       spl_instantiate_arg_ex1(spl_ce_RecursiveDirectoryIterator, &return_value, 0, &zpath TSRMLS_CC);
+       spl_instantiate_arg_ex1(Z_OBJCE_P(getThis()), &return_value, 0, &zpath TSRMLS_CC);
        
        subdir = (spl_filesystem_object*)zend_object_store_get_object(return_value TSRMLS_CC);
        if (subdir) {