diff options
| author | Marcus Boerger <helly@php.net> | 2004-09-29 20:09:52 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2004-09-29 20:09:52 +0000 |
| commit | d748f8ecf2d2d904591cf8754bffe24f720bd1a2 (patch) | |
| tree | a818de931cdd056664e4709f07850c15f10c6ad3 | |
| parent | c9d32d9b7166551a30d8cd852e51d73b20df9aab (diff) | |
| download | php-git-d748f8ecf2d2d904591cf8754bffe24f720bd1a2.tar.gz | |
- Fix tests (atm preg_match() is wrong)
| -rwxr-xr-x | ext/spl/tests/dit_001.phpt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/spl/tests/dit_001.phpt b/ext/spl/tests/dit_001.phpt index 0a709da969..f02291c77b 100755 --- a/ext/spl/tests/dit_001.phpt +++ b/ext/spl/tests/dit_001.phpt @@ -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 @@ var_dump(is_string($d)); --EXPECTF-- object(DirectoryIterator)#%d (0) { } -bool(true) +bool(false) +bool(false) ===DONE=== |
