Home
last modified time | relevance | path

Searched refs:mode (Results 126 – 150 of 786) sorted by relevance

12345678910>>...32

/PHP-8.2/ext/standard/tests/file/
H A Dfgets_variation1.phpt18 echo "-- File opened in mode : $file_mode --\n";
48 *** Testing fgets() with file opened in write only mode ***
49 -- File opened in mode : w --
58 -- File opened in mode : wb --
67 -- File opened in mode : wt --
76 -- File opened in mode : a --
85 -- File opened in mode : ab --
94 -- File opened in mode : at --
103 -- File opened in mode : x --
112 -- File opened in mode : xb --
[all …]
H A Dfseek_ftell_rewind_basic1.phpt57 -- File opened in mode r --
73 -- File opened in mode rb --
89 -- File opened in mode rt --
105 -- File opened in mode r+ --
121 -- File opened in mode r+b --
153 -- File opened in mode a --
169 -- File opened in mode ab --
185 -- File opened in mode at --
201 -- File opened in mode a+ --
251 -- File opened in mode r --
[all …]
H A Dfseek_ftell_rewind_basic2-win32-mb.phpt67 -- File opened in mode w --
83 -- File opened in mode wb --
99 -- File opened in mode wt --
115 -- File opened in mode w+ --
131 -- File opened in mode w+b --
163 -- File opened in mode x --
179 -- File opened in mode xb --
195 -- File opened in mode xt --
211 -- File opened in mode x+ --
261 -- File opened in mode w --
[all …]
H A Dfseek_ftell_rewind_basic2-win32.phpt67 -- File opened in mode w --
83 -- File opened in mode wb --
99 -- File opened in mode wt --
115 -- File opened in mode w+ --
131 -- File opened in mode w+b --
163 -- File opened in mode x --
179 -- File opened in mode xb --
195 -- File opened in mode xt --
211 -- File opened in mode x+ --
261 -- File opened in mode w --
[all …]
H A Dfseek_ftell_rewind_basic2.phpt67 -- File opened in mode w --
83 -- File opened in mode wb --
99 -- File opened in mode wt --
115 -- File opened in mode w+ --
131 -- File opened in mode w+b --
163 -- File opened in mode x --
179 -- File opened in mode xb --
195 -- File opened in mode xt --
211 -- File opened in mode x+ --
261 -- File opened in mode w --
[all …]
H A Dfilesize_variation4-win32.phpt2 Test filesize() function: usage variations - file mode & holes in file
19 echo "-- opening the file in 'w' mode and get the size --\n";
27 echo "-- opening the file in 'wt' mode and get the size --\n";
35 echo "-- opening the file in 'a' mode, adding data and checking the file --\n";
42 echo "-- opening the file in 'at' mode, adding data and checking the file --\n";
63 echo "-- opening the existing file in write mode --\n";
85 -- opening the file in 'w' mode and get the size --
88 -- opening the file in 'wt' mode and get the size --
91 -- opening the file in 'a' mode, adding data and checking the file --
93 -- opening the file in 'at' mode, adding data and checking the file --
[all …]
H A Dlstat_stat_variation13.phpt2 Test lstat() and stat() functions: usage variations - file opened using w and r mode
9 /* use stat on file created using "w" and "r" mode of fopen */
17 echo "*** Checking stat() on a file opened using read/write mode ***\n";
24 // opening file again in read mode
42 *** Checking stat() on a file opened using read/write mode ***
H A Dfilesize_variation4.phpt2 Test filesize() function: usage variations - file mode & holes in file
21 echo "-- opening the file in 'w' mode and get the size --\n";
29 echo "-- opening the file in 'wt' mode and get the size --\n";
37 echo "-- opening the file in 'a' mode, adding data and checking the file --\n";
44 echo "-- opening the file in 'at' mode, adding data and checking the file --\n";
65 echo "-- opening the existing file in write mode --\n";
87 -- opening the file in 'w' mode and get the size --
90 -- opening the file in 'wt' mode and get the size --
93 -- opening the file in 'a' mode, adding data and checking the file --
95 -- opening the file in 'at' mode, adding data and checking the file --
[all …]
H A D007_variation8.phpt2 Test fopen and fclose() functions - usage variations - "x+" mode
6 /* Test fopen() and fclose(): Opening the file in "x+" mode,
9 checking for the warning msg when trying to open an existing file in "x+" mode,
16 echo "*** Test fopen() & fclose() functions: with 'x+' mode ***\n";
17 $file_handle = fopen($file, "x+"); //opening the non-existing file in "x+" mode, file will be crea…
28 $file_handle = fopen($file, "x+"); //Opening the existing data file in "x+" mode to check for the …
36 *** Test fopen() & fclose() functions: with 'x+' mode ***
H A Dfgetc_variation1.phpt20 echo "-- File opened in mode : $file_modes[$loop_counter] --\n";
48 -- File opened in mode : r --
55 -- File opened in mode : rb --
62 -- File opened in mode : rt --
69 -- File opened in mode : r+ --
76 -- File opened in mode : r+b --
83 -- File opened in mode : r+t --
/PHP-8.2/ext/dba/tests/
H A Dvalue_errors_open.phpt124 dba_open(): Argument #2 ($mode) cannot be empty
126 dba_open(): Argument #2 ($mode) first character must be one of "r", "w", "c", or "n"
127 dba_open(): Argument #2 ($mode) second character must be one of "d", "l", "-", or "t"
128 dba_open(): Argument #2 ($mode) third character must be "t"
129 dba_open(): Argument #2 ($mode) cannot combine mode "-" (no lock) and "t" (test lock)
136 dba_popen(): Argument #2 ($mode) cannot be empty
138 dba_popen(): Argument #2 ($mode) first character must be one of "r", "w", "c", or "n"
139 dba_popen(): Argument #2 ($mode) second character must be one of "d", "l", "-", or "t"
140 dba_popen(): Argument #2 ($mode) third character must be "t"
141 dba_popen(): Argument #2 ($mode) cannot combine mode "-" (no lock) and "t" (test lock)
/PHP-8.2/ext/standard/tests/array/
H A Dcount_variation3.phpt16 echo "\n-- \$mode not set: --\n";
19 echo "\n-- \$mode = 1: --\n";
27 -- $mode not set: --
30 -- $mode = 1: --
/PHP-8.2/Zend/tests/type_declarations/
H A Dstrict_nested.phpt18 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-8.2/ext/dba/
H A Ddba_db2.c47 info->mode = DBA_TRUNC; /* force truncate */ in DBA_OPEN_FUNC()
50 type = info->mode == DBA_READER ? DB_UNKNOWN : in DBA_OPEN_FUNC()
51 info->mode == DBA_TRUNC ? DB_BTREE : in DBA_OPEN_FUNC()
54 gmode = info->mode == DBA_READER ? DB_RDONLY : in DBA_OPEN_FUNC()
55 (info->mode == DBA_CREAT && s) ? DB_CREATE : in DBA_OPEN_FUNC()
56 (info->mode == DBA_CREAT && !s) ? 0 : in DBA_OPEN_FUNC()
57 info->mode == DBA_WRITER ? 0 : in DBA_OPEN_FUNC()
58 info->mode == DBA_TRUNC ? DB_CREATE | DB_TRUNCATE : -1; in DBA_OPEN_FUNC()
113 mode == 1 ? DB_NOOVERWRITE : 0)) { in DBA_UPDATE_FUNC()
H A Ddba_db3.c59 info->mode = DBA_TRUNC; /* force truncate */
62 type = info->mode == DBA_READER ? DB_UNKNOWN :
63 info->mode == DBA_TRUNC ? DB_BTREE :
66 gmode = info->mode == DBA_READER ? DB_RDONLY :
67 (info->mode == DBA_CREAT && s) ? DB_CREATE :
68 (info->mode == DBA_CREAT && !s) ? 0 :
69 info->mode == DBA_WRITER ? 0 :
70 info->mode == DBA_TRUNC ? DB_CREATE | DB_TRUNCATE : -1;
148 mode == 1 ? DB_NOOVERWRITE : 0)) {
/PHP-8.2/ext/dom/lexbor/lexbor/html/tree/insertion_mode/
H A Dtext.c44 tree->mode = tree->original_mode; in lxb_html_tree_insertion_mode_text()
53 tree->mode = tree->original_mode; in lxb_html_tree_insertion_mode_text()
60 tree->mode = tree->original_mode; in lxb_html_tree_insertion_mode_text()
84 tree->mode = tree->original_mode; in lxb_html_tree_insertion_mode_text()
/PHP-8.2/ext/zlib/tests/
H A Dinflate_add_basic.phpt11 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);
/PHP-8.2/ext/ftp/
H A Dftp.stub.php107 …function ftp_fget(FTP\Connection $ftp, $stream, string $remote_filename, int $mode = FTP_BINARY, i…
110 …function ftp_nb_fget(FTP\Connection $ftp, $stream, string $remote_filename, int $mode = FTP_BINARY…
112 …TP\Connection $ftp, string $local_filename, string $remote_filename, int $mode = FTP_BINARY, int $…
113 …TP\Connection $ftp, string $local_filename, string $remote_filename, int $mode = FTP_BINARY, int $…
117 …function ftp_fput(FTP\Connection $ftp, string $remote_filename, $stream, int $mode = FTP_BINARY, i…
120 …function ftp_nb_fput(FTP\Connection $ftp, string $remote_filename, $stream, int $mode = FTP_BINARY…
121 …TP\Connection $ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY, int $…
122 …TP\Connection $ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY): bool…
123 …TP\Connection $ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY, int $…
/PHP-8.2/ext/standard/tests/math/
H A Dround_modes_ceiling_and_floor.phpt26 echo "mode PHP_ROUND_CEILING\n";
32 echo "mode PHP_ROUND_FLOOR\n";
39 mode PHP_ROUND_CEILING
55 mode PHP_ROUND_FLOOR
/PHP-8.2/main/streams/
H A Dplain_wrapper.c47 #define php_stream_fopen_from_file_int(file, mode) _php_stream_fopen_from_file_int((file), (mode) S… argument
74 switch (mode[0]) { in php_stream_parse_fopen_modes()
95 if (strchr(mode, '+')) { in php_stream_parse_fopen_modes()
104 if (strchr(mode, 'e')) { in php_stream_parse_fopen_modes()
110 if (strchr(mode, 'n')) { in php_stream_parse_fopen_modes()
116 if (strchr(mode, 't')) { in php_stream_parse_fopen_modes()
769 switch (range->mode) { in php_stdiop_set_option()
821 switch (range->mode) { in php_stdiop_set_option()
1380 return php_mkdir(dir, mode) == 0; in php_plain_files_mkdir()
1500 mode_t mode; in php_plain_files_metadata() local
[all …]
H A Dmmap.c21 …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
27 range.mode = mode; in _php_stream_mmap_range()
/PHP-8.2/ext/standard/tests/streams/
H A Dstream_get_meta_data_process_basic.phpt8 $mode = 'rb';
9 $handle = popen($cmd, $mode);
29 ["mode"]=>
H A Dbug75031.phpt2 Bug #75031: Append mode in php://temp and php://memory
6 function test_75031($type, $mode) {
7 $fp = fopen($type, $mode);
/PHP-8.2/ext/phar/tests/
H A Dbug77022.phpt2 Phar: Bug #77022: PharData always creates new files with mode 0666
15 var_dump(decoct(stat($sFile)['mode']));
23 var_dump(decoct(stat(__DIR__ . '/test-file-phar')['mode']));
24 var_dump(decoct(stat(__DIR__ . '/test-from-string')['mode']));
/PHP-8.2/ext/phar/
H A Ddirstream.h21 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, …

Completed in 42 milliseconds

12345678910>>...32