/PHP-7.4/ext/standard/tests/file/ |
H A D | fseek_ftell_rewind_variation6.phpt | 73 -- File opened in mode w -- 90 -- File opened in mode wb -- 107 -- File opened in mode wt -- 124 -- File opened in mode w+ -- 175 -- File opened in mode x -- 192 -- File opened in mode xb -- 209 -- File opened in mode xt -- 226 -- File opened in mode x+ -- 279 -- File opened in mode w -- 296 -- File opened in mode wb -- [all …]
|
H A D | fseek_ftell_rewind_variation7.phpt | 67 -- File opened in mode r -- 84 -- File opened in mode rb -- 101 -- File opened in mode rt -- 118 -- File opened in mode r+ -- 169 -- File opened in mode a -- 186 -- File opened in mode ab -- 203 -- File opened in mode at -- 220 -- File opened in mode a+ -- 273 -- File opened in mode r -- 290 -- File opened in mode rb -- [all …]
|
H A D | fseek_ftell_rewind_variation8-win32.phpt | 74 -- File opened in mode w -- 91 -- File opened in mode wb -- 108 -- File opened in mode wt -- 125 -- File opened in mode w+ -- 176 -- File opened in mode x -- 193 -- File opened in mode xb -- 210 -- File opened in mode xt -- 227 -- File opened in mode x+ -- 280 -- File opened in mode w -- 297 -- File opened in mode wb -- [all …]
|
H A D | ftruncate_variation6-win32.phpt | 81 -- Testing ftruncate() with file opening using r mode -- 88 -- Testing ftruncate() with file opening using rb mode -- 95 -- Testing ftruncate() with file opening using rt mode -- 102 -- Testing ftruncate() with file opening using r+ mode -- 126 -- Testing ftruncate() with file opening using w mode -- 134 -- Testing ftruncate() with file opening using wb mode -- 142 -- Testing ftruncate() with file opening using wt mode -- 150 -- Testing ftruncate() with file opening using w+ mode -- 174 -- Testing ftruncate() with file opening using x mode -- 222 -- Testing ftruncate() with file opening using a mode -- [all …]
|
H A D | ftruncate_variation6.phpt | 81 -- Testing ftruncate() with file opening using r mode -- 88 -- Testing ftruncate() with file opening using rb mode -- 95 -- Testing ftruncate() with file opening using rt mode -- 102 -- Testing ftruncate() with file opening using r+ mode -- 126 -- Testing ftruncate() with file opening using w mode -- 134 -- Testing ftruncate() with file opening using wb mode -- 142 -- Testing ftruncate() with file opening using wt mode -- 150 -- Testing ftruncate() with file opening using w+ mode -- 174 -- Testing ftruncate() with file opening using x mode -- 222 -- Testing ftruncate() with file opening using a mode -- [all …]
|
H A D | 007_variation11-win32-mb.phpt | 2 Test fopen and fclose() functions - usage variations - "wt" mode 12 Prototype: resource fopen(string $filename, string $mode 22 /* Test fopen() and fclose(): Opening the file in "wt" mode, 25 checking for the file truncation when trying to open an existing file in "wt" mode, 35 echo "*** Test fopen() & fclose() functions: with 'wt' mode ***\n"; 36 $file_handle = fopen($file, "wt"); //opening the file "wt" mode 48 …; //Check for size of existing data file before opening the file in "wt" mode again, expected: si… 50 fclose( fopen($file, "wt") ); //Opening the existing data file again in "wt" mode 51 …); //Check for size of existing data file after opening the file in "wt" mode again, expected: 0 … 55 fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created [all …]
|
H A D | 007_variation11-win32.phpt | 2 Test fopen and fclose() functions - usage variations - "wt" mode 12 Prototype: resource fopen(string $filename, string $mode 22 /* Test fopen() and fclose(): Opening the file in "wt" mode, 25 checking for the file truncation when trying to open an existing file in "wt" mode, 35 echo "*** Test fopen() & fclose() functions: with 'wt' mode ***\n"; 36 $file_handle = fopen($file, "wt"); //opening the file "wt" mode 48 …; //Check for size of existing data file before opening the file in "wt" mode again, expected: si… 50 fclose( fopen($file, "wt") ); //Opening the existing data file again in "wt" mode 51 …); //Check for size of existing data file after opening the file in "wt" mode again, expected: 0 … 55 fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created [all …]
|
H A D | 007_variation11.phpt | 2 Test fopen and fclose() functions - usage variations - "wt" mode 12 Prototype: resource fopen(string $filename, string $mode 22 /* Test fopen() and fclose(): Opening the file in "wt" mode, 25 checking for the file truncation when trying to open an existing file in "wt" mode, 35 echo "*** Test fopen() & fclose() functions: with 'wt' mode ***\n"; 36 $file_handle = fopen($file, "wt"); //opening the file "wt" mode 48 …; //Check for size of existing data file before opening the file in "wt" mode again, expected: si… 50 fclose( fopen($file, "wt") ); //Opening the existing data file again in "wt" mode 51 …); //Check for size of existing data file after opening the file in "wt" mode again, expected: 0 … 55 fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created [all …]
|
H A D | 007_variation12-win32.phpt | 2 Test fopen and fclose() functions - usage variations - "w+t" mode 12 Prototype: resource fopen(string $filename, string $mode 22 /* Test fopen() and fclose(): Opening the file in "w+t" mode, 25 checking for the file truncation when trying to open an existing file in "w+t" mode, 35 echo "*** Test fopen() & fclose() functions: with 'w+t' mode ***\n"; 36 $file_handle = fopen($file, "w+t"); //opening the file "w+t" mode 48 … //Check for size of existing data file before opening the file in "w+t" mode again, expected: si… 50 fclose( fopen($file, "w+t") ); //Opening the existing data file again in "w+t" mode 51 …; //Check for size of existing data file after opening the file in "w+t" mode again, expected: 0 … 55 fclose( fopen($file, "w+t") ); //Opening the non-existing file in "w+t" mode, which will be created [all …]
|
H A D | 007_variation12.phpt | 2 Test fopen and fclose() functions - usage variations - "w+t" mode 12 Prototype: resource fopen(string $filename, string $mode 22 /* Test fopen() and fclose(): Opening the file in "w+t" mode, 25 checking for the file truncation when trying to open an existing file in "w+t" mode, 35 echo "*** Test fopen() & fclose() functions: with 'w+t' mode ***\n"; 36 $file_handle = fopen($file, "w+t"); //opening the file "w+t" mode 48 … //Check for size of existing data file before opening the file in "w+t" mode again, expected: si… 50 fclose( fopen($file, "w+t") ); //Opening the existing data file again in "w+t" mode 51 …; //Check for size of existing data file after opening the file in "w+t" mode again, expected: 0 … 55 fclose( fopen($file, "w+t") ); //Opening the non-existing file in "w+t" mode, which will be created [all …]
|
H A D | 007_variation19.phpt | 2 Test fopen and fclose() functions - usage variations - "wb" mode 7 Prototype: resource fopen(string $filename, string $mode 17 /* Test fopen() and fclose(): Opening the file in "wb" mode, 20 checking for the file truncation when trying to open an existing file in "wb" mode, 30 echo "*** Test fopen() & fclose() functions: with 'wb' mode ***\n"; 31 $file_handle = fopen($file, "wb"); //opening the file "wb" mode 43 …; //Check for size of existing data file before opening the file in "wb" mode again, expected: si… 45 fclose( fopen($file, "wb") ); //Opening the existing data file again in "wb" mode 46 …); //Check for size of existing data file after opening the file in "wb" mode again, expected: 0 … 50 fclose( fopen($file, "wb") ); //Opening the non-existing file in "wb" mode, which will be created [all …]
|
H A D | 007_variation20.phpt | 2 Test fopen and fclose() functions - usage variations - "w+b" mode 7 Prototype: resource fopen(string $filename, string $mode 17 /* Test fopen() and fclose(): Opening the file in "w+b" mode, 20 checking for the file truncation when trying to open an existing file in "w+b" mode, 30 echo "*** Test fopen() & fclose() functions: with 'w+b' mode ***\n"; 31 $file_handle = fopen($file, "w+b"); //opening the file "w+b" mode 43 … //Check for size of existing data file before opening the file in "w+b" mode again, expected: si… 45 fclose( fopen($file, "w+b") ); //Opening the existing data file again in "w+b" mode 46 …; //Check for size of existing data file after opening the file in "w+b" mode again, expected: 0 … 50 fclose( fopen($file, "w+b") ); //Opening the non-existing file in "w+b" mode, which will be created [all …]
|
H A D | 007_variation3.phpt | 2 Test fopen and fclose() functions - usage variations - "w" mode 7 Prototype: resource fopen(string $filename, string $mode 17 /* Test fopen() and fclose(): Opening the file in "w" mode, 20 checking for the file truncation when trying to open an existing file in "w" mode, 30 echo "*** Test fopen() & fclose() functions: with 'w' mode ***\n"; 31 $file_handle = fopen($file, "w"); //opening the file "w" mode 43 …); //Check for size of existing data file before opening the file in "w" mode again, expected: si… 45 fclose( fopen($file, "w") ); //Opening the existing data file again in "w" mode 46 … ); //Check for size of existing data file after opening the file in "w" mode again, expected: 0 … 50 fclose( fopen($file, "w") ); //Opening the non-existing file in "w" mode, which will be created [all …]
|
H A D | fseek_ftell_rewind_variation2-win32.phpt | 75 -- File opened in mode w -- 90 -- File opened in mode wb -- 105 -- File opened in mode wt -- 120 -- File opened in mode w+ -- 165 -- File opened in mode x -- 180 -- File opened in mode xb -- 195 -- File opened in mode xt -- 210 -- File opened in mode x+ -- 257 -- File opened in mode w -- 272 -- File opened in mode wb -- [all …]
|
H A D | fseek_ftell_rewind_variation2.phpt | 75 -- File opened in mode w -- 90 -- File opened in mode wb -- 105 -- File opened in mode wt -- 120 -- File opened in mode w+ -- 165 -- File opened in mode x -- 180 -- File opened in mode xb -- 195 -- File opened in mode xt -- 210 -- File opened in mode x+ -- 257 -- File opened in mode w -- 272 -- File opened in mode wb -- [all …]
|
H A D | fgetc_variation3.phpt | 23 echo "-- File opened in mode : $file_mode --\n"; 53 *** Testing fgetc() with file opened in write only mode *** 54 -- File opened in mode : w -- 63 -- File opened in mode : wb -- 72 -- File opened in mode : wt -- 81 -- File opened in mode : a -- 90 -- File opened in mode : ab -- 99 -- File opened in mode : at -- 108 -- File opened in mode : x -- 117 -- File opened in mode : xb -- [all …]
|
H A D | fgets_variation1.phpt | 22 echo "-- File opened in mode : $file_mode --\n"; 52 *** Testing fgets() with file opened in write only mode *** 53 -- File opened in mode : w -- 62 -- File opened in mode : wb -- 71 -- File opened in mode : wt -- 80 -- File opened in mode : a -- 89 -- File opened in mode : ab -- 98 -- File opened in mode : at -- 107 -- File opened in mode : x -- 116 -- File opened in mode : xb -- [all …]
|
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 …]
|
/PHP-7.4/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.4/main/streams/ |
H A D | php_stream_mmap.h | 52 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.4/ext/dba/ |
H A D | dba_db2.c | 55 info->mode = DBA_TRUNC; /* force truncate */ in DBA_OPEN_FUNC() 58 type = info->mode == DBA_READER ? DB_UNKNOWN : in DBA_OPEN_FUNC() 59 info->mode == DBA_TRUNC ? DB_BTREE : in DBA_OPEN_FUNC() 62 gmode = info->mode == DBA_READER ? DB_RDONLY : in DBA_OPEN_FUNC() 63 (info->mode == DBA_CREAT && s) ? DB_CREATE : in DBA_OPEN_FUNC() 64 (info->mode == DBA_CREAT && !s) ? 0 : in DBA_OPEN_FUNC() 65 info->mode == DBA_WRITER ? 0 : in DBA_OPEN_FUNC() 66 info->mode == DBA_TRUNC ? DB_CREATE | DB_TRUNCATE : -1; in DBA_OPEN_FUNC() 120 mode == 1 ? DB_NOOVERWRITE : 0)) { in DBA_UPDATE_FUNC()
|
/PHP-7.4/ext/mysqlnd/ |
H A D | mysqlnd_debug.c | 501 mode_len = mode? strlen(mode) : 0; in MYSQLND_METHOD() 515 switch (mode[i]) { in MYSQLND_METHOD() 521 if (mode[i] == 'a' || mode[i] == 'A') { in MYSQLND_METHOD() 527 if (i+4 < mode_len && mode[i+3] == ':' && (mode[i+4] == '\\' || mode[i+4] == '/')) { in MYSQLND_METHOD() 532 if (mode[j] == ':') { in MYSQLND_METHOD() 560 if (mode[j] == ':') { in MYSQLND_METHOD() 567 if (mode[j] == ',' || mode[j] == ':') { in MYSQLND_METHOD() 578 if (mode[j] == ':') { in MYSQLND_METHOD() 601 if (mode[i] == ':') { in MYSQLND_METHOD() 626 if (mode[i+1] == ',') { in MYSQLND_METHOD() [all …]
|
/PHP-7.4/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.4/ext/ftp/ |
H A D | php_ftp.c | 97 ZEND_ARG_INFO(0, mode) 131 ZEND_ARG_INFO(0, mode) 139 ZEND_ARG_INFO(0, mode) 152 ZEND_ARG_INFO(0, mode) 359 if (mode != FTPTYPE_ASCII && mode != FTPTYPE_IMAGE) { \ 668 zend_long mode; in PHP_FUNCTION() local 685 RETURN_LONG(mode); in PHP_FUNCTION() 865 XTYPE(xtype, mode); in PHP_FUNCTION() 913 XTYPE(xtype, mode); in PHP_FUNCTION() 988 XTYPE(xtype, mode); in PHP_FUNCTION() [all …]
|
/PHP-7.4/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
|