cvs: php-src /ext/spl/tests bug36258.phpt
| From: | Antony Dovgal | Date: | Thu, 02 Feb 2006 13:57:04 +0000 |
| Subject: | cvs: php-src /ext/spl/tests bug36258.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-36732@lists.php.net to get a copy of this message | ||
tony2001 Thu Feb 2 13:57:04 2006 UTC
Modified files:
/php-src/ext/spl/tests bug36258.phpt
Log:
add test for bug #36258
http://cvs.php.net/viewcvs.cgi/php-src/ext/spl/tests/bug36258.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/spl/tests/bug36258.phpt
diff -u /dev/null php-src/ext/spl/tests/bug36258.phpt:1.2
--- /dev/null Thu Feb 2 13:57:04 2006
+++ php-src/ext/spl/tests/bug36258.phpt Thu Feb 2 13:57:04 2006
@@ -0,0 +1,19 @@
+--TEST--
+Bug #36258 (SplFileObject::getPath() may lead to segfault)
+--FILE--
+<?php
+
+$diriter = new RecursiveIteratorIterator( new RecursiveDirectoryIterator('.') );
+
+foreach ($diriter as $key => $file) {
+ var_dump($file->getFilename());
+ var_dump($file->getPath());
+ break;
+}
+
+echo "Done\n";
+?>
+--EXPECTF--
+string(%d) "%s"
+string(%d) "%s"
+Done