Home
last modified time | relevance | path

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

12345

/PHP-8.1/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_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 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 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 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 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 DSplTempFileObject_constructor_basic.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(__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 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 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.1/ext/spl/
H A Dspl_directory_arginfo.h335 ZEND_METHOD(SplFileObject, eof);
336 ZEND_METHOD(SplFileObject, valid);
337 ZEND_METHOD(SplFileObject, fgets);
338 ZEND_METHOD(SplFileObject, fread);
343 ZEND_METHOD(SplFileObject, flock);
345 ZEND_METHOD(SplFileObject, ftell);
346 ZEND_METHOD(SplFileObject, fseek);
347 ZEND_METHOD(SplFileObject, fgetc);
354 ZEND_METHOD(SplFileObject, key);
355 ZEND_METHOD(SplFileObject, next);
[all …]
/PHP-8.1/ext/phar/tests/
H A Dphar_oo_009.phpt2 Phar object: iterating via SplFileObject and reading csv
6 <?php if (!defined('SplFileObject::READ_CSV') || !defined('SplFileObject::SKIP_EMPTY')) die('skip n…
17 $phar->setInfoClass('SplFileObject');
20 $f->setFlags(SplFileObject::SKIP_EMPTY | SplFileObject::DROP_NEW_LINE);
30 $f->setFlags(SplFileObject::SKIP_EMPTY | SplFileObject::DROP_NEW_LINE | SplFileObject::READ_CSV);
/PHP-8.1/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 Fatal error: Uncaught Exception: Unserialization of 'SplFileObject' is not allowed in %s:%d

Completed in 175 milliseconds

12345