/PHP-5.5/Zend/tests/ |
H A D | bug26696.phpt | 6 $len = strlen($str); 7 for ($i = 0; $i < $len; $i++) {
|
/PHP-5.5/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.5/ext/standard/ |
H A D | iptc.c | 313 int inx = 0, len; in PHP_FUNCTION() local 349 len = (((long) buffer[ inx + 2 ]) << 24) + (((long) buffer[ inx + 3 ]) << 16) + in PHP_FUNCTION() 353 len = (((unsigned short) buffer[ inx ])<<8) | (unsigned short)buffer[ inx+1 ]; in PHP_FUNCTION() 357 if ((len < 0) || (len > str_len) || (inx + len) > str_len) { in PHP_FUNCTION() 374 add_next_index_stringl(*element, buffer+inx, len, 1); in PHP_FUNCTION() 375 inx += len; in PHP_FUNCTION()
|
H A D | string.c | 316 len = len1; in php_spn_common_handler() 330 if (len < 0) { in php_spn_common_handler() 333 len = 0; in php_spn_common_handler() 341 if(len == 0) { in php_spn_common_handler() 831 len--; in php_trim() 1399 e = c+len; in php_strtolower() 1435 cnt = len; 3309 l = *len; 3320 (*len)--; 4989 len--; [all …]
|
H A D | url.c | 67 unsigned char *e = (unsigned char *)str + len; in php_replace_controlchars_ex() 494 end = (unsigned char *)s + len; in php_url_encode() 495 start = to = (unsigned char *) safe_emalloc(3, len, 1); in php_url_encode() 569 PHPAPI int php_url_decode(char *str, int len) in php_url_decode() argument 574 while (len--) { in php_url_decode() 586 len -= 2; in php_url_decode() 605 str = (unsigned char *) safe_emalloc(3, len, 1); 606 for (x = 0, y = 0; len--; x++, y++) { 674 PHPAPI int php_raw_url_decode(char *str, int len) argument 679 while (len--) { [all …]
|
H A D | file.c | 522 long len; in PHP_FUNCTION() local 556 len = INT_MAX; in PHP_FUNCTION() 625 size_t len; in PHP_FUNCTION() local 1085 size_t len = 0; in PHP_FUNCTION() local 1131 size_t len; in PHP_FUNCTION() local 1747 long len; in PHP_FUNCTION() local 1756 if (len <= 0) { in PHP_FUNCTION() 1957 long len = 0; in PHP_FUNCTION() local 2022 len = -1; in PHP_FUNCTION() 2025 len = -1; in PHP_FUNCTION() [all …]
|
H A D | var_unserializer.c | 206 for (i = 0; i < *len; i++) { in unserialize_str() 234 *len = i; in unserialize_str() 656 if (maxlen < len || len == 0) { in php_var_unserialize() 663 YYCURSOR += len; in php_var_unserialize() 675 if (len3 != len) in php_var_unserialize() 878 size_t len, maxlen; in php_var_unserialize() local 881 len = parse_uiv(start + 2); in php_var_unserialize() 883 if (maxlen < len) { in php_var_unserialize() 928 size_t len, maxlen; in php_var_unserialize() local 933 if (maxlen < len) { in php_var_unserialize() [all …]
|
/PHP-5.5/ext/pdo/ |
H A D | pdo_sql_parser.c | 429 int len; member 459 int len = s.cur - s.tok; in pdo_parse_params() local 460 if ((inquery < (s.cur - len)) && isalnum(*(s.cur - len - 1))) { in pdo_parse_params() 472 plc->len = s.cur - s.tok; in pdo_parse_params() 526 if (zend_hash_find(params, plc->pos, plc->len, (void**) ¶m) == FAILURE) { in pdo_parse_params() 551 ret = zend_hash_find(params, plc->pos, plc->len, (void**) ¶m); in pdo_parse_params() 565 size_t len; in pdo_parse_params() local 568 len = php_stream_copy_to_mem(stm, &buf, PHP_STREAM_COPY_ALL, 0); in pdo_parse_params() 647 ptr = plc->pos + plc->len; in pdo_parse_params() 679 name = estrndup(plc->pos, plc->len); in pdo_parse_params() [all …]
|
/PHP-5.5/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.5/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
|
H A D | strcspn_error.phpt | 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) 27 $len = 20; 31 var_dump( strcspn($str,$mask,$start,$len, $extra_arg) );
|
H A D | strspn_error.phpt | 5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars) 27 $len = 20; 31 var_dump( strspn($str,$mask,$start,$len, $extra_arg) );
|
H A D | strcspn_variation10.phpt | 2 Test strcspn() function : usage variations - with 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 varying mask and default start and len arguments 16 echo "*** Testing strcspn() : with different mask strings and default start and len arguments ***\n… 67 *** Testing strcspn() : with different mask strings and default start and len arguments ***
|
H A D | strspn_variation10.phpt | 2 Test strspn() function : usage variations - with varying mask & default start and len args 5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars) 13 * Testing strspn() : with varying mask and default start and len arguments 16 echo "*** Testing strspn() : with different mask strings and default start and len arguments ***\n"; 69 *** Testing strspn() : with different mask strings and default start and len arguments ***
|
/PHP-5.5/main/ |
H A D | SAPI.c | 319 content_type = (char*)emalloc(*len + 1); in get_default_content_type() 327 *len = prefix_len + mimetype_len; in get_default_content_type() 328 content_type = (char*)emalloc(*len + 1); in get_default_content_type() 337 uint len; in sapi_get_default_content_type() local 339 return get_default_content_type(0, &len TSRMLS_CC); in sapi_get_default_content_type() 345 uint len; in sapi_get_default_content_type_header() local 348 default_header->header_len = len; in sapi_get_default_content_type_header() 609 if (header->header_len > len && header->header[len] == ':' in sapi_remove_header() 610 && !strncasecmp(header->header, name, len)) { in sapi_remove_header() 784 len--; in sapi_header_op() [all …]
|
/PHP-5.5/tests/lang/ |
H A D | bug26696.phpt | 7 $len = strlen($str); 8 for ($i = 0; $i < $len; $i++) {
|
/PHP-5.5/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.5/ext/hash/ |
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.5/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() 167 if (len >= 255) { in php_intl_idn_to_46() 171 buffer[len] = '\0'; in php_intl_idn_to_46() 174 RETVAL_STRINGL(buffer, len, 0); in php_intl_idn_to_46() 187 ZVAL_STRINGL(zv, buffer, len, 0); in php_intl_idn_to_46()
|
/PHP-5.5/ext/iconv/tests/ |
H A D | eucjp2iso2022jp.phpt | 13 $len = strlen($str); 14 for ($i = 0; $i < $len; ++$i) {
|
/PHP-5.5/ext/xml/ |
H A D | xml.c | 394 int len = strlen(str); in _xml_string_zval() local 412 if (len == 0) { in _xml_xmlchar_zval() 612 int pos = len; in xml_utf8_encode() 630 *newlen = len; in xml_utf8_encode() 681 *newlen = len; in xml_utf8_decode() 697 if (*newlen < len) { in xml_utf8_decode() 708 int len = 0; in _xml_xmlcharlen() local 711 len++; in _xml_xmlcharlen() 714 return len; in _xml_xmlcharlen() 1696 int arg_len, len; in PHP_FUNCTION() local [all …]
|
/PHP-5.5/ext/mysqlnd/ |
H A D | mysqlnd_charset.c | 141 unsigned int len = check_mb_utf8mb3_sequence(start, end); in check_mb_utf8mb3_valid() local 142 return (len > 1)? len:0; in check_mb_utf8mb3_valid() 147 unsigned int len = check_mb_utf8_sequence(start, end); in check_mb_utf8_valid() local 148 return (len > 1)? len:0; in check_mb_utf8_valid() 698 unsigned int len = 0; in mysqlnd_cset_escape_quotes() local 701 if (cset->char_maxlen > 1 && (len = cset->mb_valid(escapestr, end))) { in mysqlnd_cset_escape_quotes() 704 if ((newstr + len) > newstr_e) { in mysqlnd_cset_escape_quotes() 709 while (len--) { in mysqlnd_cset_escape_quotes() 754 unsigned int len = 0; in mysqlnd_cset_escape_slashes() local 759 if ((newstr + len) > newstr_e) { in mysqlnd_cset_escape_slashes() [all …]
|
/PHP-5.5/ext/oci8/tests/ |
H A D | lob_008.phpt | 38 $len = 0; 40 $len += strlen($row[0]->read(1024)); 42 var_dump($len);
|
/PHP-5.5/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 99 size_t len; member 149 size_t len; member 461 size_t i, len; in file_ms_alloc() local 473 len = (ms->c.len = 10) * sizeof(*ms->c.li); in file_ms_alloc() 942 size_t len; in load_1() local 983 if ((size_t)(len - 2) > bang[i].len && in load_1() 1423 size_t len; in get_cond() member 2657 map->len = 0; in apprentice_map() 2752 size_t len; in apprentice_compile() local 2978 len = *s; [all …]
|