- MFH Fix bug #36287
authorMarcus Boerger <helly@php.net>
Sun, 5 Feb 2006 11:43:44 +0000 (11:43 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 5 Feb 2006 11:43:44 +0000 (11:43 +0000)
ext/spl/spl_directory.c

index cc5ba53a16197a6a5d736635e6657c0ebd90d1bf..8a51c0d7c449677b150130a31182c401bf77ac96 100755 (executable)
@@ -1203,6 +1203,7 @@ static int spl_filesystem_object_cast(zval *readobj, zval *writeobj, int type, i
                        return SUCCESS;
                }
        }
+       ZVAL_NULL(writeobj);
        return FAILURE;
 }
 /* }}} */