/PHP-5.4/ext/standard/tests/file/ |
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 | fseek_ftell_rewind_variation8.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 | 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 | 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_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 | 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 …]
|
/PHP-5.4/ext/standard/tests/array/ |
H A D | count_variation3.phpt | 5 /* Prototype : int count(mixed $var [, int $mode]) 21 echo "\n-- \$mode not set: --\n"; 24 echo "\n-- \$mode = 1: --\n"; 32 -- $mode not set: -- 35 -- $mode = 1: --
|
/PHP-5.4/ext/mbstring/tests/ |
H A D | bug49536.phpt | 7 // non-strict mode 9 // strict mode 11 // non-strict mode 13 // strict mode
|
/PHP-5.4/ext/ftp/ |
H A D | php_ftp.c | 103 ZEND_ARG_INFO(0, mode) 132 ZEND_ARG_INFO(0, mode) 140 ZEND_ARG_INFO(0, mode) 332 if (mode != FTPTYPE_ASCII && mode != FTPTYPE_IMAGE) { \ 608 long mode; in PHP_FUNCTION() local 621 RETURN_LONG(mode); in PHP_FUNCTION() 752 XTYPE(xtype, mode); in PHP_FUNCTION() 796 XTYPE(xtype, mode); in PHP_FUNCTION() 865 XTYPE(xtype, mode); in PHP_FUNCTION() 928 XTYPE(xtype, mode); in PHP_FUNCTION() [all …]
|
/PHP-5.4/ext/dba/ |
H A D | dba_db2.c | 57 info->mode = DBA_TRUNC; /* force truncate */ in DBA_OPEN_FUNC() 60 type = info->mode == DBA_READER ? DB_UNKNOWN : in DBA_OPEN_FUNC() 61 info->mode == DBA_TRUNC ? DB_BTREE : in DBA_OPEN_FUNC() 64 gmode = info->mode == DBA_READER ? DB_RDONLY : in DBA_OPEN_FUNC() 65 (info->mode == DBA_CREAT && s) ? DB_CREATE : in DBA_OPEN_FUNC() 66 (info->mode == DBA_CREAT && !s) ? 0 : in DBA_OPEN_FUNC() 67 info->mode == DBA_WRITER ? 0 : in DBA_OPEN_FUNC() 68 info->mode == DBA_TRUNC ? DB_CREATE | DB_TRUNCATE : -1; in DBA_OPEN_FUNC() 123 mode == 1 ? DB_NOOVERWRITE : 0)) { in DBA_UPDATE_FUNC()
|
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.4/ext/mysqli/tests/ |
H A D | mysqli_mysqli_result_invalid_mode.phpt | 2 mysqli_result(), invalid mode 16 $mode = mt_rand(-1000, 1000); 17 } while (in_array($mode, $valid)); 19 if (!is_object($res = new mysqli_result($link, $mode)))
|
/PHP-5.4/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-5.4/main/streams/ |
H A D | plain_wrapper.c | 48 #define php_stream_fopen_from_file_int(file, mode) _php_stream_fopen_from_file_int((file), (mode) S… argument 61 switch (mode[0]) { in php_stream_parse_fopen_modes() 82 if (strchr(mode, '+')) { in php_stream_parse_fopen_modes() 91 if (strchr(mode, 'n')) { in php_stream_parse_fopen_modes() 97 if (strchr(mode, 't')) { in php_stream_parse_fopen_modes() 650 switch (range->mode) { in php_stdiop_set_option() 701 switch (range->mode) { in php_stdiop_set_option() 1153 ret = php_mkdir(dir, mode TSRMLS_CC); in php_plain_files_mkdir() 1264 mode_t mode; in php_plain_files_metadata() local 1326 mode = (mode_t)*(long *)value; in php_plain_files_metadata() [all …]
|
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.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-5.4/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.4/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 …]
|