Home
last modified time | relevance | path

Searched refs:SplFileObject (Results 1 – 25 of 114) sorted by relevance

12345

/PHP-7.3/ext/phar/tests/
H A Dphar_oo_009.phpt2 Phar object: iterating via SplFileObject and reading csv
5 <?php if (!defined('SplFileObject::READ_CSV') || !defined('SplFileObject::SKIP_EMPTY')) die('skip n…
16 $phar->setInfoClass('SplFileObject');
19 $f->setFlags(SplFileObject::SKIP_EMPTY | SplFileObject::DROP_NEW_LINE);
29 $f->setFlags(SplFileObject::SKIP_EMPTY | SplFileObject::DROP_NEW_LINE | SplFileObject::READ_CSV);
/PHP-7.3/ext/spl/tests/
H A Dbug64782.phpt2 Bug #64782: SplFileObject constructor make $context optional / give it a default value
6 var_dump(new SplFileObject(__FILE__, "r", false, null));
10 object(SplFileObject)#1 (%d) {
15 ["openMode":"SplFileObject":private]=>
17 ["delimiter":"SplFileObject":private]=>
19 ["enclosure":"SplFileObject":private]=>
H A DSplFileObject_getflags_variation001.phpt2 SPL: SplFileObject::getFlags
10 $fo = new SplFileObject(__FILE__);
12 $fo->setFlags(SplFileObject::DROP_NEW_LINE);
15 $fo->setFlags(SplFileObject::READ_AHEAD);
18 $fo->setFlags(SplFileObject::SKIP_EMPTY);
21 $fo->setFlags(SplFileObject::READ_CSV);
H A DSplFileObject_fseek_error_001.phpt2 SplFileObject::fseek function - parameters test
5 $obj = New SplFileObject(__FILE__);
10 Warning: SplFileObject::fseek() expects at most 2 parameters, 3 given %s
12 Warning: SplFileObject::fseek() expects at least 1 parameter, 0 given %s
H A DSplFileInfo_setFileClass_basic.phpt2 SplFileInfo::setFileClass() expects SplFileObject or child class
6 class MyFileObject extends SplFileObject {}
13 $info->setFileClass('SplFileObject');
19 SplFileObject
H A DSplFileObject_fwrite_error_001.phpt2 SplFileObject::fpassthru function - parameters test
5 $obj = New SplFileObject(dirname(__FILE__).'/SplFileObject_testinput.csv');
10 Warning: SplFileObject::fwrite() expects at least 1 parameter, 0 given in %s
12 Warning: SplFileObject::fwrite() expects at most 2 parameters, 3 given in %s
H A DSplFileObject_getflags_error002.phpt2 SPL: SplFileObject::getFlags error 001
10 $fo = new SplFileObject('SplFileObject_getflags_error002.csv');
11 $fo->setFlags(SplFileObject::READ_CSV);
21 Warning: SplFileObject::getFlags() expects exactly 0 parameters, 1 given in %s on line %d
H A DSplFileObject_getflags_error001.phpt2 SPL: SplFileObject::getFlags error 001
13 $fo = new SplFileObject('SplFileObject_getflags_error001.csv');
14 $fo->setFlags(SplFileObject::READ_CSV);
16 $fo->setFlags(SplFileObject::DROP_NEW_LINE);
H A DSplFileObject_seek_error_001.phpt2 SplFileObject::seek function - test parameters
5 $obj = New SplFileObject(__FILE__);
15 Warning: SplFileObject::seek() expects exactly 1 parameter, 2 given in %s
17 Warning: SplFileObject::seek() expects exactly 1 parameter, 0 given in %s
H A DSplFileObject_setCsvControl_error001.phpt2 SPL: SplFileObject::setCsvControl error 001
14 $s = new SplFileObject('csv_control_data.csv');
15 $s->setFlags(SplFileObject::READ_CSV);
23 Warning: SplFileObject::setCsvControl(): delimiter must be a character in %s on line %d
H A DSplFileObject_setCsvControl_error002.phpt2 SPL: SplFileObject::setCsvControl error 002
14 $s = new SplFileObject('csv_control_data.csv');
15 $s->setFlags(SplFileObject::READ_CSV);
23 Warning: SplFileObject::setCsvControl(): enclosure must be a character in %s on line %d
H A DSplFileObject_setCsvControl_error003.phpt2 SPL: SplFileObject::setCsvControl error 003
16 $s = new SplFileObject('csv_control_data.csv');
17 $s->setFlags(SplFileObject::READ_CSV);
25 Warning: SplFileObject::setCsvControl(): escape must be a character in %s on line %d
H A DSplFileObject_fflush_basic_001.phpt2 SplFileObject::fflush function - basic test
8 $obj = New SplFileObject(dirname(__FILE__).'/SplFileObject_testinput.csv');
31 //open an SplFileObject using the above test stream
32 $obj = New SplFileObject("SPLtest://ftruncate_test");
H A Dbug54292.phpt2 Bug #54292 (Wrong parameter causes crash in SplFileObject::__construct())
7 new SplFileObject('foo', array());
14 string(74) "SplFileObject::__construct() expects parameter 2 to be string, array given"
H A Dbug65545.phpt2 SplFileObject::fread function
5 $obj = new SplFileObject(__FILE__, 'r');
23 Warning: SplFileObject::fread() expects exactly 1 parameter, 0 given in %s on line %d
26 Warning: SplFileObject::fread(): Length parameter must be greater than 0 in %s on line %d
H A Dfileobject_setmaxlinelen_error002.phpt2 SPL: SplFileObject::setMaxLineLen error 002
7 $s = new SplFileObject( __FILE__ );
12 Warning: SplFileObject::setMaxLineLen() expects exactly 1 parameter, 0 given in %s on line %d
H A DSplFileObject_getchildren_error001.phpt2 SPL: SplFileObject::getchildren error 001
7 $s = new SplFileObject( __FILE__ );
12 Warning: SplFileObject::getChildren() expects exactly 0 parameters, 1 given in %s on line %d
H A DSplFileObject_haschildren_error001.phpt2 SPL: SplFileObject::haschildren error 001
7 $s = new SplFileObject( __FILE__ );
12 Warning: SplFileObject::hasChildren() expects exactly 0 parameters, 1 given in %s on line %d
H A Dfileobject_getmaxlinelen_error001.phpt2 SPL: SplFileObject::getMaxLineLen error 001
9 $s = new SplFileObject( __FILE__ );
14 Warning: SplFileObject::getMaxLineLen() expects exactly 0 parameters, 1 given in %s on line %d
H A DSplFileObject_key_error003.phpt2 SPL: SplFileObject::key error
11 $s = new SplFileObject(__FILE__);
15 Warning: SplFileObject::key() expects exactly 0 parameters, 1 given in %s on line %d
H A Dfileobject_setmaxlinelen_error003.phpt2 SPL: SplFileObject::setMaxLineLen error 003
7 $s = new SplFileObject( __FILE__ );
12 Warning: SplFileObject::setMaxLineLen() expects parameter 1 to be int, string given in %s on line %d
H A DSplTempFileObject_constructor_basic.phpt13 ["openMode":"SplFileObject":private]=>
15 ["delimiter":"SplFileObject":private]=>
17 ["enclosure":"SplFileObject":private]=>
H A DSplTempFileObject_constructor_memory_lt1_variation.phpt13 ["openMode":"SplFileObject":private]=>
15 ["delimiter":"SplFileObject":private]=>
17 ["enclosure":"SplFileObject":private]=>
H A DSplTempFileObject_constructor_maxmemory_basic.phpt13 ["openMode":"SplFileObject":private]=>
15 ["delimiter":"SplFileObject":private]=>
17 ["enclosure":"SplFileObject":private]=>
/PHP-7.3/ext/standard/tests/serialize/
H A Dbug67072.phpt2 Bug #67072 Echoing unserialized "SplFileObject" crash
5 echo unserialize('O:13:"SplFileObject":1:{s:9:"*filename";s:15:"/home/flag/flag";}');
9 Warning: Erroneous data format for unserializing 'SplFileObject' in %sbug67072.php on line %d

Completed in 33 milliseconds

12345