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

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to