/PHP-8.2/ext/zlib/tests/ |
H A D | gzopen_variation4.phpt | 16 foreach($modes as $mode) { 17 test_gzopen($mode); 30 function test_gzopen($mode) { 38 echo "\n** testing with mode=$mode **\n"; 40 $h = gzopen($filename, $mode, true); 53 $h = gzopen($filename, $mode, true); 66 $h = gzopen($filename, $mode, true); 77 $h = gzopen($filename, $mode, true); 108 ** testing with mode=r ** 115 ** testing with mode=r+ ** [all …]
|
H A D | inflate_add_basic.phpt | 7 function inflateStream($mode, $flushSize) { 10 $resource = inflate_init($mode); 47 foreach ($modes as $modeKey => $mode) { 48 $compressed = zlib_encode($uncompressed, $mode); 53 $stream = inflateStream($mode, $flushSize, $flushType);
|
/PHP-8.2/ext/ftp/ |
H A D | php_ftp.c | 140 if (mode != FTPTYPE_ASCII && mode != FTPTYPE_IMAGE) { \ 144 xtype = mode; \ 423 zend_long mode; in PHP_FUNCTION() local 437 RETURN_LONG(mode); in PHP_FUNCTION() 593 XTYPE(xtype, mode); in PHP_FUNCTION() 637 XTYPE(xtype, mode); in PHP_FUNCTION() 704 XTYPE(xtype, mode); in PHP_FUNCTION() 768 XTYPE(xtype, mode); in PHP_FUNCTION() 875 XTYPE(xtype, mode); in PHP_FUNCTION() 923 XTYPE(xtype, mode); in PHP_FUNCTION() [all …]
|
/PHP-8.2/ext/standard/tests/http/ |
H A D | bug43510.phpt | 2 Bug #43510 (stream_get_meta_data() does not return same mode as used in fopen) 18 foreach(array('r', 'rb') as $mode) { 19 $fd = fopen($uri, $mode, false); 21 var_dump($meta['mode']);
|
/PHP-8.2/main/streams/ |
H A D | php_stream_mmap.h | 50 php_stream_mmap_access_t mode; member 68 …hp_stream *stream, size_t offset, size_t length, php_stream_mmap_access_t mode, size_t *mapped_len… 69 …am_mmap_range(stream, offset, length, mode, mapped_len) _php_stream_mmap_range((stream), (offset),… argument
|
/PHP-8.2/ext/opcache/tests/jit/ |
H A D | assign_033.phpt | 16 $mode = 0; 18 while ($mode == 0) { 19 $working = $mode = 1;
|
/PHP-8.2/ext/standard/tests/file/ |
H A D | 007_variation11-win32-mb.phpt | 2 Test fopen and fclose() functions - usage variations - "wt" mode 11 /* Test fopen() and fclose(): Opening the file in "wt" mode, 14 checking for the file truncation when trying to open an existing file in "wt" mode, 24 echo "*** Test fopen() & fclose() functions: with 'wt' mode ***\n"; 25 $file_handle = fopen($file, "wt"); //opening the file "wt" mode 37 …; //Check for size of existing data file before opening the file in "wt" mode again, expected: si… 39 fclose( fopen($file, "wt") ); //Opening the existing data file again in "wt" mode 40 …); //Check for size of existing data file after opening the file in "wt" mode again, expected: 0 … 44 fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created 54 *** Test fopen() & fclose() functions: with 'wt' mode ***
|
H A D | 007_variation12-win32.phpt | 2 Test fopen and fclose() functions - usage variations - "w+t" mode 11 /* Test fopen() and fclose(): Opening the file in "w+t" mode, 14 checking for the file truncation when trying to open an existing file in "w+t" mode, 24 echo "*** Test fopen() & fclose() functions: with 'w+t' mode ***\n"; 25 $file_handle = fopen($file, "w+t"); //opening the file "w+t" mode 37 … //Check for size of existing data file before opening the file in "w+t" mode again, expected: si… 39 fclose( fopen($file, "w+t") ); //Opening the existing data file again in "w+t" mode 40 …; //Check for size of existing data file after opening the file in "w+t" mode again, expected: 0 … 44 fclose( fopen($file, "w+t") ); //Opening the non-existing file in "w+t" mode, which will be created 52 *** Test fopen() & fclose() functions: with 'w+t' mode ***
|
H A D | 007_variation12.phpt | 2 Test fopen and fclose() functions - usage variations - "w+t" mode 11 /* Test fopen() and fclose(): Opening the file in "w+t" mode, 14 checking for the file truncation when trying to open an existing file in "w+t" mode, 24 echo "*** Test fopen() & fclose() functions: with 'w+t' mode ***\n"; 25 $file_handle = fopen($file, "w+t"); //opening the file "w+t" mode 37 … //Check for size of existing data file before opening the file in "w+t" mode again, expected: si… 39 fclose( fopen($file, "w+t") ); //Opening the existing data file again in "w+t" mode 40 …; //Check for size of existing data file after opening the file in "w+t" mode again, expected: 0 … 44 fclose( fopen($file, "w+t") ); //Opening the non-existing file in "w+t" mode, which will be created 52 *** Test fopen() & fclose() functions: with 'w+t' mode ***
|
H A D | 007_variation11-win32.phpt | 2 Test fopen and fclose() functions - usage variations - "wt" mode 11 /* Test fopen() and fclose(): Opening the file in "wt" mode, 14 checking for the file truncation when trying to open an existing file in "wt" mode, 24 echo "*** Test fopen() & fclose() functions: with 'wt' mode ***\n"; 25 $file_handle = fopen($file, "wt"); //opening the file "wt" mode 37 …; //Check for size of existing data file before opening the file in "wt" mode again, expected: si… 39 fclose( fopen($file, "wt") ); //Opening the existing data file again in "wt" mode 40 …); //Check for size of existing data file after opening the file in "wt" mode again, expected: 0 … 44 fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created 52 *** Test fopen() & fclose() functions: with 'wt' mode ***
|
H A D | 007_variation11.phpt | 2 Test fopen and fclose() functions - usage variations - "wt" mode 11 /* Test fopen() and fclose(): Opening the file in "wt" mode, 14 checking for the file truncation when trying to open an existing file in "wt" mode, 24 echo "*** Test fopen() & fclose() functions: with 'wt' mode ***\n"; 25 $file_handle = fopen($file, "wt"); //opening the file "wt" mode 37 …; //Check for size of existing data file before opening the file in "wt" mode again, expected: si… 39 fclose( fopen($file, "wt") ); //Opening the existing data file again in "wt" mode 40 …); //Check for size of existing data file after opening the file in "wt" mode again, expected: 0 … 44 fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created 52 *** Test fopen() & fclose() functions: with 'wt' mode ***
|
H A D | 007_variation19.phpt | 2 Test fopen and fclose() functions - usage variations - "wb" mode 6 /* Test fopen() and fclose(): Opening the file in "wb" mode, 9 checking for the file truncation when trying to open an existing file in "wb" mode, 19 echo "*** Test fopen() & fclose() functions: with 'wb' mode ***\n"; 20 $file_handle = fopen($file, "wb"); //opening the file "wb" mode 32 …; //Check for size of existing data file before opening the file in "wb" mode again, expected: si… 34 fclose( fopen($file, "wb") ); //Opening the existing data file again in "wb" mode 35 …); //Check for size of existing data file after opening the file in "wb" mode again, expected: 0 … 39 fclose( fopen($file, "wb") ); //Opening the non-existing file in "wb" mode, which will be created 47 *** Test fopen() & fclose() functions: with 'wb' mode ***
|
H A D | 007_variation20.phpt | 2 Test fopen and fclose() functions - usage variations - "w+b" mode 6 /* Test fopen() and fclose(): Opening the file in "w+b" mode, 9 checking for the file truncation when trying to open an existing file in "w+b" mode, 19 echo "*** Test fopen() & fclose() functions: with 'w+b' mode ***\n"; 20 $file_handle = fopen($file, "w+b"); //opening the file "w+b" mode 32 … //Check for size of existing data file before opening the file in "w+b" mode again, expected: si… 34 fclose( fopen($file, "w+b") ); //Opening the existing data file again in "w+b" mode 35 …; //Check for size of existing data file after opening the file in "w+b" mode again, expected: 0 … 39 fclose( fopen($file, "w+b") ); //Opening the non-existing file in "w+b" mode, which will be created 47 *** Test fopen() & fclose() functions: with 'w+b' mode ***
|
H A D | 007_variation3.phpt | 2 Test fopen and fclose() functions - usage variations - "w" mode 6 /* Test fopen() and fclose(): Opening the file in "w" mode, 9 checking for the file truncation when trying to open an existing file in "w" mode, 19 echo "*** Test fopen() & fclose() functions: with 'w' mode ***\n"; 20 $file_handle = fopen($file, "w"); //opening the file "w" mode 32 …); //Check for size of existing data file before opening the file in "w" mode again, expected: si… 34 fclose( fopen($file, "w") ); //Opening the existing data file again in "w" mode 35 … ); //Check for size of existing data file after opening the file in "w" mode again, expected: 0 … 39 fclose( fopen($file, "w") ); //Opening the non-existing file in "w" mode, which will be created 47 *** Test fopen() & fclose() functions: with 'w' mode ***
|
H A D | 007_basic.phpt | 99 -- Iteration with mode 'w' -- 108 -- Iteration with mode 'wb' -- 117 -- Iteration with mode 'wt' -- 126 -- Iteration with mode 'w+' -- 135 -- Iteration with mode 'w+b' -- 153 -- Iteration with mode 'r' -- 162 -- Iteration with mode 'rb' -- 171 -- Iteration with mode 'rt' -- 180 -- Iteration with mode 'r+' -- 207 -- Iteration with mode 'a' -- [all …]
|
H A D | fgetc_variation3.phpt | 22 echo "-- File opened in mode : $file_mode --\n"; 52 *** Testing fgetc() with file opened in write only mode *** 53 -- File opened in mode : w -- 62 -- File opened in mode : wb -- 71 -- File opened in mode : wt -- 80 -- File opened in mode : a -- 89 -- File opened in mode : ab -- 98 -- File opened in mode : at -- 107 -- File opened in mode : x -- 116 -- File opened in mode : xb -- [all …]
|
H A D | fgets_variation1.phpt | 18 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 D | fseek_ftell_rewind_basic1.phpt | 57 -- 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 D | fseek_ftell_rewind_basic2-win32-mb.phpt | 67 -- 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 D | fseek_ftell_rewind_basic2-win32.phpt | 67 -- 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 D | fseek_ftell_rewind_basic2.phpt | 67 -- 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 …]
|
/PHP-8.2/ext/dba/tests/ |
H A D | value_errors_open.phpt | 124 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 D | count_variation3.phpt | 16 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 D | strict_nested.phpt | 18 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 D | dba_db2.c | 47 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()
|