/php-src/ext/standard/tests/file/ |
H A D | fread_variation3-win32.phpt | 108 -- File opened in mode a+ -- 122 -- File opened in mode a+b -- 136 -- File opened in mode a+t -- 150 -- File opened in mode w+ -- 164 -- File opened in mode w+b -- 178 -- File opened in mode w+t -- 192 -- File opened in mode x+ -- 236 -- File opened in mode a+ -- 278 -- File opened in mode w+ -- 320 -- File opened in mode x+ -- [all …]
|
H A D | fread_variation3.phpt | 108 -- File opened in mode a+ -- 122 -- File opened in mode a+b -- 136 -- File opened in mode a+t -- 150 -- File opened in mode w+ -- 164 -- File opened in mode w+b -- 178 -- File opened in mode w+t -- 192 -- File opened in mode x+ -- 236 -- File opened in mode a+ -- 278 -- File opened in mode w+ -- 320 -- File opened in mode x+ -- [all …]
|
H A D | stat_variation5-win32.phpt | 2 Test stat() functions: usage variations - file opened in read/write mode 12 /* test the stats of file opened in write mode and then same in read mode */ 31 // opening file again in read mode
|
H A D | bug52335.phpt | 6 echo "Read mode\n"; 19 echo "Read write mode\n"; 41 Read mode 51 Read write mode
|
H A D | 007_variation18.phpt | 2 Test fopen and fclose() functions - usage variations - "r+b" mode 6 /* Test fopen() and fclose(): Opening the file in "r+b" mode, 18 echo "*** Test fopen() & fclose() functions: with 'r+b' mode ***\n"; 19 $file_handle = fopen($file, "r+b"); //opening the file in "r+b" mode 36 *** Test fopen() & fclose() functions: with 'r+b' mode ***
|
H A D | 007_variation2.phpt | 2 Test fopen and fclose() functions - usage variations - "r+" mode 6 /* Test fopen() and fclose(): Opening the file in "r+" mode, 18 echo "*** Test fopen() & fclose() functions: with 'r+' mode ***\n"; 19 $file_handle = fopen($file, "r+"); //opening the file in "r+" mode 36 *** Test fopen() & fclose() functions: with 'r+' mode ***
|
H A D | 007_variation10.phpt | 2 Test fopen and fclose() functions - usage variations - "r+t" mode 6 /* Test fopen() and fclose(): Opening the file in "r+t" mode, 18 echo "*** Test fopen() & fclose() functions: with 'r+t' mode ***\n"; 19 $file_handle = fopen($file, "r+t"); //opening the file in "r+t" mode 36 *** Test fopen() & fclose() functions: with 'r+t' mode ***
|
H A D | fgetc_variation4.phpt | 17 echo "-- File opened in mode : $file_mode --\n"; 51 -- File opened in mode : a+ -- 77 -- File opened in mode : a+b -- 103 -- File opened in mode : a+t -- 129 -- File opened in mode : x+ -- 155 -- File opened in mode : x+b -- 181 -- File opened in mode : x+t -- 207 -- File opened in mode : w+ -- 233 -- File opened in mode : w+b -- 259 -- File opened in mode : w+t --
|
H A D | bug76735.phpt | 2 Bug #76735 (Incorrect message in fopen on invalid mode) 8 Warning: fopen(%s): Failed to open stream: `Q' is not a valid mode for fopen in %s on line %d
|
H A D | bug78386.phpt | 2 Bug #78386 (fstat mode has unexpected value on PHP 7.4) 11 var_dump(decoct($stat['mode']));
|
H A D | fread_basic.phpt | 98 -- File opened in mode r -- 120 -- File opened in mode rb -- 142 -- File opened in mode rt -- 164 -- File opened in mode r+ -- 186 -- File opened in mode r+b -- 232 -- File opened in mode r -- 254 -- File opened in mode rb -- 276 -- File opened in mode rt -- 298 -- File opened in mode r+ -- 366 -- File opened in mode r -- [all …]
|
/php-src/ext/standard/tests/array/ |
H A D | sizeof_variation3.phpt | 2 Test sizeof() function : usage variations - checking for infinite recursion in COUNT_RECURSIVE mode 7 echo "-- Testing sizeof() for infinite recursion with arrays as argument in COUNT_RECURSIVE mode --… 23 -- Testing sizeof() for infinite recursion with arrays as argument in COUNT_RECURSIVE mode --
|
/php-src/ext/mysqli/tests/ |
H A D | mysqli_result_invalid_mode.phpt | 2 mysqli_result(), invalid mode 20 foreach ($invalidModes as $mode) { 22 new mysqli_result($link, $mode);
|
/php-src/ext/calendar/ |
H A D | calendar.stub.php | 131 function easter_date(?int $year = null, int $mode = CAL_EASTER_DEFAULT): int {} argument 133 function easter_days(?int $year = null, int $mode = CAL_EASTER_DEFAULT): int {} argument 139 function jddayofweek(int $julian_day, int $mode = CAL_DOW_DAYNO): int|string {} argument 141 function jdmonthname(int $julian_day, int $mode): string {} argument
|
/php-src/ext/random/ |
H A D | engine_mt19937.c | 107 if (state->mode == MT_RAND_MT19937) { in mt19937_reload() 185 ZVAL_LONG(&t, s->mode); in serialize() 223 s->mode = Z_LVAL_P(t); in unserialize() 224 if (s->mode != MT_RAND_MT19937 && s->mode != MT_RAND_PHP) { in unserialize() 257 zend_long seed, mode = MT_RAND_MT19937; in PHP_METHOD() local 263 Z_PARAM_LONG(mode); in PHP_METHOD() 266 switch (mode) { in PHP_METHOD() 268 state->mode = MT_RAND_MT19937; in PHP_METHOD() 272 state->mode = MT_RAND_PHP; in PHP_METHOD()
|
/php-src/ext/standard/ |
H A D | php_fopen_wrapper.c | 176 …p_stream_url_wrap_php(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, in php_stream_url_wrap_php() argument 204 mode_rw = php_stream_mode_from_str(mode); in php_stream_url_wrap_php() 209 mode_rw = php_stream_mode_from_str(mode); in php_stream_url_wrap_php() 341 if (strchr(mode, 'r') || strchr(mode, '+')) { in php_stream_url_wrap_php() 344 if (strchr(mode, 'w') || strchr(mode, '+') || strchr(mode, 'a')) { in php_stream_url_wrap_php() 355 if (!(stream = php_stream_open_wrapper(p + 10, mode, options, opened_path))) { in php_stream_url_wrap_php() 408 stream = php_stream_fopen_from_file(file, mode); in php_stream_url_wrap_php() 410 stream = php_stream_fopen_from_fd(fd, mode, NULL); in php_stream_url_wrap_php()
|
H A D | php_fopen_wrappers.h | 22 …_url_wrap_http(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_… 23 php_stream *php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, const char *path, const char *mode…
|
/php-src/ext/standard/tests/streams/ |
H A D | bug44818.phpt | 5 function test($url, $mode) { 6 echo "$url, $mode\n"; 7 $fd = fopen($url, $mode);
|
/php-src/ext/phar/tests/ |
H A D | bug79082.phpt | 21 var_dump(decoct(stat(__DIR__ . '/test79082-testfile')['mode'])); 22 var_dump(decoct(stat(__DIR__ . '/test79082-testfile2')['mode'])); 31 var_dump(decoct(stat(__DIR__ . '/test79082-testfile')['mode'])); 32 var_dump(decoct(stat(__DIR__ . '/test79082-testfile2')['mode']));
|
/php-src/ext/standard/tests/math/ |
H A D | round_gh12143_expand-rounding-target.phpt | 75 foreach ($testCases as $mode => $cases) { 76 echo "========== {$mode} ==========\n"; 78 var_dump(round($val, $precision, constant($mode)));
|
/php-src/ext/iconv/tests/ |
H A D | iconv_mime_decode.phpt | 17 global $mode; 19 $result = iconv_mime_decode($header, $mode, "UTF-8"); 59 $mode = 0; 61 $mode = ICONV_MIME_DECODE_STRICT; 63 $mode = ICONV_MIME_DECODE_CONTINUE_ON_ERROR; 65 $mode = ICONV_MIME_DECODE_STRICT | ICONV_MIME_DECODE_CONTINUE_ON_ERROR;
|
/php-src/ext/random/tests/02_engine/ |
H A D | mt19937_error.phpt | 2 Random: Engine: Mt19937: Invalid $mode parameter values must be rejected 16 Random\Engine\Mt19937::__construct(): Argument #2 ($mode) must be either MT_RAND_MT19937 or MT_RAND…
|
/php-src/ext/zlib/ |
H A D | zlib_fopen_wrapper.c | 108 php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, const char *path, const char *mode, int … in php_stream_gzopen() argument 115 if (strchr(mode, '+')) { in php_stream_gzopen() 128 …innerstream = php_stream_open_wrapper_ex(path, mode, STREAM_MUST_SEEK | options | STREAM_WILL_CAST… in php_stream_gzopen() 136 self->gz_file = gzdopen(dup(fd), mode); in php_stream_gzopen() 144 stream = php_stream_alloc_rel(&php_stream_gzio_ops, self, 0, mode); in php_stream_gzopen()
|
/php-src/ext/dba/ |
H A D | dba_dbm.c | 38 #define TRUNC_IT(extension, mode) \ argument 41 if((fd = VCWD_OPEN_MODE(buf, O_CREAT | mode | O_WRONLY, filemode)) == -1) \ 55 if(info->mode == DBA_TRUNC) { in DBA_OPEN_FUNC() 63 if(info->mode == DBA_CREAT) { in DBA_OPEN_FUNC() 107 if (mode == 1) { /* insert */ in DBA_UPDATE_FUNC()
|
/php-src/ext/pdo/ |
H A D | pdo_stmt.stub.php | 38 …public function fetch(int $mode = PDO::FETCH_DEFAULT, int $cursorOrientation = PDO::FETCH_ORI_NEXT… argument 41 public function fetchAll(int $mode = PDO::FETCH_DEFAULT, mixed ...$args): array {} argument 65 public function setFetchMode(int $mode, mixed ...$args): true {} argument
|