Home
last modified time | relevance | path

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

12345678910>>...20

/PHP-5.5/tests/output/
H A Dob_start_basic_006.phpt13 $len = strlen($string);
14 return "f[call:$i; len:$len] - $string\n";
27 $len = strlen($string);
28 return "C::g[call:$i; len:$len] - $string\n";
34 $len = strlen($string);
35 return "C::h[call:$i; len:$len; id:$this->id] - $string\n";
116 C::h[call:1; len:37; id:originalID] - bool(true)
122 C::h[call:2; len:37; id:changedID] - bool(true)
/PHP-5.5/ext/zip/lib/
H A Dzip_memdup.c42 _zip_memdup(const void *mem, size_t len, struct zip_error *error) in _zip_memdup() argument
46 ret = malloc(len); in _zip_memdup()
52 memcpy(ret, mem, len); in _zip_memdup()
H A Dzip_source_file.c45 zip_int64_t len) in zip_source_file() argument
50 if (fname == NULL || len < -1) { in zip_source_file()
55 return _zip_source_file_or_p(za, fname, NULL, start, len, 1, NULL); in zip_source_file()
H A Dzip_error_to_str.c46 zip_error_to_str(char *buf, zip_uint64_t len, int ze, int se) in zip_error_to_str() argument
51 return snprintf(buf, len, "Unknown error %d", ze); in zip_error_to_str()
68 return snprintf(buf, len, "%s%s%s", in zip_error_to_str()
/PHP-5.5/ext/standard/
H A Durl_scanner_ex.c275 switch (ctx->tag.len) { in handle_form()
318 ctx->tag.len = 0; in handle_tag()
329 ctx->arg.len = 0; in handle_arg()
905 ctx->buf.len = rest; in xx_mainloop()
952 ctx->result.len = 0; in url_adapt_ext()
983 size_t len; in php_url_scanner_output_handler() local
988 if (len > UINT_MAX) in php_url_scanner_output_handler()
989 len = UINT_MAX; in php_url_scanner_output_handler()
994 if (ctx->buf.len) { in php_url_scanner_output_handler()
1002 ctx->result.len = 0; in php_url_scanner_output_handler()
[all …]
H A Durl.h37 PHPAPI int php_url_decode(char *str, int len); /* return value: length of decoded string */
38 PHPAPI int php_raw_url_decode(char *str, int len); /* return value: length of decoded string */
39 PHPAPI char *php_url_encode(char const *s, int len, int *new_length);
40 PHPAPI char *php_raw_url_encode(char const *s, int len, int *new_length);
H A Dformatted_print.c83 copy_len = (expprec ? MIN(max_width, len) : len); in php_sprintf_appendstring()
114 len--; in php_sprintf_appendstring()
678 *len = outpos; in php_formatted_print()
688 int len; in PHP_FUNCTION() local
702 int len; in PHP_FUNCTION() local
716 int len, rlen; in PHP_FUNCTION() local
732 int len, rlen; in PHP_FUNCTION() local
750 int len; in PHP_FUNCTION() local
770 RETURN_LONG(len); in PHP_FUNCTION()
781 int len; in PHP_FUNCTION() local
[all …]
H A Durl_scanner_ex.re211 switch (ctx->tag.len) {
254 ctx->tag.len = 0;
265 ctx->arg.len = 0;
357 ctx->buf.len = rest;
404 ctx->result.len = 0;
435 size_t len;
440 if (len > UINT_MAX)
441 len = UINT_MAX;
446 if (ctx->buf.len) {
454 ctx->result.len = 0;
[all …]
H A Dcrypt_sha256.c50 if (n > len) { in __php_stpncpy()
51 n = len; in __php_stpncpy()
58 return (((char *)memcpy(dst, src, len)) + len); in __php_mempcpy()
129 ctx->total[0] += len; in sha256_process_block()
267 size_t add = 128 - left_over > len ? len : 128 - left_over; in sha256_process_bytes()
280 len -= add; in sha256_process_bytes()
284 if (len >= 64) { in sha256_process_bytes()
296 len -= 64; in sha256_process_bytes()
300 len &= 63; in sha256_process_bytes()
305 if (len > 0) { in sha256_process_bytes()
[all …]
/PHP-5.5/ext/standard/tests/strings/
H A Dstrncasecmp_variation3.phpt5 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len );
18 for($len = strlen($str1); $len >= 0; $len--) {
19 var_dump( strncasecmp($str1, $str2, $len) );
H A Dstrncmp_variation3.phpt5 /* Prototype : int strncmp ( string $str1, string $str2, int $len );
18 for($len = strlen($str1); $len >= 0; $len--) {
19 var_dump( strncmp($str1, $str2, $len) );
H A Dstrspn_basic.phpt5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]])
7 … If start or/and length is provided, it works like strspn(substr($s,$start,$len),$good_chars)
23 $len = 30;
26 var_dump( strspn($str, $mask, $start, $len) );
28 // Calling strspn() with three arguments and default len argument
H A Dstrncmp_error.phpt5 /* Prototype : int strncmp ( string $str1, string $str2, int $len );
15 $len = 10;
21 var_dump( strncmp($str1, $str2, $len, $extra_arg) ); //Four arguments, greater than expected no. o…
23 /* Invalid argument for $len */
24 $len = -10;
25 var_dump( strncmp($str1, $str2, $len) );
/PHP-5.5/Zend/
H A Dzend_stream.c53 static size_t zend_stream_stdio_reader(void *handle, char *buf, size_t len TSRMLS_DC) /* {{{ */ in zend_stream_stdio_reader()
55 return fread(buf, 1, len, (FILE*)handle); in zend_stream_stdio_reader()
82 munmap(stream->mmap.map, stream->mmap.len + ZEND_MMAP_AHEAD); in zend_stream_unmap()
88 stream->mmap.len = 0; in zend_stream_unmap()
112 return file_handle->handle.stream.mmap.len; in zend_stream_fsize()
215 *len = file_handle->handle.stream.mmap.len;
248 file_handle->handle.stream.mmap.len = size;
256 file_handle->handle.stream.mmap.len = zend_stream_read(file_handle, *buf, size TSRMLS_CC);
272 file_handle->handle.stream.mmap.len = size;
279 if (file_handle->handle.stream.mmap.len == 0) {
[all …]
H A Dzend_language_scanner.l116 #define SET_DOUBLE_QUOTES_SCANNED_LENGTH(len) CG(doc_comment_len) = (len) argument
673 size = str->value.str.len; in zend_prepare_string_for_scanning()
1499 int len = yyleng - 2;
1504 --len;
1508 if (len == 0) {
1545 int len = yyleng - 2;
1550 len--;
1553 if (len < SIZEOF_LONG * 2 || (len == SIZEOF_LONG * 2 && *hex <= '7')) {
1554 if (len == 0) {
1659 size_t len = 0;
[all …]
/PHP-5.5/ext/bcmath/libbcmath/src/
H A Ddebug.c60 pv (name, num, len) in pv() argument
63 int len;
67 for (i=0; i<len; i++) printf ("%c",BCD_CHAR(num[i]));
/PHP-5.5/ext/mbstring/oniguruma/
H A Dregenc.c136 while (len > 1) { in onigenc_strlen_null()
139 len--; in onigenc_strlen_null()
161 while (len > 1) { in onigenc_str_bytelen_null()
164 len--; in onigenc_str_bytelen_null()
644 int c, i, len; in onigenc_mbn_mbc_to_code() local
647 len = enclen(enc, p); in onigenc_mbn_mbc_to_code()
649 if (len == 1) return n; in onigenc_mbn_mbc_to_code()
664 int len; in onigenc_mbn_mbc_case_fold() local
679 (*pp) += len; in onigenc_mbn_mbc_case_fold()
779 int len; in onigenc_minimum_property_name_to_ctype() local
[all …]
/PHP-5.5/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-5.5/main/
H A Dsnprintf.h81 PHPAPI int ap_php_slprintf(char *buf, size_t len, const char *format,...);
82 PHPAPI int ap_php_vslprintf(char *buf, size_t len, const char *format, va_list ap);
90 boolean_e add_dp, int precision, char dec_point, bool_int * is_negative, char *buf, int *len);
156 register bool_int * is_negative, char *buf_end, register int *len);
159 char format, char *buf_end, register int *len);
/PHP-5.5/ext/sockets/tests/
H A Dsocket_sentto_recvfrom_unix.phpt28 $len = strlen($msg);
29 $bytes_sent = socket_sendto($socket, $msg, $len, 0); // cause warning
30 $bytes_sent = socket_sendto($socket, $msg, $len, 0, $address);
34 } else if ($bytes_sent != $len) {
36 die($bytes_sent . ' bytes have been sent instead of the ' . $len . ' bytes expected');
45 } else if ($bytes_received != $len) {
47 … die($bytes_received . ' bytes have been received instead of the ' . $len . ' bytes expected');
/PHP-5.5/ext/json/
H A DJSON_parser.c303 buf->len--; in json_create_zval()
323 buf->len++; in json_create_zval()
377 buf->len -= 3; in utf16_to_utf8()
406 …add_property_zval_ex(root, (key->len ? key->c : "_empty_"), (key->len ? (key->len + 1) : sizeof("_… in attach_zval()
411 …add_assoc_zval_ex(root, (key->len ? key->c : ""), (key->len ? (key->len + 1) : sizeof("")), child); in attach_zval()
413 key->len = 0; in attach_zval()
426 to.len = from.len; \
427 from.len = 0; \
556 …add_assoc_zval_ex(jp->the_zstack[jp->top], (key.len ? key.c : ""), (key.len ? (key.len + 1) : size… in parse_JSON_ex()
701 …add_assoc_zval_ex(jp->the_zstack[jp->top], (key.len ? key.c : ""), (key.len ? (key.len + 1) : size… in parse_JSON_ex()
[all …]
/PHP-5.5/sapi/cli/
H A Dphp_cli.c341 unsigned int len; in sapi_cli_register_variables() local
350 len = strlen(php_self); in sapi_cli_register_variables()
351 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, len, &len TSRMLS_CC)) { in sapi_cli_register_variables()
354 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &php_self, len, &len TSRMLS_CC)) { in sapi_cli_register_variables()
358 len = strlen(script_filename); in sapi_cli_register_variables()
366 len = 0U; in sapi_cli_register_variables()
1042 size_t len, index = 0; in do_cli() local
1056 len = strlen(input); in do_cli()
1057 while (len-- && (input[len]=='\n' || input[len]=='\r')) { in do_cli()
1058 input[len] = '\0'; in do_cli()
[all …]
/PHP-5.5/ext/fileinfo/libmagic/
H A Dfuncs.c62 int len; in file_printf() local
145 len); in file_oomem()
339 size_t psize, len; in file_getbuffer() local
351 len = strlen(ms->o.buf); in file_getbuffer()
355 psize = len * 4 + 1; in file_getbuffer()
372 eop = op + len; in file_getbuffer()
414 size_t len; in file_check_mem() local
416 if (level >= ms->c.len) { in file_check_mem()
417 len = (ms->c.len = 20 + level) * sizeof(*ms->c.li); in file_check_mem()
419 emalloc(len) : in file_check_mem()
[all …]
/PHP-5.5/ext/xmlrpc/libxmlrpc/
H A Dxmlrpc.h325 XMLRPC_VALUE XMLRPC_CreateValueBase64(const char* id, const char* s, int len);
330 XMLRPC_VALUE XMLRPC_CreateValueString(const char* id, const char* s, int len);
351 const char *XMLRPC_SetValueString(XMLRPC_VALUE value, const char* s, int len);
352 void XMLRPC_SetValueBase64(XMLRPC_VALUE value, const char* s, int len);
353 const char *XMLRPC_SetValueID_Case(XMLRPC_VALUE value, const char* id, int len, XMLRPC_CASE id_case…
354 #define XMLRPC_SetValueID(value, id, len) XMLRPC_SetValueID_Case(value, id, len, XMLRPC_DEFAULT_ID_… argument
373 XMLRPC_REQUEST XMLRPC_REQUEST_FromXML(const char* in_buf, int len, XMLRPC_REQUEST_INPUT_OPTIONS in_…
374 XMLRPC_VALUE XMLRPC_VALUE_FromXML(const char* in_buf, int len, XMLRPC_REQUEST_INPUT_OPTIONS in_opti…
427 …MLRPC_VectorAppendString(vector, id, s, len) XMLRPC_AddValueToVector(vector, XMLRPC_CreateValueStr… argument
428 …MLRPC_VectorAppendBase64(vector, id, s, len) XMLRPC_AddValueToVector(vector, XMLRPC_CreateValueBas… argument
/PHP-5.5/ext/mbstring/
H A Dmbstring.c2716 long from, len; in PHP_FUNCTION() local
2766 if (len < 0) { in PHP_FUNCTION()
2767 len = (mblen - from) + len; in PHP_FUNCTION()
2769 len = 0; in PHP_FUNCTION()
2815 len = string.len; in PHP_FUNCTION()
2834 if (len < 0) { in PHP_FUNCTION()
2835 len = (string.len - from) + len; in PHP_FUNCTION()
2837 len = 0; in PHP_FUNCTION()
4539 …if (illegalchars == 0 && string.len == result.len && memcmp(string.val, result.val, string.len) ==… in PHP_FUNCTION()
4673 haystack.len = len; in php_mb_stripos()
[all …]

Completed in 87 milliseconds

12345678910>>...20