/PHP-5.6/ext/standard/ |
H A D | html.c | 380 int len = 0; in determine_charset() local 400 len = 0; in determine_charset() 435 len = at - dot; in determine_charset() 437 len = strlen(dot); in determine_charset() 1280 len = 0; in php_escape_html_entities_ex() 1341 len += rep_len; in php_escape_html_entities_ex() 1377 len += mbseqlen; in php_escape_html_entities_ex() 1430 len += ent_len; in php_escape_html_entities_ex() 1436 replaced[len] = '\0'; in php_escape_html_entities_ex() 1437 *newlen = len; in php_escape_html_entities_ex() [all …]
|
H A D | crc32.c | 30 int len, nr; in PHP_NAMED_FUNCTION() local 39 for (len =+nr; nr--; ++p) { in PHP_NAMED_FUNCTION()
|
H A D | crypt_sha512.c | 134 size_t nwords = len / sizeof(uint64_t); in sha512_process_block() 147 ctx->total[0] += len; in sha512_process_block() 148 if (ctx->total[0] < len) { in sha512_process_block() 288 size_t add = (size_t)(256 - left_over > len ? len : 256 - left_over); in sha512_process_bytes() 303 len -= add; in sha512_process_bytes() 307 if (len >= 128) { in sha512_process_bytes() 317 while (len > 128) { in sha512_process_bytes() 320 len -= 128; in sha512_process_bytes() 327 len &= 127; in sha512_process_bytes() 332 if (len > 0) { in sha512_process_bytes() [all …]
|
H A D | iptc.c | 314 int inx = 0, len; in PHP_FUNCTION() local 350 len = (((long) buffer[ inx + 2 ]) << 24) + (((long) buffer[ inx + 3 ]) << 16) + in PHP_FUNCTION() 354 len = (((unsigned short) buffer[ inx ])<<8) | (unsigned short)buffer[ inx+1 ]; in PHP_FUNCTION() 358 if ((len < 0) || (len > str_len) || (inx + len) > str_len) { in PHP_FUNCTION() 375 add_next_index_stringl(*element, buffer+inx, len, 1); in PHP_FUNCTION() 376 inx += len; in PHP_FUNCTION()
|
H A D | url.c | 67 unsigned char *e = (unsigned char *)str + len; in php_replace_controlchars_ex() 452 end = (unsigned char *)s + len; in php_url_encode() 453 start = to = (unsigned char *) safe_emalloc(3, len, 1); in php_url_encode() 534 PHPAPI int php_url_decode(char *str, int len) in php_url_decode() argument 539 while (len--) { in php_url_decode() 551 len -= 2; in php_url_decode() 570 str = (unsigned char *) safe_emalloc(3, len, 1); 571 for (x = 0, y = 0; len--; x++, y++) { 639 PHPAPI int php_raw_url_decode(char *str, int len) argument 644 while (len--) { [all …]
|
H A D | string.c | 306 len = len1; in php_spn_common_handler() 320 if (len < 0) { in php_spn_common_handler() 323 len = 0; in php_spn_common_handler() 331 if(len == 0) { in php_spn_common_handler() 821 len--; in php_trim() 1399 e = c+len; in php_strtolower() 1435 cnt = len; 3315 l = *len; 3326 (*len)--; 4999 len--; [all …]
|
/PHP-5.6/ext/pgsql/tests/ |
H A D | 11pg_meta_data.phpt | 25 ["len"]=> 42 ["len"]=> 59 ["len"]=>
|
/PHP-5.6/sapi/phpdbg/ |
H A D | phpdbg_parser.c | 1497 (yyval).file.name = malloc((yyvsp[(1) - (4)]).len + (yyvsp[(2) - (4)]).len + 1); 1500 …memcpy(&(yyval).file.name[(yyvsp[(1) - (4)]).len], (yyvsp[(2) - (4)]).str, (yyvsp[(2) - (4)]).len); 1501 (yyval).file.name[(yyvsp[(1) - (4)]).len + (yyvsp[(2) - (4)]).len] = '\0'; 1512 (yyval).file.name = malloc((yyvsp[(1) - (5)]).len + (yyvsp[(2) - (5)]).len + 1); 1516 (yyval).file.name[(yyvsp[(1) - (5)]).len + (yyvsp[(2) - (5)]).len] = '\0'; 1549 (yyval).len = (yyvsp[(1) - (3)]).len; 1560 (yyval).len = (yyvsp[(2) - (2)]).len; 1612 (yyval).len = (yyvsp[(2) - (2)]).len; 1622 (yyval).len = (yyvsp[(2) - (2)]).len; 1631 (yyval).len = 0; [all …]
|
/PHP-5.6/sapi/milter/ |
H A D | php_milter.c | 440 ZVAL_STRINGL(param[0], (char*)bodyp, len, 1); /*alex*/ in mlfi_body() 613 int len; in PHP_FUNCTION() local 634 int len; in PHP_FUNCTION() local 639 …} else if (zend_parse_parameters(3 TSRMLS_CC, "sss", &rcode, &len, &xcode, &len, &message, &len) =… in PHP_FUNCTION() 654 int len; in PHP_FUNCTION() local 659 } else if (zend_parse_parameters(2 TSRMLS_CC, "ss", &f, &len, &v, &len) == SUCCESS) { in PHP_FUNCTION() 675 int len; in PHP_FUNCTION() local 680 } else if (zend_parse_parameters(3 TSRMLS_CC, "sls", &f, &len, &idx, &v, &len) == SUCCESS) { in PHP_FUNCTION() 695 int len; in PHP_FUNCTION() local 715 int len; in PHP_FUNCTION() local [all …]
|
/PHP-5.6/ext/phar/ |
H A D | stub.h | 21 static inline void phar_get_stub(const char *index_php, const char *web, size_t *len, char **stub, … in phar_get_stub() argument 33 …*len = spprintf(stub, name_len + web_len + newstub_len, "%s%s%s%s%s%s%d%s%s%s", newstub0, web, new… in phar_get_stub()
|
/PHP-5.6/ext/hash/ |
H A D | php_hash_crc32.h | 31 PHP_HASH_API void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len); 32 PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len);
|
H A D | hash_fnv.c | 151 fnv_32_buf(void *buf, size_t len, php_hash_uint32 hval, int alternate) in fnv_32_buf() argument 154 unsigned char *be = bp + len; /* beyond end of buffer */ in fnv_32_buf() 193 fnv_64_buf(void *buf, size_t len, php_hash_uint64 hval, int alternate) in fnv_64_buf() argument 196 unsigned char *be = bp + len; /* beyond end of buffer */ in fnv_64_buf()
|
/PHP-5.6/Zend/tests/ |
H A D | bug26696.phpt | 6 $len = strlen($str); 7 for ($i = 0; $i < $len; $i++) {
|
/PHP-5.6/ext/mbstring/libmbfl/tests/ |
H A D | emoji.c | 17 for (i = 0; i < ptr->len; i++) { in hexdump() 21 printf(" (%u)\n", ptr->len); in hexdump() 82 for (i = 0; i < result.len; i+= 2) { in main() 103 memcpy(dev2.buffer, result.val, result.len+1); in main()
|
/PHP-5.6/ext/pdo/ |
H A D | pdo_sql_parser.c | 385 int len; member 415 int len = s.cur - s.tok; in pdo_parse_params() local 416 if ((inquery < (s.cur - len)) && isalnum(*(s.cur - len - 1))) { in pdo_parse_params() 428 plc->len = s.cur - s.tok; in pdo_parse_params() 482 if (zend_hash_find(params, plc->pos, plc->len, (void**) ¶m) == FAILURE) { in pdo_parse_params() 507 ret = zend_hash_find(params, plc->pos, plc->len, (void**) ¶m); in pdo_parse_params() 521 size_t len; in pdo_parse_params() local 524 len = php_stream_copy_to_mem(stm, &buf, PHP_STREAM_COPY_ALL, 0); in pdo_parse_params() 603 ptr = plc->pos + plc->len; in pdo_parse_params() 635 name = estrndup(plc->pos, plc->len); in pdo_parse_params() [all …]
|
/PHP-5.6/sapi/litespeed/ |
H A D | lsapi_main.c | 468 int len; in sapi_lsapi_send_headers() local 501 ++len; in sapi_lsapi_log_message() 655 int len; in lsapi_execute_script() local 665 if ( len > 45 ) in lsapi_execute_script() 666 len = len - 45; in lsapi_execute_script() 668 len = 0; in lsapi_execute_script() 775 --len; in pathlen_without_trailing_slash() 777 return len; in pathlen_without_trailing_slash() 1691 int len; in PHP_FUNCTION() local 1710 while( len > 0 && (isspace( headerBuf[len-1])) ) { in PHP_FUNCTION() [all …]
|
/PHP-5.6/ext/xmlrpc/libxmlrpc/ |
H A D | xmlrpc.c | 811 xml_elem_parse_buf (in_buf, len, in XMLRPC_REQUEST_FromXML() 904 (len > 0) ? simplestring_addn(&value->id, id, len) : in XMLRPC_SetValueID_Case() 910 for(i = 0; i < value->id.len; i++) { in XMLRPC_SetValueID_Case() 957 (len > 0) ? simplestring_addn(&value->str, val, len) : in XMLRPC_SetValueString() 1342 XMLRPC_SetValueString(value, val, len); in XMLRPC_CreateValueString() 1629 if (xSource->id.len) { in XMLRPC_DupValueNew() 1802 (len > 0) ? simplestring_addn(&value->str, s, len) : in XMLRPC_SetValueBase64() 1835 XMLRPC_SetValueBase64(val, s, len); in XMLRPC_CreateValueBase64() 1944 return ((value) ? value->str.len : 0); in XMLRPC_GetValueStringLen() 2810 if(description.len) { in XMLRPC_UtilityCreateFault() [all …]
|
/PHP-5.6/tests/lang/ |
H A D | bug26696.phpt | 7 $len = strlen($str); 8 for ($i = 0; $i < $len; $i++) {
|
/PHP-5.6/ext/standard/tests/strings/ |
H A D | strncasecmp_variation5.phpt | 2 Test strncasecmp() function : usage variations - unexpected values for 'len' 5 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len ); 12 echo "*** Test strncasecmp() function: unexpected values for 'len' ***\n"; 86 $len = $lengths[$index]; 88 var_dump( strncasecmp($str1, $str2, $len) ); 96 *** Test strncasecmp() function: unexpected values for 'len' ***
|
H A D | strcspn_variation6.phpt | 2 …spn() function : usage variations - with heredoc strings, varying mask & default start and len args 5 /* Prototype : proto int strcspn(string str, string mask [,int start [,int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 13 * Testing strcspn() : with heredoc string, varying mask and default start and len arguments 84 var_dump( strcspn($str,$mask) ); // with default start and len value
|
/PHP-5.6/Zend/ |
H A D | zend_constants.h | 46 … REGISTER_STRINGL_CONSTANT(name, str, len, flags) zend_register_stringl_constant((name), sizeof(n… argument 53 …STANT(ns, name, str, len, flags) zend_register_stringl_constant(ZEND_NS_NAME(ns, name), sizeof(ZE… argument 60 …STER_MAIN_STRINGL_CONSTANT(name, str, len, flags) zend_register_stringl_constant((name), sizeof(n… argument
|
/PHP-5.6/main/ |
H A D | SAPI.c | 340 content_type = (char*)emalloc(*len + 1); in get_default_content_type() 348 *len = prefix_len + mimetype_len; in get_default_content_type() 349 content_type = (char*)emalloc(*len + 1); in get_default_content_type() 358 uint len; in sapi_get_default_content_type() local 360 return get_default_content_type(0, &len TSRMLS_CC); in sapi_get_default_content_type() 366 uint len; in sapi_get_default_content_type_header() local 369 default_header->header_len = len; in sapi_get_default_content_type_header() 618 if (header->header_len > len && header->header[len] == ':' in sapi_remove_header() 619 && !strncasecmp(header->header, name, len)) { in sapi_remove_header() 793 len--; in sapi_header_op() [all …]
|
/PHP-5.6/ext/dom/tests/ |
H A D | DOMNode_removeChild_basic.phpt | 41 $len = $children->length; 42 echo "original has $len nodes\n"; 52 $len = $children->length; 53 echo "after text removed it now has $len nodes\n";
|
/PHP-5.6/ext/intl/idn/ |
H A D | idn.c | 141 int32_t len; in php_intl_idn_to_46() local 155 len = uidna_nameToASCII_UTF8(uts46, domain, (int32_t)domain_len, in php_intl_idn_to_46() 158 len = uidna_nameToUnicodeUTF8(uts46, domain, (int32_t)domain_len, in php_intl_idn_to_46() 161 if (len >= 255 || php_intl_idn_check_status(status, "failed to convert name", in php_intl_idn_to_46() 168 buffer[len] = '\0'; in php_intl_idn_to_46() 171 RETVAL_STRINGL(buffer, len, 0); in php_intl_idn_to_46() 184 ZVAL_STRINGL(zv, buffer, len, 0); in php_intl_idn_to_46()
|
/PHP-5.6/ext/iconv/tests/ |
H A D | eucjp2iso2022jp.phpt | 13 $len = strlen($str); 14 for ($i = 0; $i < $len; ++$i) {
|