Home
last modified time | relevance | path

Searched refs:len (Results 51 – 75 of 463) sorted by relevance

12345678910>>...19

/PHP-8.1/Zend/
H A Dzend_stream.c28 static ssize_t zend_stream_stdio_reader(void *handle, char *buf, size_t len) /* {{{ */ in zend_stream_stdio_reader() argument
30 return fread(buf, 1, len, (FILE*)handle); in zend_stream_stdio_reader()
109 static ssize_t zend_stream_read(zend_file_handle *file_handle, char *buf, size_t len) /* {{{ */ in zend_stream_read() argument
115 for (n = 0; n < len && (c = zend_stream_getc(file_handle)) != EOF && c != '\n'; ++n) { in zend_stream_read()
124 return file_handle->handle.stream.reader(file_handle->handle.stream.handle, buf, len); in zend_stream_read()
133 *len = file_handle->len; in zend_stream_fixup()
173 file_handle->len = size; in zend_stream_fixup()
193 file_handle->len = size; in zend_stream_fixup()
200 if (file_handle->len == 0) { in zend_stream_fixup()
205 memset(file_handle->buf + file_handle->len, 0, ZEND_MMAP_AHEAD); in zend_stream_fixup()
[all …]
/PHP-8.1/main/
H A Dsnprintf.h72 PHPAPI int ap_php_slprintf(char *buf, size_t len, const char *format,...) ZEND_ATTRIBUTE_FORMAT(pri…
73 PHPAPI int ap_php_vslprintf(char *buf, size_t len, const char *format, va_list ap);
80 bool add_dp, int precision, char dec_point, bool * is_negative, char *buf, size_t *len);
131 bool * is_negative, char *buf_end, size_t *len);
134 char format, char *buf_end, size_t *len);
H A Dsnprintf.c251 *len = buf_end - p; in ap_php_conv_10()
290 *len = strlen(p); in php_conv_fp()
291 memcpy(buf, p, *len + 1); in php_conv_fp()
358 *len = s - buf; in php_conv_fp()
388 *len = buf_end - p; in ap_php_conv_p2()
1081 if (len == 0) { in strx_printv()
1085 od.buf_end = &buf[len-1]; in strx_printv()
1108 if (cc >= len) { in ap_php_slprintf()
1109 cc = len -1; in ap_php_slprintf()
1119 if (cc >= len) { in ap_php_vslprintf()
[all …]
H A Dfastcgi.c995 int pad = ((len + 7) & ~7) - len;
1088 if (safe_read(req, buf, len+padding) != len+padding) {
1133 if (safe_read(req, buf, len+padding) != len+padding) {
1157 if (safe_read(req, buf, len+padding) != len+padding) {
1220 rest = len;
1510 int len; local
1528 if (safe_write(req, req->out_buf, len) != len) {
1551 rest = len;
1567 return len;
1627 pad = (((len - pos) + 7) & ~7) - (len - pos);
[all …]
/PHP-8.1/ext/sodium/tests/
H A Dcrypto_stream_xchacha20.phpt12 $len = 100;
13 $stream = sodium_crypto_stream_xchacha20($len, $nonce, $key);
16 $stream2 = sodium_crypto_stream_xchacha20($len, $nonce, $key);
19 $stream3 = sodium_crypto_stream_xchacha20($len, $nonce, $key);
22 $stream4 = sodium_crypto_stream_xchacha20($len, $nonce, $key);
43 sodium_crypto_stream_xchacha20($len, substr($nonce, 1), $key);
48 sodium_crypto_stream_xchacha20($len, $nonce, substr($key, 1));
/PHP-8.1/ext/standard/tests/file/
H A Dfread_error.phpt11 $len = 0;
13 var_dump( fread($file_handle, $len) );
18 $len = -10;
20 var_dump( fread($file_handle, $len) );
/PHP-8.1/ext/standard/tests/strings/
H A Dstrncasecmp_variation3.phpt13 for($len = strlen($str1); $len >= 0; $len--) {
14 var_dump( strncasecmp($str1, $str2, $len) );
H A Dstrncmp_variation3.phpt13 for($len = strlen($str1); $len >= 0; $len--) {
14 var_dump( strncmp($str1, $str2, $len) );
/PHP-8.1/sapi/cli/
H A Dphp_cli.c330 size_t len; in sapi_cli_register_variables() local
339 len = strlen(php_self); in sapi_cli_register_variables()
340 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, len, &len)) { in sapi_cli_register_variables()
343 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &php_self, len, &len)) { in sapi_cli_register_variables()
347 len = strlen(script_filename); in sapi_cli_register_variables()
355 len = 0U; in sapi_cli_register_variables()
356 if (sapi_module.input_filter(PARSE_SERVER, "DOCUMENT_ROOT", &docroot, len, &len)) { in sapi_cli_register_variables()
1001 size_t len, index = 0; in do_cli() local
1015 len = strlen(input); in do_cli()
1016 while (len > 0 && len-- && (input[len]=='\n' || input[len]=='\r')) { in do_cli()
[all …]
/PHP-8.1/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_memory_device.c80 result->len = device->pos; in mbfl_memory_device_result()
114 int mbfl_memory_device_strncat(mbfl_memory_device *device, const char *psrc, size_t len) in mbfl_memory_device_strncat() argument
116 if (len > device->length - device->pos) { in mbfl_memory_device_strncat()
119 if (len > SIZE_MAX - MBFL_MEMORY_DEVICE_ALLOC_SIZE in mbfl_memory_device_strncat()
120 || device->length > SIZE_MAX - (len + MBFL_MEMORY_DEVICE_ALLOC_SIZE)) { in mbfl_memory_device_strncat()
125 size_t newlen = device->length + len + MBFL_MEMORY_DEVICE_ALLOC_SIZE; in mbfl_memory_device_strncat()
131 memcpy(w, psrc, len); in mbfl_memory_device_strncat()
132 device->pos += len; in mbfl_memory_device_strncat()
/PHP-8.1/ext/standard/
H A Dpack.c911 len = size; in PHP_FUNCTION()
914 size = len; in PHP_FUNCTION()
927 len = size; in PHP_FUNCTION()
930 size = len; in PHP_FUNCTION()
933 while (--len >= 0) { in PHP_FUNCTION()
956 len = size; in PHP_FUNCTION()
959 size = len; in PHP_FUNCTION()
966 len = s; in PHP_FUNCTION()
984 len = size * 2; in PHP_FUNCTION()
987 if (len > 0 && argb > 0) { in PHP_FUNCTION()
[all …]
H A Dcrypt_sha256.c35 if (n > len) { in __php_stpncpy()
36 n = len; in __php_stpncpy()
43 return (((char *)memcpy(dst, src, len)) + len); in __php_mempcpy()
252 size_t add = 128 - left_over > len ? len : 128 - left_over; in sha256_process_bytes()
265 len -= add; in sha256_process_bytes()
269 if (len >= 64) { in sha256_process_bytes()
278 while (len > 64) { in sha256_process_bytes()
281 len -= 64; in sha256_process_bytes()
285 len &= 63; in sha256_process_bytes()
290 if (len > 0) { in sha256_process_bytes()
[all …]
/PHP-8.1/sapi/litespeed/
H A Dlsapilib.c360 size_t len; in lsapi_enable_core_dump() local
363 len = 2; in lsapi_enable_core_dump()
1394 int len; in readReq() local
1754 return len; in readBodyToReqBuf()
1774 ssize_t len; in LSAPI_ReqBodyGetLine_r() local
1821 ssize_t len; in LSAPI_ReadReqBody_r() local
2307 int len = 0; in LSAPI_ForeachOrgHeader_r() local
2383 int len = 0; in LSAPI_ForeachHeader_r() local
3927 int len = 0; in lsapi_check_path() local
3935 ++len; in lsapi_check_path()
[all …]
/PHP-8.1/ext/sockets/tests/
H A Dsocket_sentto_recvfrom_ipv6_udp-win32.phpt28 $len = strlen($msg);
29 $bytes_sent = socket_sendto($socket, $msg, $len, 0, $address, 1223);
32 } else if ($bytes_sent != $len) {
33 die($bytes_sent . ' bytes have been sent instead of the ' . $len . ' bytes expected');
41 } else if ($bytes_received != $len) {
42 … die($bytes_received . ' bytes have been received instead of the ' . $len . ' bytes expected');
H A Dsocket_sentto_recvfrom_unix.phpt27 $len = strlen($msg);
28 $bytes_sent = socket_sendto($socket, $msg, $len, 0, $address);
32 } else if ($bytes_sent != $len) {
34 die($bytes_sent . ' bytes have been sent instead of the ' . $len . ' bytes expected');
43 } else if ($bytes_received != $len) {
45 … die($bytes_received . ' bytes have been received instead of the ' . $len . ' bytes expected');
/PHP-8.1/ext/dba/libcdb/
H A Dcdb_make.c44 static int cdb_posplus(struct cdb_make *c, uint32 len) in cdb_posplus() argument
46 uint32 newpos = c->pos + len; in cdb_posplus()
47 if (newpos < len) { in cdb_posplus()
140 uint32 len; in cdb_make_finish() local
193 len = count + count; /* no overflow possible */ in cdb_make_finish()
195 uint32_pack(c->final + 8 * i + 4,len); in cdb_make_finish()
197 for (u = 0;u < len;++u) in cdb_make_finish()
202 where = (hp->h >> 8) % len; in cdb_make_finish()
204 if (++where == len) in cdb_make_finish()
209 for (u = 0;u < len;++u) { in cdb_make_finish()
/PHP-8.1/ext/hash/tests/
H A Dmhash_002.phpt37 foreach ($supported_hash_al as $name => $len) {
39 $len = mhash_get_block_size($known_hash_al[$name]);
40 echo "$name = $len\n";
42 echo "$name ? $len\n";
/PHP-8.1/sapi/phpdbg/
H A Dphpdbg_cmd.c142 dest->str = estrndup(src->str, src->len); in phpdbg_copy_param()
143 dest->len = src->len; in phpdbg_copy_param()
147 dest->str = estrndup(src->str, src->len); in phpdbg_copy_param()
148 dest->len = src->len; in phpdbg_copy_param()
173 dest->str = estrndup(src->str, src->len); in phpdbg_copy_param()
175 dest->len = src->len; in phpdbg_copy_param()
264 return (l->len == r->len) && in phpdbg_match_param()
453 stack->len++; in phpdbg_stack_push()
577 if (name->len == 1 || command->name_len >= name->len) { in phpdbg_stack_resolve()
589 if ((name->len != command->name_len && command->alias) || name->len == command->name_len) { in phpdbg_stack_resolve()
[all …]
H A Dphpdbg_utils.h68 PHPDBG_API int phpdbg_get_element(const char *name, size_t len); /* }}} */
86 typedef int (*phpdbg_parse_var_func)(char *name, size_t len, char *keyname, size_t keylen, HashTabl…
87 typedef int (*phpdbg_parse_var_with_arg_func)(char *name, size_t len, char *keyname, size_t keylen,…
89 PHPDBG_API int phpdbg_parse_variable(char *input, size_t len, HashTable *parent, size_t i, phpdbg_p…
90 PHPDBG_API int phpdbg_parse_variable_with_arg(char *input, size_t len, HashTable *parent, size_t i,…
92 int phpdbg_is_auto_global(char *name, int len);
/PHP-8.1/ext/hash/
H A Dphp_hash_crc32.h28 PHP_HASH_API void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len);
29 PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len);
30 PHP_HASH_API void PHP_CRC32CUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len);
/PHP-8.1/ext/exif/tests/bug72735/
H A Dbug72735.phpt10 $len = strlen(exif_thumbnail(__DIR__ . DIRECTORY_SEPARATOR . $picture));
12 if (!$len) {
18 echo 'int(' . $len . ')', PHP_EOL;
/PHP-8.1/ext/fileinfo/libmagic/
H A Dstrcasestr.c72 size_t len; in strcasestr() local
76 len = strlen(find); in strcasestr()
82 } while (_strncasecmp(s, find, len) != 0); in strcasestr()
H A Dfuncs.c138 size_t len; in file_vprintf() local
152 if (len > 1024 || len + ms->o.blen > 1024 * 1024) { in file_vprintf()
168 ms->o.blen = len; in file_vprintf()
235 len); in file_oomem()
542 size_t psize, len; in file_getbuffer() local
556 file_oomem(ms, len); in file_getbuffer()
559 psize = len * 4 + 1; in file_getbuffer()
577 eop = op + len; in file_getbuffer()
619 size_t len; in file_check_mem() local
622 len = (ms->c.len = 20 + level) * sizeof(*ms->c.li); in file_check_mem()
[all …]
/PHP-8.1/ext/pdo_pgsql/tests/
H A Dbug62498.phpt65 ["len"]=>
84 ["len"]=>
103 ["len"]=>
122 ["len"]=>
141 ["len"]=>
160 ["len"]=>
179 ["len"]=>
198 ["len"]=>
217 ["len"]=>
H A Dbug62498-32bit.phpt65 ["len"]=>
84 ["len"]=>
103 ["len"]=>
122 ["len"]=>
141 ["len"]=>
160 ["len"]=>
179 ["len"]=>
198 ["len"]=>
217 ["len"]=>

Completed in 81 milliseconds

12345678910>>...19