cvs: php-src /ext/standard/tests/file bug35740.phpt
| From: | Antony Dovgal | Date: | Tue, 20 Dec 2005 09:52:05 +0000 |
| Subject: | cvs: php-src /ext/standard/tests/file bug35740.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-36069@lists.php.net to get a copy of this message | ||
tony2001 Tue Dec 20 09:52:05 2005 EDT
Modified files:
/php-src/ext/standard/tests/file bug35740.phpt
Log:
MFB: add test for #35740
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/tests/file/bug35740.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/standard/tests/file/bug35740.phpt
diff -u /dev/null php-src/ext/standard/tests/file/bug35740.phpt:1.2
--- /dev/null Tue Dec 20 09:52:05 2005
+++ php-src/ext/standard/tests/file/bug35740.phpt Tue Dec 20 09:52:05 2005
@@ -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