Home
last modified time | relevance | path

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

12345678910>>...32

/PHP-5.6/ext/standard/tests/file/
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);
130 ** testing with mode=r **
137 ** 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);
129 ** testing with mode=r **
136 ** 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.phpt39 // close the file if the mode to be used is read mode and re-open using read mode
63 } //end of mode loop
70 -- Testing fgetcsv() with file opened using r mode --
78 -- Testing fgetcsv() with file opened using rb mode --
86 -- Testing fgetcsv() with file opened using rt mode --
94 -- Testing fgetcsv() with file opened using r+ mode --
102 -- Testing fgetcsv() with file opened using r+b mode --
110 -- Testing fgetcsv() with file opened using r+t mode --
118 -- Testing fgetcsv() with file opened using a+ mode --
142 -- 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.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 …]
H A Dfseek_ftell_rewind_variation4.phpt73 -- File opened in mode w --
90 -- File opened in mode wb --
107 -- File opened in mode wt --
124 -- File opened in mode w+ --
175 -- File opened in mode x --
192 -- File opened in mode xb --
209 -- File opened in mode xt --
226 -- File opened in mode x+ --
279 -- File opened in mode w --
296 -- File opened in mode wb --
[all …]
H A Dfseek_ftell_rewind_variation6.phpt73 -- File opened in mode w --
90 -- File opened in mode wb --
107 -- File opened in mode wt --
124 -- File opened in mode w+ --
175 -- File opened in mode x --
192 -- File opened in mode xb --
209 -- File opened in mode xt --
226 -- File opened in mode x+ --
279 -- File opened in mode w --
296 -- File opened in mode wb --
[all …]
/PHP-5.6/TSRM/
H A Dtsrm_nw.c63 int mode = O_RDONLY; local
66 NXMode_t mode = NX_O_RDONLY; local
84 mode = O_RDONLY;
86 mode = NX_O_RDONLY;
90 mode = O_WRONLY;
92 mode = NX_O_WRONLY;
98 pipe_handle = pipe_open(filePath, mode);
102 pipe_handle = mkfifo(filePath, mode);
109 err = NXFifoOpen(0, filePath, mode, 0, &pipe_handle);
182 if (mode == O_RDONLY) {
[all …]
/PHP-5.6/main/streams/
H A Dmemory.c44 int mode; member
54 if (ms->mode & TEMP_STREAM_READONLY) { in php_stream_memory_write()
303 self->mode = mode; in _php_stream_memory_create()
321 if (mode == TEMP_STREAM_READONLY || mode == TEMP_STREAM_TAKE_BUFFER) { in _php_stream_memory_open()
357 int mode; member
571 self->mode = mode; in _php_stream_temp_create_ex()
606 ts->mode = mode; in _php_stream_temp_open()
740 vlen = strlen(mode); in php_stream_url_wrap_rfc2397()
744 memcpy(stream->mode, mode, vlen); in php_stream_url_wrap_rfc2397()
745 stream->mode[vlen] = '\0'; in php_stream_url_wrap_rfc2397()
[all …]
/PHP-5.6/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-5.6/ext/mcrypt/tests/
H A Dmcrypt_decrypt_variation5.phpt11 /* Prototype : string mcrypt_decrypt(string cipher, string key, string data, string mode, string i…
32 $mode = MCRYPT_MODE_CBC;
116 var_dump(bin2hex(mcrypt_decrypt($cipher, $key, $data, $mode, $value)));
127 … Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d)
131 … Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d)
135 … Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d)
139 … Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d)
143 … Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d)
147 … Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d)
151 … Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d)
[all …]
H A Dmcrypt_encrypt_variation5.phpt11 /* Prototype : string mcrypt_encrypt(string cipher, string key, string data, string mode, string i…
32 //in php, it incorrectly reports problems with iv in ECB mode.
33 $mode = MCRYPT_MODE_CBC;
117 var_dump( bin2hex(mcrypt_encrypt($cipher, $key, $data, $mode, $value)));
128 … Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d)
132 … Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d)
136 … Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d)
140 … Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d)
144 … Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d)
148 … Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d)
[all …]
H A Dmcrypt_decrypt.phpt9 $mode = MCRYPT_MODE_CBC;
12 $iv = mcrypt_create_iv(mcrypt_get_iv_size($cipher, $mode), MCRYPT_RAND);
13 $enc_data = mcrypt_encrypt($cipher, $key, $secret, $mode, $iv);
16 echo trim(mcrypt_decrypt($cipher, $key, $enc_data, $mode, $iv)) . "\n";
25 Warning: mcrypt_decrypt(): Encryption mode requires an initialization vector of size 16 in %s on li…
28 … initialization vector of size 16, but size 8 is required for this encryption mode in %s on line %d
/PHP-5.6/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-5.6/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 --
/PHP-5.6/ext/standard/tests/strings/
H A Dcount_chars_variation2.phpt2 Test count_chars() function : usage variations - test values for $mode argument
6 /* Prototype : mixed count_chars ( string $string [, int $mode ] )
69 // with unexepcted values for the 'mode' argument
83 *** Testing count_chars() function: with unexpected inputs for 'mode' argument ***
90 Warning: count_chars(): Unknown mode in %s on line %d
94 Warning: count_chars(): Unknown mode in %s on line %d
98 Warning: count_chars(): Unknown mode in %s on line %d
106 Warning: count_chars(): Unknown mode in %s on line %d
110 Warning: count_chars(): Unknown mode in %s on line %d
114 Warning: count_chars(): Unknown mode in %s on line %d
[all …]
/PHP-5.6/main/
H A Dphp_streams.h62 …hp_stream_alloc_rel(ops, thisptr, persistent, mode) _php_stream_alloc((ops), (thisptr), (persisten… argument
66 #define php_stream_fopen_rel(filename, mode, opened, options) _php_stream_fopen((filename), (mode),… argument
70 #define php_stream_fopen_from_fd_rel(fd, mode, persistent_id) _php_stream_fopen_from_fd((fd), (mod… argument
71 #define php_stream_fopen_from_file_rel(file, mode) _php_stream_fopen_from_file((file), (mode) STRE… argument
73 #define php_stream_fopen_from_pipe_rel(file, mode) _php_stream_fopen_from_pipe((file), (mode) STRE… argument
79 #define php_stream_open_wrapper_rel(path, mode, options, opened) _php_stream_open_wrapper_ex((path)… argument
198 char mode[16]; /* "rwb" etc. ala stdio */ member
243 …p_stream_alloc(ops, thisptr, persistent_id, mode) _php_stream_alloc((ops), (thisptr), (persistent_… argument
342 #define php_stream_mkdir(path, mode, options, context) _php_stream_mkdir(path, mode, options, conte… argument
404 #define php_stream_lock(stream, mode) _php_stream_set_option((stream), PHP_STREAM_OPTION_LOCKING, … argument
[all …]

Completed in 33 milliseconds

12345678910>>...32