/PHP-7.2/ext/ftp/ |
H A D | php_ftp.c | 99 ZEND_ARG_INFO(0, mode) 133 ZEND_ARG_INFO(0, mode) 141 ZEND_ARG_INFO(0, mode) 359 if (mode != FTPTYPE_ASCII && mode != FTPTYPE_IMAGE) { \ 654 zend_long mode; in PHP_FUNCTION() local 669 RETURN_LONG(mode); in PHP_FUNCTION() 847 XTYPE(xtype, mode); in PHP_FUNCTION() 893 XTYPE(xtype, mode); in PHP_FUNCTION() 966 XTYPE(xtype, mode); in PHP_FUNCTION() 1032 XTYPE(xtype, mode); in PHP_FUNCTION() [all …]
|
/PHP-7.2/ext/spl/internal/ |
H A D | splqueue.inc | 29 /** Changes the iteration mode. There are two orthogonal sets of modes that 36 * The default mode is 0 : SplDoublyLnkedList::IT_MODE_LIFO | SplDoublyLnkedList::IT_MODE_KEEP 39 * @param $mode New mode of iteration 40 * @throw RuntimeException If the new mode affects the iteration's direction. 42 public function setIteratorMode($mode) 44 if ($mode & parent::IT_MODE_LIFO === parent::IT_MODE_LIFO) { 48 $this->_it_mode = $mode;
|
/PHP-7.2/main/streams/ |
H A D | plain_wrapper.c | 70 switch (mode[0]) { in php_stream_parse_fopen_modes() 91 if (strchr(mode, '+')) { in php_stream_parse_fopen_modes() 100 if (strchr(mode, 'e')) { in php_stream_parse_fopen_modes() 106 if (strchr(mode, 'n')) { in php_stream_parse_fopen_modes() 112 if (strchr(mode, 't')) { in php_stream_parse_fopen_modes() 709 switch (range->mode) { in php_stdiop_set_option() 760 switch (range->mode) { in php_stdiop_set_option() 1241 ret = php_mkdir(dir, mode); in php_plain_files_mkdir() 1287 ret = php_mkdir(dir, mode); in php_plain_files_mkdir() 1351 mode_t mode; in php_plain_files_metadata() local [all …]
|
H A D | php_stream_mmap.h | 54 php_stream_mmap_access_t mode; member 70 …hp_stream *stream, size_t offset, size_t length, php_stream_mmap_access_t mode, size_t *mapped_len… 71 …am_mmap_range(stream, offset, length, mode, mapped_len) _php_stream_mmap_range((stream), (offset),… argument
|
/PHP-7.2/ext/standard/tests/http/ |
H A D | bug43510.phpt | 2 Bug #43510 (stream_get_meta_data() does not return same mode as used in fopen) 18 foreach(array('r', 'rb') as $mode) { 19 $fd = fopen('http://127.0.0.1:12342/', $mode, false); 21 var_dump($meta['mode']);
|
/PHP-7.2/ext/standard/tests/file/ |
H A D | ftruncate_variation4-win32.phpt | 76 -- Testing ftruncate() with file opening using r mode -- 86 -- Testing ftruncate() with file opening using rb mode -- 96 -- Testing ftruncate() with file opening using rt mode -- 106 -- Testing ftruncate() with file opening using r+ mode -- 136 -- Testing ftruncate() with file opening using w mode -- 146 -- Testing ftruncate() with file opening using wb mode -- 156 -- Testing ftruncate() with file opening using wt mode -- 166 -- Testing ftruncate() with file opening using w+ mode -- 196 -- Testing ftruncate() with file opening using x mode -- 256 -- Testing ftruncate() with file opening using a mode -- [all …]
|
H A D | ftruncate_variation4.phpt | 76 -- Testing ftruncate() with file opening using r mode -- 86 -- Testing ftruncate() with file opening using rb mode -- 96 -- Testing ftruncate() with file opening using rt mode -- 106 -- Testing ftruncate() with file opening using r+ mode -- 136 -- Testing ftruncate() with file opening using w mode -- 146 -- Testing ftruncate() with file opening using wb mode -- 156 -- Testing ftruncate() with file opening using wt mode -- 166 -- Testing ftruncate() with file opening using w+ mode -- 196 -- Testing ftruncate() with file opening using x mode -- 256 -- Testing ftruncate() with file opening using a mode -- [all …]
|
H A D | fgetcsv_variation12.phpt | 59 // close the file if the mode to be used is read mode and re-open using read mode 86 } //end of mode loop 94 -- Testing fgetcsv() with file opened using r mode -- 106 -- Testing fgetcsv() with file opened using rb mode -- 118 -- Testing fgetcsv() with file opened using rt mode -- 130 -- Testing fgetcsv() with file opened using r+ mode -- 166 -- Testing fgetcsv() with file opened using a+ mode -- 202 -- Testing fgetcsv() with file opened using r mode -- 214 -- Testing fgetcsv() with file opened using rb mode -- 226 -- Testing fgetcsv() with file opened using rt mode -- [all …]
|
H A D | fgetcsv_variation24.phpt | 61 // close the file if the mode to be used is read mode and re-open using read mode 88 } //end of mode loop 96 -- Testing fgetcsv() with file opened using w+ mode -- 108 -- Testing fgetcsv() with file opened using w+b mode -- 120 -- Testing fgetcsv() with file opened using w+t mode -- 132 -- Testing fgetcsv() with file opened using x+ mode -- 144 -- Testing fgetcsv() with file opened using x+b mode -- 156 -- Testing fgetcsv() with file opened using x+t mode -- 168 -- Testing fgetcsv() with file opened using w+ mode -- 204 -- Testing fgetcsv() with file opened using x+ mode -- [all …]
|
H A D | 007_variation15.phpt | 2 Test fopen and fclose() functions - usage variations - "xt" mode 7 Prototype: resource fopen(string $filename, string $mode 17 /* Test fopen() and fclose(): Opening the file in "xt" mode, 20 checking for the warning msg when trying to open an existing file in "xt" mode, 27 echo "*** Test fopen() & fclose() functions: with 'xt' mode ***\n"; 28 $file_handle = fopen($file, "xt"); //opening the non-existing file in "xt" mode, file will be crea… 39 $file_handle = fopen($file, "xt"); //Opening the existing data file in 'xt' mode to check for the … 46 *** Test fopen() & fclose() functions: with 'xt' mode ***
|
H A D | 007_variation23.phpt | 2 Test fopen and fclose() functions - usage variations - "xb" mode 7 Prototype: resource fopen(string $filename, string $mode 17 /* Test fopen() and fclose(): Opening the file in "xb" mode, 20 checking for the warning msg when trying to open an existing file in "xb" mode, 27 echo "*** Test fopen() & fclose() functions: with 'xb' mode ***\n"; 28 $file_handle = fopen($file, "xb"); //opening the non-existing file in "xb" mode, file will be crea… 39 $file_handle = fopen($file, "xb"); //Opening the existing data file in 'xb' mode to check for the … 46 *** Test fopen() & fclose() functions: with 'xb' mode ***
|
H A D | 007_variation7.phpt | 2 Test fopen and fclose() functions - usage variations - "x" mode 7 Prototype: resource fopen(string $filename, string $mode 17 /* Test fopen() and fclose(): Opening the file in "x" mode, 20 checking for the warning msg when trying to open an existing file in "x" mode, 27 echo "*** Test fopen() & fclose() functions: with 'x' mode ***\n"; 28 $file_handle = fopen($file, "x"); //opening the non-existing file in "x" mode, file will be created 39 $file_handle = fopen($file, "x"); //Opening the existing data file in 'x' mode to check for the wa… 46 *** Test fopen() & fclose() functions: with 'x' mode ***
|
H A D | 007_variation8.phpt | 2 Test fopen and fclose() functions - usage variations - "x+" mode 7 Prototype: resource fopen(string $filename, string $mode 17 /* Test fopen() and fclose(): Opening the file in "x+" mode, 20 checking for the warning msg when trying to open an existing file in "x+" mode, 27 echo "*** Test fopen() & fclose() functions: with 'x+' mode ***\n"; 28 $file_handle = fopen($file, "x+"); //opening the non-existing file in "x+" mode, file will be crea… 39 $file_handle = fopen($file, "x+"); //Opening the existing data file in "x+" mode to check for the … 46 *** Test fopen() & fclose() functions: with 'x+' mode ***
|
H A D | filesize_variation4-win32.phpt | 2 Test filesize() function: usage variations - file mode & holes in file 24 echo "-- opening the file in 'w' mode and get the size --\n"; 32 echo "-- opening the file in 'wt' mode and get the size --\n"; 40 echo "-- opening the file in 'a' mode, adding data and checking the file --\n"; 47 echo "-- opening the file in 'at' mode, adding data and checking the file --\n"; 68 echo "-- opening the existing file in write mode --\n"; 90 -- opening the file in 'w' mode and get the size -- 93 -- opening the file in 'wt' mode and get the size -- 96 -- opening the file in 'a' mode, adding data and checking the file -- 98 -- opening the file in 'at' mode, adding data and checking the file -- [all …]
|
H A D | 007_variation1.phpt | 2 Test fopen and fclose() functions - usage variations - "r" mode 7 Prototype: resource fopen(string $filename, string $mode 17 /* Test fopen() and fclose(): Opening the file in "r" mode, 29 echo "*** Test fopen() & fclose() functions: with 'r' mode ***\n"; 30 $file_handle = fopen($file, "r"); //opening the file in "r" mode 44 *** Test fopen() & fclose() functions: with 'r' mode ***
|
H A D | 007_variation17.phpt | 2 Test fopen and fclose() functions - usage variations - "rb" mode 7 Prototype: resource fopen(string $filename, string $mode 17 /* Test fopen() and fclose(): Opening the file in "rb" mode, 29 echo "*** Test fopen() & fclose() functions: with 'rb' mode ***\n"; 30 $file_handle = fopen($file, "rb"); //opening the file in "rb" mode 44 *** Test fopen() & fclose() functions: with 'rb' mode ***
|
H A D | 007_variation9.phpt | 2 Test fopen and fclose() functions - usage variations - "rt" mode 7 Prototype: resource fopen(string $filename, string $mode 17 /* Test fopen() and fclose(): Opening the file in "rt" mode, 29 echo "*** Test fopen() & fclose() functions: with 'rt' mode ***\n"; 30 $file_handle = fopen($file, "rt"); //opening the file in "rt" mode 44 *** Test fopen() & fclose() functions: with 'rt' mode ***
|
H A D | fseek_ftell_rewind_basic1.phpt | 67 -- File opened in mode r -- 83 -- File opened in mode rb -- 99 -- File opened in mode rt -- 115 -- File opened in mode r+ -- 163 -- File opened in mode a -- 179 -- File opened in mode ab -- 195 -- File opened in mode at -- 211 -- File opened in mode a+ -- 261 -- File opened in mode r -- 277 -- File opened in mode rb -- [all …]
|
H A D | fseek_ftell_rewind_basic2-win32-mb.phpt | 77 -- File opened in mode w -- 93 -- File opened in mode wb -- 109 -- File opened in mode wt -- 125 -- File opened in mode w+ -- 173 -- File opened in mode x -- 189 -- File opened in mode xb -- 205 -- File opened in mode xt -- 221 -- File opened in mode x+ -- 271 -- File opened in mode w -- 287 -- File opened in mode wb -- [all …]
|
/PHP-7.2/Zend/tests/type_declarations/ |
H A D | strict_nested.phpt | 18 takes_int(1.0); // should fail, strict mode 23 takes_int(1.0); // should fail, strict mode 30 takes_int(1.0); // should succeed, weak mode 35 takes_int(1.0); // should succeed, weak mode
|
/PHP-7.2/ext/bz2/tests/ |
H A D | 002.phpt | 2 bzopen() using fd opened in wrong mode 81 Warning: bzopen(): cannot read from a stream opened in write only mode in %s on line %d 96 Warning: bzopen(): cannot write to a stream opened in read only mode in %s on line %d 102 Warning: bzopen(): cannot use stream opened in mode 'rw' in %s on line %d 105 Warning: bzopen(): cannot use stream opened in mode 'rw' in %s on line %d 108 Warning: bzopen(): cannot use stream opened in mode 'wr' in %s on line %d 111 Warning: bzopen(): cannot use stream opened in mode 'wr' in %s on line %d 114 Warning: bzopen(): cannot use stream opened in mode 'r+' in %s on line %d 117 Warning: bzopen(): cannot use stream opened in mode 'r+' in %s on line %d 120 Warning: bzopen(): cannot use stream opened in mode 'w+' in %s on line %d [all …]
|
/PHP-7.2/ext/dba/tests/ |
H A D | bug72157.phpt | 16 Warning: dba_open(,Resource id #5): Illegal DBA mode in %sbug72157.php on line %d 18 Warning: dba_open(,Resource id #5): Illegal DBA mode in %sbug72157.php on line %d 20 Warning: dba_open(,Resource id #5): Illegal DBA mode in %sbug72157.php on line %d 22 Warning: dba_open(Resource id #5,Resource id #5): Illegal DBA mode in %sbug72157.php on line %d
|
/PHP-7.2/ext/zlib/tests/ |
H A D | inflate_add_basic.phpt | 11 function inflateStream($mode, $flushSize) { 14 $resource = inflate_init($mode); 51 foreach ($modes as $modeKey => $mode) { 52 $compressed = zlib_encode($uncompressed, $mode); 57 $stream = inflateStream($mode, $flushSize, $flushType);
|
H A D | gzopen_variation4.phpt | 25 foreach($modes as $mode) { 26 test_gzopen($mode); 40 function test_gzopen($mode) { 48 echo "\n** testing with mode=$mode **\n"; 50 $h = gzopen($filename, $mode, true); 61 $h = gzopen($filename, $mode, true); 72 $h = gzopen($filename, $mode, true); 81 $h = gzopen($filename, $mode, true); 110 ** testing with mode=r ** 117 ** testing with mode=r+ ** [all …]
|
/PHP-7.2/ext/dba/ |
H A D | dba_db3.c | 69 info->mode = DBA_TRUNC; /* force truncate */ 72 type = info->mode == DBA_READER ? DB_UNKNOWN : 73 info->mode == DBA_TRUNC ? DB_BTREE : 76 gmode = info->mode == DBA_READER ? DB_RDONLY : 77 (info->mode == DBA_CREAT && s) ? DB_CREATE : 78 (info->mode == DBA_CREAT && !s) ? 0 : 79 info->mode == DBA_WRITER ? 0 : 80 info->mode == DBA_TRUNC ? DB_CREATE | DB_TRUNCATE : -1; 157 mode == 1 ? DB_NOOVERWRITE : 0)) {
|