]> granicus.if.org Git - php/commitdiff
fix win32 build
authorRob Richards <rrichards@php.net>
Thu, 31 Jan 2008 11:09:50 +0000 (11:09 +0000)
committerRob Richards <rrichards@php.net>
Thu, 31 Jan 2008 11:09:50 +0000 (11:09 +0000)
ext/spl/spl_directory.c

index 54ef38278bb9f324513e2ba7c2a6571d95a07f4b..81a4c685cb5ee37adedca3fd92350eaa848a4bae 100755 (executable)
@@ -168,10 +168,10 @@ PHPAPI zstr spl_filesystem_object_get_path(spl_filesystem_object *intern, int *l
 {
        if (intern->type == SPL_FS_DIR) {
                if (php_stream_is(intern->u.dir.dirp ,&php_glob_stream_ops)) {
+                       zstr ret;
                        if (type) {
                                *type = IS_STRING;
                        }
-                       zstr ret;
                        ret.s = php_glob_stream_get_path(intern->u.dir.dirp, 0, len);
                        return ret;
                }