summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2008-02-04 17:19:07 +0000
committerMarcus Boerger <helly@php.net>2008-02-04 17:19:07 +0000
commita547c556b64ea83456d826ed5290261e4641ccae (patch)
tree027ca60a4b1dd42a7eea40f87c54c23917c22c2c
parent36caad562831dafd542f500577d5cba3036d397f (diff)
downloadphp-git-a547c556b64ea83456d826ed5290261e4641ccae.tar.gz
- MFH Fix default flag value in contructor
-rwxr-xr-xext/spl/spl_directory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c
index 9b8487a282..dd72f81d0f 100755
--- a/ext/spl/spl_directory.c
+++ b/ext/spl/spl_directory.c
@@ -551,7 +551,7 @@ void spl_filesystem_object_construct(INTERNAL_FUNCTION_PARAMETERS, int ctor_flag
spl_filesystem_object *intern;
char *path;
int parsed, len;
- long flags;
+ long flags = 0;
php_set_error_handling(EH_THROW, spl_ce_UnexpectedValueException TSRMLS_CC);
@@ -1148,7 +1148,7 @@ SPL_METHOD(RecursiveDirectoryIterator, getChildren)
ZVAL_LONG(&zflags, intern->flags);
ZVAL_STRINGL(&zpath, intern->file_name, intern->file_name_len, 0);
- spl_instantiate_arg_ex2(spl_ce_RecursiveDirectoryIterator, &return_value, 0, &zpath, &zflags TSRMLS_CC);
+ spl_instantiate_arg_ex2(Z_OBJCE_P(getThis()), &return_value, 0, &zpath, &zflags TSRMLS_CC);
subdir = (spl_filesystem_object*)zend_object_store_get_object(return_value TSRMLS_CC);
if (subdir) {