/PHP-5.6/ext/xml/ |
H A D | xml.c | 398 int len = strlen(str); in _xml_string_zval() local 416 if (len == 0) { in _xml_xmlchar_zval() 617 int pos = len; in xml_utf8_encode() 635 *newlen = len; in xml_utf8_encode() 686 *newlen = len; in xml_utf8_decode() 702 if (*newlen < len) { in xml_utf8_decode() 713 int len = 0; in _xml_xmlcharlen() local 716 len++; in _xml_xmlcharlen() 719 return len; in _xml_xmlcharlen() 1705 int arg_len, len; in PHP_FUNCTION() local [all …]
|
/PHP-5.6/ext/standard/tests/strings/ |
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 ***
|
H A D | strspn_variation6.phpt | 2 …spn() function : usage variations - with heredoc strings, 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 heredoc string, varying mask and default start and len arguments 86 var_dump( strspn($str,$mask) ); // with default start and len value
|
/PHP-5.6/ext/zip/lib/ |
H A D | zip_utf-8.c | 224 _zip_cp437_to_utf8(const zip_uint8_t * const _cp437buf, zip_uint32_t len, in _zip_cp437_to_utf8() argument 231 if (len == 0) { in _zip_cp437_to_utf8() 238 for (i=0; i<len; i++) in _zip_cp437_to_utf8() 247 for (i=0; i<len; i++) in _zip_cp437_to_utf8()
|
/PHP-5.6/sapi/phpdbg/ |
H A D | phpdbg_help.c | 174 const char *key, size_t len, /* pointer and length of key */ in get_command() argument 182 if (len == 1) { in get_command() 193 if (!strncmp(c->name, key, len)) { in get_command() 217 n = get_command(param->str, param->len, &cmd, phpdbg_prompt_commands TSRMLS_CC); in PHPDBG_COMMAND() 225 if (param->len > 1) { in PHPDBG_COMMAND() 227 if (!strncmp(cmd->name, param->str, param->len)) { in PHPDBG_COMMAND() 259 int len; in PHPDBG_HELP() local 267 len = 20 - 1 - c->name_len; in PHPDBG_HELP() 271 c->alias, c_sub->alias, (char *)c->name, len, c_sub->name, c_sub->tip); in PHPDBG_HELP() 282 len = 20 - 1 - c->name_len; in PHPDBG_HELP() [all …]
|
/PHP-5.6/ext/standard/ |
H A D | file.c | 530 long len; in PHP_FUNCTION() local 564 len = INT_MAX; in PHP_FUNCTION() 633 size_t len; in PHP_FUNCTION() local 1093 size_t len = 0; in PHP_FUNCTION() local 1139 size_t len; in PHP_FUNCTION() local 1756 long len; in PHP_FUNCTION() local 1765 if (len <= 0) { in PHP_FUNCTION() 1966 long len = 0; in PHP_FUNCTION() local 2031 len = -1; in PHP_FUNCTION() 2034 len = -1; in PHP_FUNCTION() [all …]
|
H A D | var_unserializer.c | 244 for (i = 0; i < *len; i++) { in unserialize_str() 272 *len = i; in unserialize_str() 696 if (maxlen < len || len == 0) { in php_var_unserialize() 703 YYCURSOR += len; in php_var_unserialize() 715 if (len3 != len) in php_var_unserialize() 929 size_t len, maxlen; in php_var_unserialize() local 932 len = parse_uiv(start + 2); in php_var_unserialize() 934 if (maxlen < len) { in php_var_unserialize() 985 size_t len, maxlen; in php_var_unserialize() local 990 if (maxlen < len) { in php_var_unserialize() [all …]
|
/PHP-5.6/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.6/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() 740 unsigned int len = 0; in mysqlnd_cset_escape_quotes() local 743 if (cset->char_maxlen > 1 && (len = cset->mb_valid(escapestr, end))) { in mysqlnd_cset_escape_quotes() 746 if ((newstr + len) > newstr_e) { in mysqlnd_cset_escape_quotes() 751 while (len--) { in mysqlnd_cset_escape_quotes() 796 unsigned int len = 0; in mysqlnd_cset_escape_slashes() local 801 if ((newstr + len) > newstr_e) { in mysqlnd_cset_escape_slashes() [all …]
|
/PHP-5.6/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 105 size_t len; member 154 size_t len; member 467 size_t i, len; in file_ms_alloc() local 479 len = (ms->c.len = 10) * sizeof(*ms->c.li); in file_ms_alloc() 957 size_t len; in load_1() local 994 if ((size_t)(len - 2) > bang[i].len && in load_1() 1426 size_t len; in get_cond() member 2661 map->len = 0; in apprentice_map() 2756 size_t len; in apprentice_compile() local 2978 len = *s; [all …]
|
/PHP-5.6/main/ |
H A D | rfc1867.c | 590 int len = haystacklen; in php_ap_memstr() local 600 if (memcmp(needle, ptr, needlen < len ? needlen : len) == 0 && (partial || len >= needlen)) { in php_ap_memstr() 605 ptr++; len--; in php_ap_memstr() 614 int len, max; in multipart_buffer_read() local 636 if (len > 0) { in multipart_buffer_read() 640 buf[len] = 0; in multipart_buffer_read() 642 if (bound && len > 0 && buf[len-1] == '\r') { in multipart_buffer_read() 643 buf[--len] = 0; in multipart_buffer_read() 648 self->buf_begin += len; in multipart_buffer_read() 651 return len; in multipart_buffer_read() [all …]
|
/PHP-5.6/ext/zlib/tests/ |
H A D | bug60761.phpt | 28 $len = strlen($html); 30 $lens[$len] = $len;
|
/PHP-5.6/ext/standard/tests/file/ |
H A D | fgets_error.phpt | 22 $len = 0; 23 var_dump( fgets($fp, $len) ); 24 $len = -10; 25 var_dump( fgets($fp, $len) ); 26 $len = 1; 27 var_dump( fgets($fp, $len) ); // return length - 1 always, expect false
|
H A D | fgetss_error.phpt | 22 $len = 0; 24 var_dump( fgetss($fp, $len, $allowable_tags) ); 25 $len = -10; 26 var_dump( fgetss($fp, $len, $allowable_tags) ); 27 $len = 1; 28 var_dump( fgetss($fp, $len, $allowable_tags) ); // return length - 1 always, expect false
|
/PHP-5.6/ext/readline/ |
H A D | readline_cli.c | 221 for (i = 0; i < len; ++i) { in cli_is_valid_code() 293 if (i + 2 < len && code[i+1] == '<' && code[i+2] == '<') { in cli_is_valid_code() 572 int len = class_name_len + 2 + strlen(retval) + 1; in cli_completion_generator() local 573 char *tmp = malloc(len); in cli_completion_generator() 575 snprintf(tmp, len, "%s::%s", (*pce)->name, retval); in cli_completion_generator() 593 size_t size = 4096, pos = 0, len; in readline_shell_run() local 629 len = strlen(line); in readline_shell_run() 651 if (pos + len + 2 > size) { in readline_shell_run() 652 size = pos + len + 2; in readline_shell_run() 655 memcpy(&code[pos], line, len); in readline_shell_run() [all …]
|
/PHP-5.6/sapi/fpm/fpm/ |
H A D | fpm_main.c | 407 int len; in sapi_cgi_send_headers() local 417 if (len > SAPI_CGI_MAX_HEADER_LENGTH) { in sapi_cgi_send_headers() 418 len = SAPI_CGI_MAX_HEADER_LENGTH; in sapi_cgi_send_headers() 461 PHPWRITE_H(buf, len); in sapi_cgi_send_headers() 678 char *buf = malloc(len + 2); in sapi_cgi_log_fastcgi() 679 memcpy(buf, message, len); in sapi_cgi_log_fastcgi() 680 memcpy(buf + len, "\n", sizeof("\n")); in sapi_cgi_log_fastcgi() 1216 int len = script_path_translated_len; local 1239 int slen = len - ptlen; 1671 int len = strlen(php_optarg); local [all …]
|
/PHP-5.6/ext/bcmath/libbcmath/src/ |
H A D | output.c | 71 int len, ix; local 75 len = strlen (digits); 76 while (size > len) 81 for (ix=0; ix < len; ix++)
|
/PHP-5.6/ext/pdo_pgsql/ |
H A D | pgsql_statement.c | 325 int len; in pgsql_stmt_param_hook() local 331 Z_STRLEN_P(param->parameter) = len; in pgsql_stmt_param_hook() 504 *len = 0; in pgsql_stmt_get_col() 507 *len = PQgetlength(S->result, S->current_row - 1, colno); in pgsql_stmt_get_col() 514 *len = sizeof(long); in pgsql_stmt_get_col() 520 *len = sizeof(zend_bool); in pgsql_stmt_get_col() 531 *len = 0; in pgsql_stmt_get_col() 535 *len = 0; in pgsql_stmt_get_col() 541 *len = 0; in pgsql_stmt_get_col() 548 *len = 0; in pgsql_stmt_get_col() [all …]
|
/PHP-5.6/ext/intl/locale/ |
H A D | locale_methods.c | 182 int len = 0; in getSingletonPos() local 185 for( i=0; i<len ; i++){ in getSingletonPos() 227 int len=0; in PHP_NAMED_FUNCTION() local 230 &locale_name ,&len ) == FAILURE) in PHP_NAMED_FUNCTION() 238 if(len == 0) { in PHP_NAMED_FUNCTION() 240 len = strlen(locale_name); in PHP_NAMED_FUNCTION() 996 int len =0; in get_private_subtags() local 1001 len = strlen(mod_loc_name); in get_private_subtags() 1023 len = strlen(mod_loc_name); in get_private_subtags() 1599 int len; in PHP_FUNCTION() local [all …]
|
/PHP-5.6/ext/phar/ |
H A D | tar.c | 27 while (i < len && buf[i] == ' ') { in phar_tar_number() 68 int s = len; in phar_tar_octal() 80 while (len-- > 0) in phar_tar_octal() 90 char *end = buf + len; in phar_tar_checksum() 858 entry->metadata_str.len = 0; in phar_tar_setmetadata() 1006 if (len < 0) { in phar_tar_flush() 1014 if (len == -1) { in phar_tar_flush() 1017 len = -len; in phar_tar_flush() 1021 if (!(len = php_stream_copy_to_mem(stubfile, &user_stub, len, 0)) || !user_stub) { in phar_tar_flush() 1046 len = pos - user_stub + 18; in phar_tar_flush() [all …]
|
/PHP-5.6/ext/soap/tests/ |
H A D | bug73037.phpt | 82 $len = strlen($data); 84 //echo "len=$len\n"; 92 Content-Length: ${len} 120 $len = $pos - $pos0; 121 echo substr($out, $pos0, $len);
|
/PHP-5.6/ext/hash/ |
H A D | hash_joaat.c | 74 joaat_buf(void *buf, size_t len, php_hash_uint32 hval) in joaat_buf() argument 79 for (i = 0; i < len; i++) { in joaat_buf()
|