Home
last modified time | relevance | path

Searched refs:mode (Results 51 – 75 of 697) sorted by relevance

12345678910>>...28

/PHP-7.4/ext/standard/tests/file/
H A Dfgetcsv_variation27.phpt64 // 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 r mode --
103 -- Testing fgetcsv() with file opened using rb mode --
110 -- Testing fgetcsv() with file opened using rt mode --
117 -- Testing fgetcsv() with file opened using r+ mode --
138 -- Testing fgetcsv() with file opened using a+ mode --
159 -- Testing fgetcsv() with file opened using w+ mode --
180 -- Testing fgetcsv() with file opened using x+ mode --
201 -- Testing fgetcsv() with file opened using r mode --
[all …]
H A Dfgetcsv_variation28.phpt64 // 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 r mode --
103 -- Testing fgetcsv() with file opened using rb mode --
110 -- Testing fgetcsv() with file opened using rt mode --
117 -- Testing fgetcsv() with file opened using r+ mode --
138 -- Testing fgetcsv() with file opened using a+ mode --
159 -- Testing fgetcsv() with file opened using w+ mode --
180 -- Testing fgetcsv() with file opened using x+ mode --
201 -- Testing fgetcsv() with file opened using r mode --
[all …]
H A Dfgetcsv_variation3.phpt61 // 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 --
101 -- Testing fgetcsv() with file opened using rb mode --
108 -- Testing fgetcsv() with file opened using rt mode --
115 -- Testing fgetcsv() with file opened using r+ mode --
136 -- Testing fgetcsv() with file opened using a+ mode --
157 -- Testing fgetcsv() with file opened using w+ mode --
178 -- Testing fgetcsv() with file opened using x+ mode --
199 -- Testing fgetcsv() with file opened using r mode --
[all …]
H A Dfflush_variation4.phpt2 Test fflush() function: usage variations - file opened in read-only mode
9 /* test fflush() with handle to a file opened in read-only mode as resource */
21 foreach( $file_modes as $mode ) {
22 echo "-- Iteration $count with file opened in $mode mode --\n";
31 $file_handle = fopen($file_name, $mode);
45 -- Iteration 1 with file opened in r mode --
47 -- Iteration 2 with file opened in rb mode --
49 -- Iteration 3 with file opened in rt mode --
H A Dftruncate_variation1-win32-mb.phpt75 -- Testing ftruncate() with file opening using r mode --
83 -- Testing ftruncate() with file opening using rb mode --
91 -- Testing ftruncate() with file opening using rt mode --
99 -- Testing ftruncate() with file opening using r+ mode --
123 -- Testing ftruncate() with file opening using w mode --
131 -- Testing ftruncate() with file opening using wb mode --
139 -- Testing ftruncate() with file opening using wt mode --
147 -- Testing ftruncate() with file opening using w+ mode --
171 -- Testing ftruncate() with file opening using x mode --
219 -- Testing ftruncate() with file opening using a mode --
[all …]
H A Dftruncate_variation1-win32.phpt75 -- Testing ftruncate() with file opening using r mode --
83 -- Testing ftruncate() with file opening using rb mode --
91 -- Testing ftruncate() with file opening using rt mode --
99 -- Testing ftruncate() with file opening using r+ mode --
123 -- Testing ftruncate() with file opening using w mode --
131 -- Testing ftruncate() with file opening using wb mode --
139 -- Testing ftruncate() with file opening using wt mode --
147 -- Testing ftruncate() with file opening using w+ mode --
171 -- Testing ftruncate() with file opening using x mode --
219 -- Testing ftruncate() with file opening using a mode --
[all …]
H A Dftruncate_variation1.phpt75 -- Testing ftruncate() with file opening using r mode --
83 -- Testing ftruncate() with file opening using rb mode --
91 -- Testing ftruncate() with file opening using rt mode --
99 -- Testing ftruncate() with file opening using r+ mode --
123 -- Testing ftruncate() with file opening using w mode --
131 -- Testing ftruncate() with file opening using wb mode --
139 -- Testing ftruncate() with file opening using wt mode --
147 -- Testing ftruncate() with file opening using w+ mode --
171 -- Testing ftruncate() with file opening using x mode --
219 -- Testing ftruncate() with file opening using a mode --
[all …]
H A Dfgetcsv_variation6.phpt63 // close the file if the mode to be used is read mode and re-open using read mode
93 } //end of mode loop
101 -- Testing fgetcsv() with file opened using r mode --
117 -- Testing fgetcsv() with file opened using rb mode --
133 -- Testing fgetcsv() with file opened using rt mode --
149 -- Testing fgetcsv() with file opened using r+ mode --
197 -- Testing fgetcsv() with file opened using a+ mode --
245 -- Testing fgetcsv() with file opened using w+ mode --
293 -- Testing fgetcsv() with file opened using x+ mode --
341 -- Testing fgetcsv() with file opened using r mode --
[all …]
H A Dfgetcsv_variation17.phpt57 // 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 r mode --
112 -- Testing fgetcsv() with file opened using rb mode --
128 -- Testing fgetcsv() with file opened using rt mode --
144 -- Testing fgetcsv() with file opened using r+ mode --
192 -- Testing fgetcsv() with file opened using a+ mode --
240 -- Testing fgetcsv() with file opened using w+ mode --
288 -- Testing fgetcsv() with file opened using x+ mode --
336 -- Testing fgetcsv() with file opened using r mode --
[all …]
H A Dfgetcsv_variation19.phpt58 // close the file if the mode to be used is read mode and re-open using read mode
84 } //end of mode loop
92 -- Testing fgetcsv() with file opened using r mode --
102 -- Testing fgetcsv() with file opened using rb mode --
112 -- Testing fgetcsv() with file opened using rt mode --
122 -- Testing fgetcsv() with file opened using r+ mode --
152 -- Testing fgetcsv() with file opened using a+ mode --
182 -- Testing fgetcsv() with file opened using w+ mode --
212 -- Testing fgetcsv() with file opened using x+ mode --
242 -- Testing fgetcsv() with file opened using r mode --
[all …]
H A Dfgetcsv_variation26.phpt74 } //end of mode loop
82 -- Testing fgetcsv() with file opened using w mode --
89 -- Testing fgetcsv() with file opened using wb mode --
96 -- Testing fgetcsv() with file opened using wt mode --
103 -- Testing fgetcsv() with file opened using a mode --
110 -- Testing fgetcsv() with file opened using ab mode --
117 -- Testing fgetcsv() with file opened using at mode --
124 -- Testing fgetcsv() with file opened using x mode --
145 -- Testing fgetcsv() with file opened using w mode --
166 -- Testing fgetcsv() with file opened using a mode --
[all …]
H A Dftruncate_variation2.phpt76 -- Testing ftruncate() with file opening using r mode --
84 -- Testing ftruncate() with file opening using rb mode --
92 -- Testing ftruncate() with file opening using rt mode --
100 -- Testing ftruncate() with file opening using r+ mode --
124 -- Testing ftruncate() with file opening using w mode --
132 -- Testing ftruncate() with file opening using wb mode --
140 -- Testing ftruncate() with file opening using wt mode --
148 -- Testing ftruncate() with file opening using w+ mode --
172 -- Testing ftruncate() with file opening using x mode --
220 -- Testing ftruncate() with file opening using a mode --
[all …]
H A Dftruncate_variation2-win32.phpt76 -- Testing ftruncate() with file opening using r mode --
84 -- Testing ftruncate() with file opening using rb mode --
92 -- Testing ftruncate() with file opening using rt mode --
100 -- Testing ftruncate() with file opening using r+ mode --
124 -- Testing ftruncate() with file opening using w mode --
132 -- Testing ftruncate() with file opening using wb mode --
140 -- Testing ftruncate() with file opening using wt mode --
148 -- Testing ftruncate() with file opening using w+ mode --
172 -- Testing ftruncate() with file opening using x mode --
220 -- Testing ftruncate() with file opening using a mode --
[all …]
H A Dftruncate_variation7-win32.phpt77 -- Testing ftruncate() with file opening using r mode --
85 -- Testing ftruncate() with file opening using rb mode --
93 -- Testing ftruncate() with file opening using rt mode --
101 -- Testing ftruncate() with file opening using r+ mode --
125 -- Testing ftruncate() with file opening using w mode --
133 -- Testing ftruncate() with file opening using wb mode --
141 -- Testing ftruncate() with file opening using wt mode --
149 -- Testing ftruncate() with file opening using w+ mode --
173 -- Testing ftruncate() with file opening using x mode --
221 -- Testing ftruncate() with file opening using a mode --
[all …]
H A Dftruncate_variation7.phpt77 -- Testing ftruncate() with file opening using r mode --
85 -- Testing ftruncate() with file opening using rb mode --
93 -- Testing ftruncate() with file opening using rt mode --
101 -- Testing ftruncate() with file opening using r+ mode --
125 -- Testing ftruncate() with file opening using w mode --
133 -- Testing ftruncate() with file opening using wb mode --
141 -- Testing ftruncate() with file opening using wt mode --
149 -- Testing ftruncate() with file opening using w+ mode --
173 -- Testing ftruncate() with file opening using x mode --
221 -- Testing ftruncate() with file opening using a mode --
[all …]
H A Dfgetcsv_variation14.phpt38 // close the file if the mode to be used is read mode and re-open using read mode
68 } //end of mode loop
75 -- Testing fgetcsv() with file opened using r mode --
86 -- Testing fgetcsv() with file opened using rb mode --
97 -- Testing fgetcsv() with file opened using rt mode --
108 -- Testing fgetcsv() with file opened using r+ mode --
119 -- Testing fgetcsv() with file opened using r+b mode --
130 -- Testing fgetcsv() with file opened using r+t mode --
141 -- Testing fgetcsv() with file opened using a+ mode --
174 -- Testing fgetcsv() with file opened using w+ mode --
[all …]
H A Dfopen_variation5.phpt45 foreach($modes as $mode) {
46 test_fopen($mode);
60 function test_fopen($mode) {
68 echo "\n** testing with mode=$mode **\n";
70 $h = fopen($filename, $mode, true);
81 $h = fopen($filename, $mode, true);
92 $h = fopen($filename, $mode, true);
101 $h = fopen($filename, $mode, true);
128 ** testing with mode=r **
135 ** testing with mode=r+ **
[all …]
/PHP-7.4/ext/bz2/
H A Dphp_bz2.h51 …stream_bz2open(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_…
52 PHP_BZ2_API php_stream *_php_stream_bz2open_from_BZFILE(BZFILE *bz, const char *mode, php_stream *i…
54 #define php_stream_bz2open_from_BZFILE(bz, mode, innerstream) _php_stream_bz2open_from_BZFILE((bz),… argument
55 …efine php_stream_bz2open(wrapper, path, mode, options, opened_path) _php_stream_bz2open((wrapper),… argument
/PHP-7.4/ext/standard/tests/array/
H A Dsizeof_basic1.phpt23 echo "default mode: ";
26 echo "COUNT_NORMAL mode: ";
29 echo "COUNT_RECURSIVE mode: ";
34 echo "default mode: ";
37 echo "COUNT_NORMAL mode: ";
48 default mode:
52 COUNT_NORMAL mode:
56 COUNT_RECURSIVE mode:
61 default mode:
65 COUNT_NORMAL mode:
[all …]
/PHP-7.4/ext/zlib/tests/
H A Dgzopen_variation9.phpt11 /* Prototype : resource gzopen(string filename, string mode [, int use_include_path])
23 foreach ($modes as $mode) {
24 echo "mode=$mode\n";
25 $h = gzopen($file, $mode);
37 mode=r+
42 mode=rf
45 mode=w+
50 mode=e
/PHP-7.4/ext/standard/tests/streams/
H A Dstream_get_meta_data_file_variation1.phpt42 ["mode"]=>
62 ["mode"]=>
82 ["mode"]=>
102 ["mode"]=>
122 ["mode"]=>
142 ["mode"]=>
162 ["mode"]=>
182 ["mode"]=>
202 ["mode"]=>
222 ["mode"]=>
[all …]
/PHP-7.4/main/streams/
H A Dmemory.c42 int mode; member
278 if (strpbrk(mode, "a")) { in php_stream_mode_from_str()
310 self->mode = mode; in _php_stream_memory_create()
328 if (mode == TEMP_STREAM_READONLY || mode == TEMP_STREAM_TAKE_BUFFER) { in _php_stream_memory_open()
364 int mode; member
581 self->mode = mode; in _php_stream_temp_create_ex()
617 ts->mode = mode; in _php_stream_temp_open()
752 vlen = strlen(mode); in php_stream_url_wrap_rfc2397()
756 memcpy(stream->mode, mode, vlen); in php_stream_url_wrap_rfc2397()
757 stream->mode[vlen] = '\0'; in php_stream_url_wrap_rfc2397()
[all …]
/PHP-7.4/ext/dba/
H A Ddba_db4.c82 info->mode = DBA_TRUNC; /* force truncate */
85 type = info->mode == DBA_READER ? DB_UNKNOWN :
86 info->mode == DBA_TRUNC ? DB_BTREE :
90 (info->mode == DBA_CREAT && s) ? DB_CREATE :
91 (info->mode == DBA_CREAT && !s) ? 0 :
92 info->mode == DBA_WRITER ? 0 :
96 info->mode = DBA_CREAT; /* force creation */
100 (info->mode == DBA_TRUNC || info->mode == DBA_CREAT) ? DB_BTREE :
104 info->mode == DBA_CREAT ? DB_CREATE :
105 info->mode == DBA_WRITER ? 0 :
[all …]
/PHP-7.4/ext/phar/tests/
H A Dbug79082.phpt15 foreach([Phar::TAR => 'tar', Phar::ZIP => 'zip'] as $mode => $ext) {
17 $phar = new PharData(__DIR__ . '/test79082.' . $ext, null, null, $mode);
20 var_dump(decoct(stat(__DIR__ . '/test79082-testfile')['mode']));
21 var_dump(decoct(stat(__DIR__ . '/test79082-testfile2')['mode']));
25 foreach([Phar::TAR => 'tar', Phar::ZIP => 'zip'] as $mode => $ext) {
27 $phar = new PharData(__DIR__ . '/test79082-d.' . $ext, null, null, $mode);
30 var_dump(decoct(stat(__DIR__ . '/test79082-testfile')['mode']));
31 var_dump(decoct(stat(__DIR__ . '/test79082-testfile2')['mode']));
H A Dbug77022.phpt2 Phar: Bug #77022: PharData always creates new files with mode 0666
14 var_dump(decoct(stat($sFile)['mode']));
16 foreach([Phar::TAR => 'tar', Phar::ZIP => 'zip'] as $mode => $ext) {
18 $phar = new PharData(__DIR__ . '/test77022.' . $ext, null, null, $mode);
22 var_dump(decoct(stat(__DIR__ . '/test-file-phar')['mode']));
23 var_dump(decoct(stat(__DIR__ . '/test-from-string')['mode']));

Completed in 73 milliseconds

12345678910>>...28