Annotation of embedaddon/php/ext/spl/tests/dit_001_noglob.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: SPL: Problem with casting to string (no glob version)
! 3: --SKIPIF--
! 4: <?php
! 5: if (defined('GLOB_ERR')) print "skip";
! 6: --FILE--
! 7: <?php
! 8: $d = new DirectoryIterator('.');
! 9: var_dump($d);
! 10: var_dump(is_string($d));
! 11: preg_match('/x/', $d);
! 12: var_dump(is_string($d));
! 13: ?>
! 14: ===DONE===
! 15: --EXPECTF--
! 16: object(DirectoryIterator)#%d (3) {
! 17: %s"pathName"%s"SplFileInfo":private]=>
! 18: %s(%d) ".%c%s"
! 19: %s"fileName"%s"SplFileInfo":private]=>
! 20: %s(%d) "%s"
! 21: %s"subPathName"%s"RecursiveDirectoryIterator":private]=>
! 22: %s(0) ""
! 23: }
! 24: bool(false)
! 25: bool(false)
! 26: ===DONE===
! 27:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>