Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 265) sorted by relevance

1234567891011

/PHP-7.3/ext/standard/tests/file/
H A Dfread_variation2.phpt114 Reading 1024 bytes from file, expecting 0 bytes ... OK
121 Reading 1000 bytes from file, expecting 0 bytes ... OK
129 Reading 1024 bytes from file, expecting 0 bytes ... OK
136 Reading 1000 bytes from file, expecting 0 bytes ... OK
144 Reading 1024 bytes from file, expecting 0 bytes ... OK
151 Reading 1000 bytes from file, expecting 0 bytes ... OK
159 Reading 1024 bytes from file, expecting 0 bytes ... OK
166 Reading 1000 bytes from file, expecting 0 bytes ... OK
174 Reading 1024 bytes from file, expecting 0 bytes ... OK
181 Reading 1000 bytes from file, expecting 0 bytes ... OK
[all …]
H A Dfread_variation3-win32-mb.phpt127 Reading 10 bytes from file, expecting 0 bytes ... OK
141 Reading 10 bytes from file, expecting 0 bytes ... OK
155 Reading 10 bytes from file, expecting 0 bytes ... OK
169 Reading 10 bytes from file, expecting 0 bytes ... OK
183 Reading 10 bytes from file, expecting 0 bytes ... OK
197 Reading 10 bytes from file, expecting 0 bytes ... OK
211 Reading 10 bytes from file, expecting 0 bytes ... OK
225 Reading 10 bytes from file, expecting 0 bytes ... OK
239 Reading 10 bytes from file, expecting 0 bytes ... OK
255 Reading 10 bytes from file, expecting 0 bytes ... OK
[all …]
H A Dfread_variation3-win32.phpt127 Reading 10 bytes from file, expecting 0 bytes ... OK
141 Reading 10 bytes from file, expecting 0 bytes ... OK
155 Reading 10 bytes from file, expecting 0 bytes ... OK
169 Reading 10 bytes from file, expecting 0 bytes ... OK
183 Reading 10 bytes from file, expecting 0 bytes ... OK
197 Reading 10 bytes from file, expecting 0 bytes ... OK
211 Reading 10 bytes from file, expecting 0 bytes ... OK
225 Reading 10 bytes from file, expecting 0 bytes ... OK
239 Reading 10 bytes from file, expecting 0 bytes ... OK
255 Reading 10 bytes from file, expecting 0 bytes ... OK
[all …]
H A Dfread_variation3.phpt127 Reading 10 bytes from file, expecting 0 bytes ... OK
141 Reading 10 bytes from file, expecting 0 bytes ... OK
155 Reading 10 bytes from file, expecting 0 bytes ... OK
169 Reading 10 bytes from file, expecting 0 bytes ... OK
183 Reading 10 bytes from file, expecting 0 bytes ... OK
197 Reading 10 bytes from file, expecting 0 bytes ... OK
211 Reading 10 bytes from file, expecting 0 bytes ... OK
225 Reading 10 bytes from file, expecting 0 bytes ... OK
239 Reading 10 bytes from file, expecting 0 bytes ... OK
255 Reading 10 bytes from file, expecting 0 bytes ... OK
[all …]
H A Dfread_variation4-win32.phpt118 Reading 1030 bytes from file, expecting 0 bytes ... OK
124 Reading 10 bytes from file, expecting 0 bytes ... OK
137 Reading 10 bytes from file, expecting 0 bytes ... OK
150 Reading 10 bytes from file, expecting 0 bytes ... OK
163 Reading 10 bytes from file, expecting 0 bytes ... OK
176 Reading 10 bytes from file, expecting 0 bytes ... OK
189 Reading 10 bytes from file, expecting 0 bytes ... OK
202 Reading 10 bytes from file, expecting 0 bytes ... OK
215 Reading 10 bytes from file, expecting 0 bytes ... OK
228 Reading 10 bytes from file, expecting 0 bytes ... OK
[all …]
H A Dfread_variation4.phpt118 Reading 1030 bytes from file, expecting 0 bytes ... OK
124 Reading 10 bytes from file, expecting 0 bytes ... OK
137 Reading 10 bytes from file, expecting 0 bytes ... OK
150 Reading 10 bytes from file, expecting 0 bytes ... OK
163 Reading 10 bytes from file, expecting 0 bytes ... OK
176 Reading 10 bytes from file, expecting 0 bytes ... OK
189 Reading 10 bytes from file, expecting 0 bytes ... OK
202 Reading 10 bytes from file, expecting 0 bytes ... OK
215 Reading 10 bytes from file, expecting 0 bytes ... OK
228 Reading 10 bytes from file, expecting 0 bytes ... OK
[all …]
H A Dfread_variation1.phpt115 Reading 1024 bytes from file, expecting 1024 bytes ... OK
122 Reading 1000 bytes from file, expecting 1000 bytes ... OK
130 Reading 1024 bytes from file, expecting 1024 bytes ... OK
137 Reading 1000 bytes from file, expecting 1000 bytes ... OK
145 Reading 1024 bytes from file, expecting 1024 bytes ... OK
152 Reading 1000 bytes from file, expecting 1000 bytes ... OK
160 Reading 1024 bytes from file, expecting 1024 bytes ... OK
167 Reading 1000 bytes from file, expecting 1000 bytes ... OK
175 Reading 1024 bytes from file, expecting 1024 bytes ... OK
182 Reading 1000 bytes from file, expecting 1000 bytes ... OK
[all …]
H A Dfread_basic.phpt109 Reading 1024 bytes from file, expecting 1024 bytes ... OK
116 Reading 1030 bytes from file, expecting 1024 bytes ... OK
123 Reading 1000 bytes from file, expecting 1000 bytes ... OK
131 Reading 1024 bytes from file, expecting 1024 bytes ... OK
138 Reading 1030 bytes from file, expecting 1024 bytes ... OK
145 Reading 1000 bytes from file, expecting 1000 bytes ... OK
153 Reading 1024 bytes from file, expecting 1024 bytes ... OK
160 Reading 1030 bytes from file, expecting 1024 bytes ... OK
167 Reading 1000 bytes from file, expecting 1000 bytes ... OK
175 Reading 1024 bytes from file, expecting 1024 bytes ... OK
[all …]
H A Dfilesize_variation4-win32.phpt12 Description : Returns the size of the file in bytes, or FALSE
34 var_dump( strlen($string) ); //strlen of the string = 191 bytes
37 var_dump( filesize($filename) ); //size of the file = 192 bytes != strlen of string
44 var_dump( filesize($filename) ); //204 bytes
51 var_dump( filesize($filename) ); //218 bytes
56 var_dump( ftruncate($file_handle, 220) ); //creating 4 bytes of hole
58 var_dump( filesize($filename) ); //220 bytes
63 fwrite($file_handle, "Hello\0"); //wrting 6 bytes of data
65 var_dump( filesize($filename) ); //226 bytes
70 var_dump( filesize($filename) ); //0 bytes
[all …]
H A Dfilesize_variation4.phpt12 Description : Returns the size of the file in bytes, or FALSE
36 var_dump( strlen($string) ); //strlen of the string = 191 bytes
39 var_dump( filesize($filename) ); //size of the file = strlen of string = 191 bytes
46 var_dump( filesize($filename) ); //203 bytes
53 var_dump( filesize($filename) ); //216 bytes
58 var_dump( ftruncate($file_handle, 220) ); //creating 4 bytes of hole
60 var_dump( filesize($filename) ); //220 bytes
65 fwrite($file_handle, "Hello\0"); //wrting 6 bytes of data
67 var_dump( filesize($filename) ); //226 bytes
72 var_dump( filesize($filename) ); //0 bytes
[all …]
H A Dfilesize_variation3-win32.phpt12 Description : Returns the size of the file in bytes, or FALSE
21 fwrite($file_handle, str_repeat("Hello,World ", 1000) ); // create file of size 12000 bytes
25 // truncate the file created earlier in subdir, the size of the file is 12000bytes
26 // truncate the same file, in the loop , each time with the decrement in size by 1200 bytes,
27 // until -1200bytes size
/PHP-7.3/ext/zlib/tests/
H A Dgztell_basic2.phpt18 echo "bytes written=".gzwrite($h, str_repeat('1', $size))."\n";
28 bytes written=7
30 bytes written=22
32 bytes written=54
34 bytes written=17
36 bytes written=27
38 bytes written=15
40 bytes written=1000
/PHP-7.3/sapi/phpdbg/
H A Dphpdbg_io.c62 if (bytes <= 0) { in ZEND_EXTERN_MODULE_GLOBALS()
68 if (i != len + bytes - 1) { in ZEND_EXTERN_MODULE_GLOBALS()
87 len += bytes; in ZEND_EXTERN_MODULE_GLOBALS()
90 if (bytes <= 0) { in ZEND_EXTERN_MODULE_GLOBALS()
95 return bytes; in ZEND_EXTERN_MODULE_GLOBALS()
194 int count = 0, bytes = 0; local
202 bytes += write(sock, ptr + bytes, (p - ptr) - bytes);
216 bytes += write(sock, ptr + bytes, len - bytes);
217 } else if (!bytes) {
218 bytes += write(sock, ptr, len);
[all …]
/PHP-7.3/ext/standard/tests/serialize/
H A Dinvalid_signs_in_lengths.phpt21 Notice: unserialize(): Error at offset 0 of 9 bytes in %s on line %d
24 Notice: unserialize(): Error at offset 0 of 9 bytes in %s on line %d
27 Notice: unserialize(): Error at offset 0 of 7 bytes in %s on line %d
30 Notice: unserialize(): Error at offset 0 of 7 bytes in %s on line %d
33 Notice: unserialize(): Error at offset 0 of 20 bytes in %s on line %d
36 Notice: unserialize(): Error at offset 0 of 20 bytes in %s on line %d
39 Notice: unserialize(): Error at offset 0 of 24 bytes in %s on line %d
42 Notice: unserialize(): Error at offset 0 of 24 bytes in %s on line %d
45 Notice: unserialize(): Error at offset 9 of 15 bytes in %s on line %d
48 Notice: unserialize(): Error at offset 9 of 15 bytes in %s on line %d
[all …]
H A Dbug25378.phpt21 Notice: unserialize(): Error at offset 0 of 8 bytes in %sbug25378.php on line %d
24 Notice: unserialize(): Error at offset 0 of 5 bytes in %sbug25378.php on line %d
27 Notice: unserialize(): Error at offset 13 of 19 bytes in %sbug25378.php on line %d
30 Notice: unserialize(): Error at offset 14 of 19 bytes in %sbug25378.php on line %d
33 Notice: unserialize(): Error at offset 2 of 22 bytes in %sbug25378.php on line %d
36 Notice: unserialize(): Error at offset 17 of 18 bytes in %sbug25378.php on line %d
39 Notice: unserialize(): Error at offset 24 of 33 bytes in %sbug25378.php on line %d
48 Notice: unserialize(): Error at offset 2 of 13 bytes in %sbug25378.php on line %d
51 Notice: unserialize(): Error at offset 2 of 11 bytes in %sbug25378.php on line %d
54 Notice: unserialize(): Error at offset 8 of 9 bytes in %sbug25378.php on line %d
[all …]
/PHP-7.3/ext/pcre/pcre2lib/
H A Dpcre2_serialize.c76 uint8_t *bytes; in pcre2_serialize_encode() local
110 if (bytes == NULL) return PCRE2_ERROR_NOMEMORY; in pcre2_serialize_encode()
113 memcpy(bytes, memctl, sizeof(pcre2_memctl)); in pcre2_serialize_encode()
114 bytes += sizeof(pcre2_memctl); in pcre2_serialize_encode()
116 data = (pcre2_serialized_data *)bytes; in pcre2_serialize_encode()
123 dst_bytes = bytes + sizeof(pcre2_serialized_data); in pcre2_serialize_encode()
152 *serialized_bytes = bytes; in pcre2_serialize_encode()
164 const uint8_t *bytes, pcre2_general_context *gcontext) in pcre2_serialize_decode() argument
187 src_bytes = bytes + sizeof(pcre2_serialized_data); in pcre2_serialize_decode()
277 pcre2_serialize_free(uint8_t *bytes) in pcre2_serialize_free() argument
[all …]
/PHP-7.3/ext/oci8/tests/
H A Dlob_030.phpt42 echo "Test 1: A CLOB with an even number of bytes\n";
45 echo "Test 2: A CLOB with an odd number of bytes\n";
51 echo "Test 4: A CLOB of 1049028 bytes (the value used for chunks in the code)\n";
54 echo "Test 5: A CLOB of 1049028-1 bytes\n";
57 echo "Test 6: A CLOB of 1049028+1 bytes\n";
66 Test 1: A CLOB with an even number of bytes
68 Test 2: A CLOB with an odd number of bytes
70 Test 3: A CLOB of 1048576 bytes (== size of PHP_OCI_LOB_BUFFER_SIZE at time of test creation)
72 Test 4: A CLOB of 1049028 bytes (the value used for chunks in the code)
74 Test 5: A CLOB of 1049028-1 bytes
[all …]
H A Dbug70700.phpt52 fwrite($fh, $data, strlen($data)); // fwrite(a, b, $bytes)
83 fwrite($fh, $data, strlen($data)); // fwrite(a, b, $bytes)
114 fwrite($fh, $data, strlen($data)); // fwrite(a, b, $bytes)
159 size of string1 is 1000006 bytes, 1000006 chars.
160 size of stream1a is 1000006 bytes, 1000006 chars.
165 size of string2 is 8194 bytes, 4100 chars.
166 size of stream2a is 8194 bytes, 4100 chars.
171 size of string3 is 8194 bytes, 4100 chars.
172 size of stream3a is 8194 bytes, 4100 chars.
177 size of string4 is 8193 bytes, 2735 chars.
[all …]
/PHP-7.3/ext/standard/
H A Drandom.c89 if (php_win32_get_random_bytes(bytes, size) == FAILURE) { in php_random_bytes()
96 arc4random_buf(bytes, size); in php_random_bytes()
115 n = syscall(SYS_getrandom, bytes + read_bytes, amount_to_read, 0); in php_random_bytes()
117 n = getrandom(bytes + read_bytes, amount_to_read, 0); in php_random_bytes()
171 n = read(fd, bytes + read_bytes, size - read_bytes); in php_random_bytes()
195 zend_string *bytes; in PHP_FUNCTION() local
206 bytes = zend_string_alloc(size, 0); in PHP_FUNCTION()
208 if (php_random_bytes_throw(ZSTR_VAL(bytes), size) == FAILURE) { in PHP_FUNCTION()
209 zend_string_release_ex(bytes, 0); in PHP_FUNCTION()
213 ZSTR_VAL(bytes)[size] = '\0'; in PHP_FUNCTION() local
[all …]
/PHP-7.3/ext/pdo_oci/tests/
H A Dbug60994.phpt32 $insert->bindParam(':data', $string1, \PDO::PARAM_STR, strlen($string1)); // length in bytes
49 $insert->bindParam(':data', $string2, \PDO::PARAM_STR, strlen($string2)); // length in bytes
66 $insert->bindParam(':data', $string3, \PDO::PARAM_STR, strlen($string3)); // length in bytes
99 size of string1 is 1000006 bytes, 1000006 chars.
100 size of stream1 is 1000006 bytes, 1000006 chars.
105 size of string2 is 16380 bytes, 8193 chars.
106 size of stream2 is 16380 bytes, 8193 chars.
111 size of string3 is 16380 bytes, 8193 chars.
112 size of stream3 is 16380 bytes, 8193 chars.
117 size of string4 is 24567 bytes, 8193 chars.
[all …]
/PHP-7.3/ext/spl/tests/
H A DSplObjectStorage_unserialize_invalid_parameter2.phpt29 Error at offset %d of %d bytes
30 Error at offset %d of %d bytes
31 Error at offset %d of %d bytes
32 Error at offset %d of %d bytes
33 Error at offset %d of %d bytes
/PHP-7.3/ext/openssl/tests/
H A Dbug71917.phpt2 Bug #71917: openssl_open() returns junk on envelope < 16 bytes
22 // works - key of 16 bytes
24 // fails - key of 15 bytes
/PHP-7.3/ext/dom/tests/
H A DDOMDocument_save_basic.phpt24 echo 'Wrote: ' . $doc->save($temp_filename) . ' bytes'; // Wrote: 72 bytes
32 Wrote: 72 bytes
/PHP-7.3/ext/standard/tests/general_functions/
H A Descapeshellcmd_bug71039.phpt2 Test escapeshellcmd() string with \0 bytes
10 Fatal error: escapeshellcmd(): Input string contains NULL bytes in %s on line %d
H A Descapeshellarg_bug71039.phpt2 Test escapeshellarg() string with \0 bytes
10 Fatal error: escapeshellarg(): Input string contains NULL bytes in %s on line %d

Completed in 39 milliseconds

1234567891011