/PHP-5.6/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-5.6/ext/standard/tests/file/ |
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_basic2-win32.phpt | 78 -- File opened in mode w -- 94 -- File opened in mode wb -- 110 -- File opened in mode wt -- 126 -- File opened in mode w+ -- 174 -- File opened in mode x -- 190 -- File opened in mode xb -- 206 -- File opened in mode xt -- 222 -- File opened in mode x+ -- 272 -- File opened in mode w -- 288 -- File opened in mode wb -- [all …]
|
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.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 …]
|
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_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 | filesize_variation4.phpt | 2 Test filesize() function: usage variations - file mode & holes in file 26 echo "-- opening the file in 'w' mode and get the size --\n"; 34 echo "-- opening the file in 'wt' mode and get the size --\n"; 42 echo "-- opening the file in 'a' mode, adding data and checking the file --\n"; 49 echo "-- opening the file in 'at' mode, adding data and checking the file --\n"; 70 echo "-- opening the existing file in write mode --\n"; 92 -- opening the file in 'w' mode and get the size -- 95 -- opening the file in 'wt' mode and get the size -- 98 -- opening the file in 'a' mode, adding data and checking the file -- 100 -- opening the file in 'at' mode, adding data and checking the file -- [all …]
|
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_variation21.phpt | 2 Test fopen and fclose() functions - usage variations - "ab" mode 7 Prototype: resource fopen(string $filename, string $mode 17 /* Test fopen() and fclose(): Opening the file in "ab" mode, 29 echo "*** Test fopen() & fclose() functions: with 'ab' mode ***\n"; 30 $file_handle = fopen($file, "ab"); //opening the file "ab" mode 42 fclose( fopen($file, "ab") ); //Opening the non-existing file in "ab" mode, which will be created 50 *** Test fopen() & fclose() functions: with 'ab' 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 ***
|
/PHP-5.6/ext/mysqlnd/ |
H A D | mysqlnd_debug.c | 522 mode_len = mode? strlen(mode) : 0; in MYSQLND_METHOD() 536 switch (mode[i]) { in MYSQLND_METHOD() 542 if (mode[i] == 'a' || mode[i] == 'A') { in MYSQLND_METHOD() 548 if (i+4 < mode_len && mode[i+3] == ':' && (mode[i+4] == '\\' || mode[i+5] == '/')) { in MYSQLND_METHOD() 553 if (mode[j] == ':') { in MYSQLND_METHOD() 581 if (mode[j] == ':') { in MYSQLND_METHOD() 588 if (mode[j] == ',' || mode[j] == ':') { in MYSQLND_METHOD() 599 if (mode[j] == ':') { in MYSQLND_METHOD() 622 if (mode[i] == ':') { in MYSQLND_METHOD() 647 if (mode[i+1] == ',') { in MYSQLND_METHOD() [all …]
|
/PHP-5.6/ext/dba/ |
H A D | dba_db3.c | 66 info->mode = DBA_TRUNC; /* force truncate */ in DBA_OPEN_FUNC() 69 type = info->mode == DBA_READER ? DB_UNKNOWN : in DBA_OPEN_FUNC() 70 info->mode == DBA_TRUNC ? DB_BTREE : in DBA_OPEN_FUNC() 73 gmode = info->mode == DBA_READER ? DB_RDONLY : in DBA_OPEN_FUNC() 74 (info->mode == DBA_CREAT && s) ? DB_CREATE : in DBA_OPEN_FUNC() 75 (info->mode == DBA_CREAT && !s) ? 0 : in DBA_OPEN_FUNC() 76 info->mode == DBA_WRITER ? 0 : in DBA_OPEN_FUNC() 77 info->mode == DBA_TRUNC ? DB_CREATE | DB_TRUNCATE : -1; in DBA_OPEN_FUNC() 149 mode == 1 ? DB_NOOVERWRITE : 0)) { in DBA_UPDATE_FUNC()
|
/PHP-5.6/main/streams/ |
H A D | php_stream_mmap.h | 54 php_stream_mmap_access_t mode; member 70 …stream *stream, size_t offset, size_t length, php_stream_mmap_operation_t mode, size_t *mapped_len… 71 …am_mmap_range(stream, offset, length, mode, mapped_len) _php_stream_mmap_range((stream), (offset),… argument
|
/PHP-5.6/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-5.6/ext/zlib/tests/ |
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 …]
|