helly           Wed Sep 29 16:09:54 2004 EDT

  Modified files:              
    /php-src/ext/spl/tests      dit_001.phpt 
  Log:
  - Fix tests (atm preg_match() is wrong)
  
http://cvs.php.net/diff.php/php-src/ext/spl/tests/dit_001.phpt?r1=1.2&r2=1.3&ty=u
Index: php-src/ext/spl/tests/dit_001.phpt
diff -u php-src/ext/spl/tests/dit_001.phpt:1.2 php-src/ext/spl/tests/dit_001.phpt:1.3
--- php-src/ext/spl/tests/dit_001.phpt:1.2      Wed Sep 29 05:43:33 2004
+++ php-src/ext/spl/tests/dit_001.phpt  Wed Sep 29 16:09:52 2004
@@ -1,9 +1,12 @@
 --TEST--
 SPL: Problem with casting to string
+--SKIPIF--
+<?php if (!extension_loaded("spl")) print "skip"; ?>
 --FILE--
 <?php
 $d = new DirectoryIterator('.');
 var_dump($d);
+var_dump(is_string($d));
 preg_match('/x/', $d);
 var_dump(is_string($d));
 ?>
@@ -11,5 +14,6 @@
 --EXPECTF--
 object(DirectoryIterator)#%d (0) {
 }
-bool(true)
+bool(false)
+bool(false)
 ===DONE===

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

Reply via email to