Home
last modified time | relevance | path

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

12345

/PHP-8.0/ext/spl/tests/
H A Dgh8121.phpt2 GH-8121 (SplFileObject - seek and key with csv file inconsistent)
6SplFileObject::READ_AHEAD | SplFileObject::READ_CSV | SplFileObject::SKIP_EMPTY | SplFileObject::D…
7SplFileObject::READ_AHEAD | SplFileObject::SKIP_EMPTY | SplFileObject::D…
8SplFileObject::SKIP_EMPTY | SplFileObject::DROP_NEW_LINE,
11 $file = new SplFileObject(__DIR__ . "/gh8121.csv", "r");
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 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_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_setCsvControl_error001.phpt2 SPL: SplFileObject::setCsvControl error 001
14 $s = new SplFileObject('csv_control_data_error001.csv');
15 $s->setFlags(SplFileObject::READ_CSV);
27 SplFileObject::setCsvControl(): Argument #1 ($separator) must be a single character
H A DSplFileObject_setCsvControl_error002.phpt2 SPL: SplFileObject::setCsvControl error 002
14 $s = new SplFileObject('csv_control_data_error002.csv');
15 $s->setFlags(SplFileObject::READ_CSV);
27 SplFileObject::setCsvControl(): Argument #2 ($enclosure) must be a single character
H A DSplFileObject_setCsvControl_error003.phpt2 SPL: SplFileObject::setCsvControl error 003
16 $s = new SplFileObject('csv_control_data_error003.csv');
17 $s->setFlags(SplFileObject::READ_CSV);
29 SplFileObject::setCsvControl(): Argument #3 ($escape) must be empty or a single character
H A DSplFileObject_seek_error_001.phpt2 SplFileObject::seek function - test parameters
5 $obj = new SplFileObject(__FILE__);
13 SplFileObject::seek(): Argument #1 ($line) must be greater than or equal to 0
H A DSplFileObject_fflush_basic_001.phpt2 SplFileObject::fflush function - basic test
8 $obj = New SplFileObject(__DIR__.'/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(85) "SplFileObject::__construct(): Argument #2 ($mode) must be of type string, array given"
H A Dbug62004.phpt2 Bug #62004 (SplFileObject: fgets after seek returns wrong line)
5 $f = new SplFileObject(__DIR__ . '/bug62004.txt');
6 $f->setFlags(SplFileObject::SKIP_EMPTY);
H A Dfileobject_setmaxlinelen_error001.phpt2 SPL: SplFileObject::setMaxLineLen error 001()
7 $s = new SplFileObject( __FILE__ );
17 SplFileObject::setMaxLineLen(): Argument #1 ($maxLength) must be greater than or equal to 0
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]=>
H A DSplFileObject_getflags_basic.phpt2 SPL: SplFileObject::getFlags basic
12 $fo = new SplFileObject('SplFileObject_getflags_basic.csv');
14 $fo->setFlags(SplFileObject::DROP_NEW_LINE);
H A Dfileobject_001.phpt2 SPL: SplFileObject::seek'ing
6 $o = new SplFileObject(__DIR__ . '/fileobject_001a.txt');
10 $o->setFlags(SplFileObject::DROP_NEW_LINE);
34 $o = new SplFileObject(__DIR__ . '/fileobject_001b.txt');
35 $o->setFlags(SplFileObject::DROP_NEW_LINE);
H A DSplFileObject_fgetcsv_delimiter_error.phpt2 SplFileObject::fgetcsv with alternative delimiter
14 $fo = new SplFileObject('SplFileObject__fgetcsv3.csv');
26 SplFileObject::fgetcsv(): Argument #1 ($separator) must be a single character
H A DSplFileObject_fgetcsv_enclosure_error.phpt2 SplFileObject::fgetcsv with alternative delimiter
14 $fo = new SplFileObject('SplFileObject__fgetcsv5.csv');
26 SplFileObject::fgetcsv(): Argument #2 ($enclosure) must be a single character
H A DSplFileObject_fgetcsv_escape_error.phpt2 SplFileObject::fgetcsv with alternative delimiter
9 $fo = new SplFileObject('SplFileObject__fgetcsv8.csv');
21 SplFileObject::fgetcsv(): Argument #3 ($escape) must be empty or a single character
H A Dbug77024.phpt2 Bug #77024 SplFileObject::__toString() may return array
9 $file->setFlags(SplFileObject::READ_CSV);
14 $file = new SplFileObject($tmp);
/PHP-8.0/ext/spl/
H A Dspl_directory_arginfo.h317 ZEND_METHOD(SplFileObject, eof);
318 ZEND_METHOD(SplFileObject, valid);
319 ZEND_METHOD(SplFileObject, fgets);
320 ZEND_METHOD(SplFileObject, fread);
325 ZEND_METHOD(SplFileObject, flock);
327 ZEND_METHOD(SplFileObject, ftell);
328 ZEND_METHOD(SplFileObject, fseek);
329 ZEND_METHOD(SplFileObject, fgetc);
336 ZEND_METHOD(SplFileObject, key);
337 ZEND_METHOD(SplFileObject, next);
[all …]
/PHP-8.0/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-8.0/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 40 milliseconds

12345