Home
last modified time | relevance | path

Searched refs:mode (Results 76 – 100 of 776) sorted by relevance

12345678910>>...32

/PHP-7.2/ext/spl/internal/
H A Dregexiterator.inc32 private $mode; /**< operation mode (one of self::MATCH,
46 * @param mode operation mode (one of self::MATCH, self::GET_MATCH,
52 function __construct(Iterator $it, $regex, $mode = 0, $flags = 0, $preg_flags = 0) {
56 $this->mode = $mode;
61 * Match current or key against regular expression using mode, flags and
75 switch($this->mode)
120 /** @return current operation mode
124 return $this->mode;
127 /** @param mode new operaion mode
129 function setMode($mode)
[all …]
/PHP-7.2/ext/standard/tests/file/
H A Dftruncate_variation3-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_variation3.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_variation5-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_variation5.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 Dfopen_variation5.phpt45 foreach($modes as $mode) {
46 test_fopen($mode);
61 function test_fopen($mode) {
69 echo "\n** testing with mode=$mode **\n";
71 $h = fopen($filename, $mode, true);
82 $h = fopen($filename, $mode, true);
93 $h = fopen($filename, $mode, true);
102 $h = fopen($filename, $mode, true);
129 ** testing with mode=r **
136 ** testing with mode=r+ **
[all …]
H A Dfopen_variation8.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 …]
H A Dfgetc_variation3.phpt23 echo "-- File opened in mode : $file_mode --\n";
53 *** Testing fgetc() with file opened in write only mode ***
54 -- File opened in mode : w --
61 -- File opened in mode : wb --
68 -- File opened in mode : wt --
75 -- File opened in mode : a --
82 -- File opened in mode : ab --
89 -- File opened in mode : at --
96 -- File opened in mode : x --
103 -- File opened in mode : xb --
[all …]
H A Dfgets_variation1.phpt22 echo "-- File opened in mode : $file_mode --\n";
52 *** Testing fgets() with file opened in write only mode ***
53 -- File opened in mode : w --
60 -- File opened in mode : wb --
67 -- File opened in mode : wt --
74 -- File opened in mode : a --
81 -- File opened in mode : ab --
88 -- File opened in mode : at --
95 -- File opened in mode : x --
102 -- File opened in mode : xb --
[all …]
H A Dfgetcsv_variation13.phpt38 // close the file if the mode to be used is read mode and re-open using read mode
62 } //end of mode loop
69 -- Testing fgetcsv() with file opened using r mode --
77 -- Testing fgetcsv() with file opened using rb mode --
85 -- Testing fgetcsv() with file opened using rt mode --
93 -- Testing fgetcsv() with file opened using r+ mode --
101 -- Testing fgetcsv() with file opened using r+b mode --
109 -- Testing fgetcsv() with file opened using r+t mode --
117 -- Testing fgetcsv() with file opened using a+ mode --
141 -- Testing fgetcsv() with file opened using w+ mode --
[all …]
H A Dfgetcsv_variation20.phpt40 // close the file if the mode to be used is read mode and re-open using read mode
65 } //end of mode loop
72 -- Testing fgetcsv() with file opened using r mode --
80 -- Testing fgetcsv() with file opened using rb mode --
88 -- Testing fgetcsv() with file opened using rt mode --
96 -- Testing fgetcsv() with file opened using r+ mode --
104 -- Testing fgetcsv() with file opened using r+b mode --
112 -- Testing fgetcsv() with file opened using r+t mode --
120 -- Testing fgetcsv() with file opened using a+ mode --
144 -- Testing fgetcsv() with file opened using w+ mode --
[all …]
H A Dfseek_ftell_rewind_variation5.phpt65 -- File opened in mode r --
82 -- File opened in mode rb --
99 -- File opened in mode rt --
116 -- File opened in mode r+ --
167 -- File opened in mode a --
184 -- File opened in mode ab --
201 -- File opened in mode at --
218 -- File opened in mode a+ --
270 -- File opened in mode r --
287 -- File opened in mode rb --
[all …]
H A Dfwrite_basic-win32-mb.phpt82 -- File opened in mode : w --
96 -- File opened in mode : wb --
110 -- File opened in mode : wt --
124 -- File opened in mode : w+ --
168 -- File opened in mode : w --
182 -- File opened in mode : wb --
196 -- File opened in mode : wt --
210 -- File opened in mode : w+ --
254 -- File opened in mode : w --
268 -- File opened in mode : wb --
[all …]
H A Dfwrite_basic-win32.phpt82 -- File opened in mode : w --
96 -- File opened in mode : wb --
110 -- File opened in mode : wt --
124 -- File opened in mode : w+ --
168 -- File opened in mode : w --
182 -- File opened in mode : wb --
196 -- File opened in mode : wt --
210 -- File opened in mode : w+ --
254 -- File opened in mode : w --
268 -- File opened in mode : wb --
[all …]
H A Dfwrite_basic.phpt82 -- File opened in mode : w --
96 -- File opened in mode : wb --
110 -- File opened in mode : wt --
124 -- File opened in mode : w+ --
168 -- File opened in mode : w --
182 -- File opened in mode : wb --
196 -- File opened in mode : wt --
210 -- File opened in mode : w+ --
254 -- File opened in mode : w --
268 -- File opened in mode : wb --
[all …]
H A D007_variation11-win32.phpt2 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 D007_variation19.phpt2 Test fopen and fclose() functions - usage variations - "wb" mode
7 Prototype: resource fopen(string $filename, string $mode
17 /* Test fopen() and fclose(): Opening the file in "wb" mode,
20 checking for the file truncation when trying to open an existing file in "wb" mode,
30 echo "*** Test fopen() & fclose() functions: with 'wb' mode ***\n";
31 $file_handle = fopen($file, "wb"); //opening the file "wb" mode
43 …; //Check for size of existing data file before opening the file in "wb" mode again, expected: si…
45 fclose( fopen($file, "wb") ); //Opening the existing data file again in "wb" mode
46 …); //Check for size of existing data file after opening the file in "wb" mode again, expected: 0 …
50 fclose( fopen($file, "wb") ); //Opening the non-existing file in "wb" mode, which will be created
[all …]
H A D007_variation3.phpt2 Test fopen and fclose() functions - usage variations - "w" mode
7 Prototype: resource fopen(string $filename, string $mode
17 /* Test fopen() and fclose(): Opening the file in "w" mode,
20 checking for the file truncation when trying to open an existing file in "w" mode,
30 echo "*** Test fopen() & fclose() functions: with 'w' mode ***\n";
31 $file_handle = fopen($file, "w"); //opening the file "w" mode
43 …); //Check for size of existing data file before opening the file in "w" mode again, expected: si…
45 fclose( fopen($file, "w") ); //Opening the existing data file again in "w" mode
46 … ); //Check for size of existing data file after opening the file in "w" mode again, expected: 0 …
50 fclose( fopen($file, "w") ); //Opening the non-existing file in "w" mode, which will be created
[all …]
H A D007_variation4.phpt2 Test fopen and fclose() functions - usage variations - "w+" mode
7 Prototype: resource fopen(string $filename, string $mode
17 /* Test fopen() and fclose(): Opening the file in "w+" mode,
20 checking for the file truncation when trying to open an existing file in "w+" mode,
30 echo "*** Test fopen() & fclose() functions: with 'w+' mode ***\n";
31 $file_handle = fopen($file, "w+"); //opening the file "w+" mode
43 …; //Check for size of existing data file before opening the file in "w+" mode again, expected: si…
45 fclose( fopen($file, "w+") ); //Opening the existing data file again in "w+" mode
46 …); //Check for size of existing data file after opening the file in "w+" mode again, expected: 0 …
50 fclose( fopen($file, "w+") ); //Opening the non-existing file in "w+" mode, which will be created
[all …]
/PHP-7.2/ext/phar/tests/
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']));
/PHP-7.2/main/streams/
H A Dmemory.c44 int mode; member
54 if (ms->mode & TEMP_STREAM_READONLY) { in php_stream_memory_write()
291 self->mode = mode; in _php_stream_memory_create()
309 if (mode == TEMP_STREAM_READONLY || mode == TEMP_STREAM_TAKE_BUFFER) { in _php_stream_memory_open()
345 int mode; member
562 self->mode = mode; in _php_stream_temp_create_ex()
598 ts->mode = mode; in _php_stream_temp_open()
735 vlen = strlen(mode); in php_stream_url_wrap_rfc2397()
739 memcpy(stream->mode, mode, vlen); in php_stream_url_wrap_rfc2397()
740 stream->mode[vlen] = '\0'; in php_stream_url_wrap_rfc2397()
[all …]
/PHP-7.2/ext/zlib/tests/
H A Dgzopen_basic2.phpt11 /* Prototype : resource gzopen(string filename, string mode [, int use_include_path])
25 foreach($modes as $mode) {
26 echo "testing mode -- $mode --\n";
27 $h = gzopen($filename, $mode);
46 testing mode -- w --
48 testing mode -- w+ --
/PHP-7.2/ext/standard/tests/array/
H A Dsizeof_object1.phpt13 /* Prototype : int sizeof($mixed var[, int $mode])
37 echo "-- Testing sizeof() in default mode --\n";
39 echo "-- Testing sizeof() in COUNT_NORMAL mode --\n";
41 echo "-- Testing sizeof() in COUNT_RECURSIVE mode --\n";
49 -- Testing sizeof() in default mode --
51 -- Testing sizeof() in COUNT_NORMAL mode --
53 -- Testing sizeof() in COUNT_RECURSIVE mode --
H A Dcount_variation3.phpt5 /* 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-7.2/main/
H A Dphp_streams.h64 …hp_stream_alloc_rel(ops, thisptr, persistent, mode) _php_stream_alloc((ops), (thisptr), (persisten… argument
68 #define php_stream_fopen_rel(filename, mode, opened, options) _php_stream_fopen((filename), (mode),… argument
72 #define php_stream_fopen_from_fd_rel(fd, mode, persistent_id) _php_stream_fopen_from_fd((fd), (mod… argument
73 #define php_stream_fopen_from_file_rel(file, mode) _php_stream_fopen_from_file((file), (mode) STRE… argument
75 #define php_stream_fopen_from_pipe_rel(file, mode) _php_stream_fopen_from_pipe((file), (mode) STRE… argument
81 #define php_stream_open_wrapper_rel(path, mode, options, opened) _php_stream_open_wrapper_ex((path)… argument
211 char mode[16]; /* "rwb" etc. ala stdio */ member
252 …p_stream_alloc(ops, thisptr, persistent_id, mode) _php_stream_alloc((ops), (thisptr), (persistent_… argument
355 #define php_stream_mkdir(path, mode, options, context) _php_stream_mkdir(path, mode, options, conte… argument
417 #define php_stream_lock(stream, mode) _php_stream_set_option((stream), PHP_STREAM_OPTION_LOCKING, … argument
[all …]

Completed in 58 milliseconds

12345678910>>...32