Home
last modified time | relevance | path

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

12345

/php-src/ext/spl/tests/SplFileObject/
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 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_fgetcsv_escape_default.phpt2 SplFileObject::fgetcsv with default escape character
9 $fo = new SplFileObject('SplFileObject__fgetcsv7.csv');
17 …cated: SplFileObject::fgetcsv(): the $escape parameter must be provided, as its default value will…
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');
32 //open an SplFileObject using the above test stream
33 $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 DSplFileObject_setCsvControl_variation001.phpt2 SPL: SplFileObject::setCsvControl variation 001
14 $s = new SplFileObject('csv_control_data_variation001.csv');
15 $s->setFlags(SplFileObject::READ_CSV);
27 Deprecated: SplFileObject::setCsvControl(): the $escape parameter must be provided as its default v…
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 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() delimiter error
18 $fo = new SplFileObject('SplFileObject__fgetcsv3.csv');
31 SplFileObject::fgetcsv(): Argument #1 ($separator) must be a single character
/php-src/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-src/ext/spl/
H A Dspl_directory_arginfo.h332 ZEND_METHOD(SplFileObject, eof);
333 ZEND_METHOD(SplFileObject, valid);
334 ZEND_METHOD(SplFileObject, fgets);
335 ZEND_METHOD(SplFileObject, fread);
340 ZEND_METHOD(SplFileObject, flock);
342 ZEND_METHOD(SplFileObject, ftell);
343 ZEND_METHOD(SplFileObject, fseek);
344 ZEND_METHOD(SplFileObject, fgetc);
351 ZEND_METHOD(SplFileObject, key);
352 ZEND_METHOD(SplFileObject, next);
[all …]
/php-src/ext/spl/tests/
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 DSplTempFileObject_constructor_basic.phpt13 ["openMode":"SplFileObject":private]=>
15 ["delimiter":"SplFileObject":private]=>
17 ["enclosure":"SplFileObject":private]=>
H A Dgh16477.phpt2 GH-16477: Segmentation fault when calling __debugInfo() after failed SplFileObject::__constructor
6 $obj = new SplFileObject(__FILE__);
18 ArgumentCountError: SplFileObject::__construct() expects at least 1 argument, 0 given
H A Dbug69181.phpt14 $file = new SplFileObject($filename);
16 $file->setFlags(SplFileObject::SKIP_EMPTY | SplFileObject::DROP_NEW_LINE | SplFileObject::READ_CSV);
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-src/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 18 milliseconds

12345