/
proc
/
3430793
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
spl
/
tests
/
File Upload :
llllll
Current File: //proc/3430793/root/usr/local/lsws/phpbuild/php-8.0.7/ext/spl/tests/bug77024.phpt
--TEST-- Bug #77024 SplFileObject::__toString() may return array --FILE-- <?php $file = new SplTempFileObject; $file->fputcsv(['foo', 'bar', 'baz']); $file->rewind(); $file->setFlags(SplFileObject::READ_CSV); echo $file . "\n"; $tmp = tempnam(sys_get_temp_dir(), "php-tests-"); file_put_contents($tmp, "line1\nline2\nline3\n"); $file = new SplFileObject($tmp); $file->rewind(); echo $file . "\n"; unset($file); unlink($tmp); ?> --EXPECT-- foo,bar,baz line1
Copyright ©2k19 -
Hexid
|
Tex7ure