Home
last modified time | relevance | path

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

12345

/PHP-5.6/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-5.6/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__);
16 Warning: SplFileObject::seek() expects exactly 1 parameter, 2 given in %s
18 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 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 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 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 long, string given in %s on line …
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 Dfileobject_001.phpt2 SPL: SplFileObject::seek'ing
6 $o = new SplFileObject(dirname(__FILE__) . '/fileobject_001a.txt');
10 $o->setFlags(SplFileObject::DROP_NEW_LINE);
34 $o = new SplFileObject(dirname(__FILE__) . '/fileobject_001b.txt');
35 $o->setFlags(SplFileObject::DROP_NEW_LINE);
H A DSplTempFileObject_constructor_maxmemory_basic.phpt13 ["openMode":"SplFileObject":private]=>
15 ["delimiter":"SplFileObject":private]=>
17 ["enclosure":"SplFileObject":private]=>

Completed in 25 milliseconds

12345