[PHP-CVS] cvs: php-src /ext/spl/tests bug36287.phpt

2006-05-21 Thread Marcus Boerger
helly   Sun May 21 12:48:42 2006 UTC

  Modified files:  
/php-src/ext/spl/tests  bug36287.phpt 
  Log:
  - There is a problem in the string / unicode comparison here which we
do not want to test here, so simply drop the part which is irrelevant
to the actual test
  
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/spl/tests/bug36287.phpt?r1=1.2r2=1.3diff_format=u
Index: php-src/ext/spl/tests/bug36287.phpt
diff -u php-src/ext/spl/tests/bug36287.phpt:1.2 
php-src/ext/spl/tests/bug36287.phpt:1.3
--- php-src/ext/spl/tests/bug36287.phpt:1.2 Thu Mar 23 15:05:02 2006
+++ php-src/ext/spl/tests/bug36287.phpt Sun May 21 12:48:42 2006
@@ -11,15 +11,9 @@
 foreach($it as $file)
 {
echo First\n;
-   if(. != $file  .. != $file)
-   {
-   var_Dump($file-getFilename());
-   }
+   var_Dump($file-getFilename());
echo Second\n;
-   if($file != .  $file != ..)
-   {
-   var_dump($file-getFilename());
-   }
+   var_dump($file-getFilename());
if (++$idx  1)
{
break;

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



[PHP-CVS] cvs: php-src /ext/spl/tests bug36287.phpt

2006-02-05 Thread Marcus Boerger
helly   Mon Feb  6 01:28:08 2006 UTC

  Added files: 
/php-src/ext/spl/tests  bug36287.phpt 
  Log:
  - Add new test
  

http://cvs.php.net/viewcvs.cgi/php-src/ext/spl/tests/bug36287.phpt?view=markuprev=1.1
Index: php-src/ext/spl/tests/bug36287.phpt
+++ php-src/ext/spl/tests/bug36287.phpt
--TEST--
Bug #36287
--FILE--
?php

$it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(.), true);

$idx = 0;
foreach($it as $file)
{
echo First\n;
if(. != $file  .. != $file)
{
var_Dump($file-getFilename());
}
echo Second\n;
if($file != .  $file != ..)
{
var_dump($file-getFilename());
}
if (++$idx  1)
{
break;
}
}

?
===DONE===
--EXPECTF--
First
string(%d) %s
Second
string(%d) %s
First
string(%d) %s
Second
string(%d) %s
===DONE===

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