From: Marcus Boerger <helly@php.net>
Date: Sun, 5 Feb 2006 11:43:28 +0000 (+0000)
Subject: - Fix bug #36287
X-Git-Tag: RELEASE_1_2~284
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19117cf9c90c6d78a5d55e01e4fe777ecbc866fc;p=php

- Fix bug #36287
---

diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c
index 6cfa182a2c..c56124608f 100755
--- a/ext/spl/spl_directory.c
+++ b/ext/spl/spl_directory.c
@@ -1199,6 +1199,7 @@ static int spl_filesystem_object_cast(zval *readobj, zval *writeobj, int type TS
 			return SUCCESS;
 		}
 	}
+	ZVAL_NULL(writeobj);
 	return FAILURE;
 }
 /* }}} */