add test for #35740
authorAntony Dovgal <tony2001@php.net>
Tue, 20 Dec 2005 09:51:53 +0000 (09:51 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 20 Dec 2005 09:51:53 +0000 (09:51 +0000)
ext/standard/tests/file/bug35740.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/file/bug35740.phpt b/ext/standard/tests/file/bug35740.phpt
new file mode 100644 (file)
index 0000000..78df184
--- /dev/null
@@ -0,0 +1,14 @@
+--TEST--
+bug #35740 (memory leak when including a directory)
+--FILE--
+<?php
+
+include (dirname(__FILE__));
+
+echo "Done\n";
+?>
+--EXPECTF--    
+Warning: include(%s): failed to open stream: %s in %s on line %d
+
+Warning: include(): Failed opening '%s' for inclusion (include_path='%s') in %s on line %d
+Done