/PHP-7.4/ext/standard/tests/file/ |
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_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 | lstat_stat_variation13.phpt | 2 Test lstat() and stat() functions: usage variations - file opened using w and r mode 16 /* use stat on file created using "w" and "r" mode of fopen */ 24 echo "*** Checking stat() on a file opened using read/write mode ***\n"; 31 // opening file again in read mode 49 *** Checking stat() on a file opened using read/write mode ***
|
H A D | 007_variation6.phpt | 2 Test fopen and fclose() functions - usage variations - "a+" mode 7 Prototype: resource fopen(string $filename, string $mode 17 /* Test fopen() and fclose(): Opening the file in "a+" mode, 29 echo "*** Test fopen() & fclose() functions: with 'a+' mode ***\n"; 30 $file_handle = fopen($file, "a+"); //opening the file "a+" mode 41 fclose( fopen($file, "a+") ); //Opening the non-existing file in "a+" mode, which will be created 49 *** Test fopen() & fclose() functions: with 'a+' 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_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_variation16.phpt | 2 Test fopen and fclose() functions - usage variations - "x+t" mode 7 Prototype: resource fopen(string $filename, string $mode 17 /* Test fopen() and fclose(): Opening the file in "x+t" mode, 20 checking for the warning msg when trying to open an existing file in "x+t" mode, 27 echo "*** Test fopen() & fclose() functions: with 'x+t' mode ***\n"; 28 $file_handle = fopen($file, "x+t"); //opening the non-existing file in "x+t" mode, file will be cr… 39 $file_handle = fopen($file, "x+t"); //Opening the existing data file in "x+t" mode to check for th… 46 *** Test fopen() & fclose() functions: with 'x+t' 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_variation24.phpt | 2 Test fopen and fclose() functions - usage variations - "x+b" mode 7 Prototype: resource fopen(string $filename, string $mode 17 /* Test fopen() and fclose(): Opening the file in "x+b" mode, 20 checking for the warning msg when trying to open an existing file in "x+b" mode, 27 echo "*** Test fopen() & fclose() functions: with 'x+b' mode ***\n"; 28 $file_handle = fopen($file, "x+b"); //opening the non-existing file in "x+b" mode, file will be cr… 39 $file_handle = fopen($file, "x+b"); //Opening the existing data file in "x+b" mode to check for th… 46 *** Test fopen() & fclose() functions: with 'x+b' 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_variation14.phpt | 2 Test fopen and fclose() functions - usage variations - "a+t" mode 7 Prototype: resource fopen(string $filename, string $mode 17 /* Test fopen() and fclose(): Opening the file in "a+t" mode, 29 echo "*** Test fopen() & fclose() functions: with 'a+t' mode ***\n"; 30 $file_handle = fopen($file, "a+t"); //opening the file "a+t" mode 41 fclose( fopen($file, "a+t") ); //Opening the non-existing file in "a+t" mode, which will be created 49 *** Test fopen() & fclose() functions: with 'a+t' mode ***
|
H A D | 007_variation22.phpt | 2 Test fopen and fclose() functions - usage variations - "a+b" mode 7 Prototype: resource fopen(string $filename, string $mode 17 /* Test fopen() and fclose(): Opening the file in "a+b" mode, 29 echo "*** Test fopen() & fclose() functions: with 'a+b' mode ***\n"; 30 $file_handle = fopen($file, "a+b"); //opening the file "a+b" mode 41 fclose( fopen($file, "a+b") ); //Opening the non-existing file in "a+b" mode, which will be created 49 *** Test fopen() & fclose() functions: with 'a+b' mode ***
|
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 ***
|
/PHP-7.4/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 | 26 foreach($modes as $mode) { 27 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.4/ext/standard/tests/streams/ |
H A D | bug75031.phpt | 2 Bug #75031: Append mode in php://temp and php://memory 6 function test_75031($type, $mode) { 7 $fp = fopen($type, $mode);
|
H A D | stream_get_meta_data_process_basic.phpt | 8 $mode = 'rb'; 9 $handle = popen($cmd, $mode); 29 ["mode"]=>
|
/PHP-7.4/ext/dba/ |
H A D | dba_db3.c | 67 info->mode = DBA_TRUNC; /* force truncate */ 70 type = info->mode == DBA_READER ? DB_UNKNOWN : 71 info->mode == DBA_TRUNC ? DB_BTREE : 74 gmode = info->mode == DBA_READER ? DB_RDONLY : 75 (info->mode == DBA_CREAT && s) ? DB_CREATE : 76 (info->mode == DBA_CREAT && !s) ? 0 : 77 info->mode == DBA_WRITER ? 0 : 78 info->mode == DBA_TRUNC ? DB_CREATE | DB_TRUNCATE : -1; 154 mode == 1 ? DB_NOOVERWRITE : 0)) {
|
/PHP-7.4/main/streams/ |
H A D | plain_wrapper.c | 68 switch (mode[0]) { in php_stream_parse_fopen_modes() 89 if (strchr(mode, '+')) { in php_stream_parse_fopen_modes() 98 if (strchr(mode, 'e')) { in php_stream_parse_fopen_modes() 104 if (strchr(mode, 'n')) { in php_stream_parse_fopen_modes() 110 if (strchr(mode, 't')) { in php_stream_parse_fopen_modes() 729 switch (range->mode) { in php_stdiop_set_option() 781 switch (range->mode) { in php_stdiop_set_option() 1314 ret = php_mkdir(dir, mode); in php_plain_files_mkdir() 1360 ret = php_mkdir(dir, mode); in php_plain_files_mkdir() 1424 mode_t mode; in php_plain_files_metadata() local [all …]
|
H A D | mmap.c | 23 …hp_stream *stream, size_t offset, size_t length, php_stream_mmap_access_t mode, size_t *mapped_len) in _php_stream_mmap_range() argument 29 range.mode = mode; in _php_stream_mmap_range()
|
/PHP-7.4/ext/oci8/tests/ |
H A D | bug44206.phpt | 26 $mode = OCI_ASSOC | OCI_RETURN_NULLS; 27 $result = oci_fetch_array($s, $mode); 30 oci_fetch_array($result['A'], $mode); 31 oci_fetch_array($result['B'], $mode);
|
/PHP-7.4/ext/phar/ |
H A D | dirstream.h | 21 int phar_wrapper_mkdir(php_stream_wrapper *wrapper, const char *url_from, int mode, int options, ph… 25 php_url* phar_parse_url(php_stream_wrapper *wrapper, const char *filename, const char *mode, int op… 34 php_stream* phar_wrapper_open_dir(php_stream_wrapper *wrapper, const char *path, const char *mode, …
|