/PHP-8.0/ext/standard/tests/file/ |
H A D | fwrite_error.phpt | 16 $len = 0; 17 var_dump( fwrite($file_handle, $data, $len) ); 18 $len = -10; 19 var_dump( fwrite($file_handle, $data, $len) );
|
/PHP-8.0/ext/standard/tests/strings/ |
H A D | strspn_basic.phpt | 16 $len = 12; 19 var_dump( strspn($str, $mask, $start, $len) ); 21 // Calling strspn() with three arguments and default len argument
|
H A D | strcspn_variation9.phpt | 2 Test strcspn() function : usage variations - different strings with 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 different strings as str argument and default start and len args 16 echo "*** Testing strcspn() : with different str and default start and len args ***\n"; 56 *** Testing strcspn() : with different str and default start and len args ***
|
H A D | strspn_variation9.phpt | 2 Test strspn() function : usage variations - different strings with 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 different strings as str argument and default start and len args 16 echo "*** Testing strspn() : with different str and default start and len args ***\n"; 56 *** Testing strspn() : with different str and default start and len args ***
|
/PHP-8.0/ext/fileinfo/libmagic/ |
H A D | cdf.c | 165 (void)memcpy(&(a), &buf[len], sizeof(a)), len += sizeof(a) 167 (void)memcpy((a), &buf[len], sizeof(a)), len += sizeof(a) 349 if (FINFO_READ_FUNC(info->i_fd, buf, len) != (ssize_t)len) in cdf_read() 426 return len; in cdf_read_short_sector() 1267 int len = 0; in cdf_print_elapsed_time() local 1280 len += snprintf(buf + len, bufsiz - len, "%dd+", days); in cdf_print_elapsed_time() 1286 len += snprintf(buf + len, bufsiz - len, "%.2d:", hours); in cdf_print_elapsed_time() 1291 len += snprintf(buf + len, bufsiz - len, "%.2d:", mins); in cdf_print_elapsed_time() 1293 return len; in cdf_print_elapsed_time() 1295 len += snprintf(buf + len, bufsiz - len, "%.2d", secs); in cdf_print_elapsed_time() [all …]
|
/PHP-8.0/Zend/ |
H A D | zend_ini_scanner.l | 140 #define zend_ini_copy_value(retval, str, len) \ argument 141 ZVAL_NEW_STR(retval, zend_string_init(str, len, ZEND_SYSTEM_INI)) 147 zend_ini_copy_typed_value(ini_lval, type, str, len); \ 149 zend_ini_copy_value(ini_lval, str, len); \ 187 if (convert_to_number(retval, str, len) == SUCCESS) { in zend_ini_copy_typed_value() 192 zend_ini_copy_value(retval, str, len); in zend_ini_copy_typed_value() 211 static void yy_scan_buffer(char *str, unsigned int len) in yy_scan_buffer() argument 215 YYLIMIT = YYCURSOR + len; in yy_scan_buffer() 294 int len = (int)strlen(str); in zend_ini_prepare_string_for_scanning() local 300 yy_scan_buffer(str, len); in zend_ini_prepare_string_for_scanning() [all …]
|
H A D | zend_hash.h | 413 zv = zend_hash_str_find(ht, str, len); in zend_hash_str_find_ind() 423 zv = zend_hash_str_find(ht, str, len); in zend_hash_str_exists_ind() 539 if (ZEND_HANDLE_NUMERIC_STR(str, len, idx)) { in zend_symtable_str_update() 551 if (ZEND_HANDLE_NUMERIC_STR(str, len, idx)) { in zend_symtable_str_update_ind() 566 return zend_hash_str_del(ht, str, len); in zend_symtable_str_del() 578 return zend_hash_str_del_ind(ht, str, len); in zend_symtable_str_del_ind() 590 return zend_hash_str_find(ht, str, len); in zend_symtable_str_find() 602 return zend_hash_str_exists(ht, str, len); in zend_symtable_str_exists() 639 zv = zend_hash_str_add(ht, str, len, &tmp); in zend_hash_str_add_ptr() 859 zv = zend_hash_str_find(ht, str, len); in zend_hash_str_find_ptr() [all …]
|
/PHP-8.0/sapi/phpdbg/ |
H A D | phpdbg_list.c | 82 phpdbg_list_function_byname(param->str, param->len); in PHPDBG_LIST() 113 if (phpdbg_safe_class_lookup(param->str, param->len, &ce) == SUCCESS) { in PHPDBG_LIST() 190 void phpdbg_list_function_byname(const char *str, size_t len) /* {{{ */ in phpdbg_list_function_byname() argument 195 size_t func_name_len = len; in phpdbg_list_function_byname() 238 size_t len; in phpdbg_compile_file() local 242 if (zend_stream_fixup(file, &bufptr, &len) == FAILURE) { in phpdbg_compile_file() 251 data.buf = estrndup(bufptr, len); in phpdbg_compile_file() 252 data.len = len; in phpdbg_compile_file() 260 data.buf[data.len] = '\0'; in phpdbg_compile_file() 262 *(dataptr = emalloc(sizeof(phpdbg_file_source) + sizeof(uint32_t) * data.len)) = data; in phpdbg_compile_file() [all …]
|
H A D | phpdbg_print.c | 151 if (phpdbg_safe_class_lookup(param->str, param->len, &ce) == SUCCESS) { in PHPDBG_PRINT() 214 size_t func_name_len = param->len; in PHPDBG_PRINT() 265 void phpdbg_print_opcodes_function(const char *function, size_t len) { in phpdbg_print_opcodes_function() argument 266 zend_function *func = zend_hash_str_find_ptr(EG(function_table), function, len); in phpdbg_print_opcodes_function() 272 ….function_name->len == len && !zend_binary_strcasecmp(function, len, func->op_array.function_name-… in phpdbg_print_opcodes_function() 273 phpdbg_print_opcodes_function(rt_name->val, rt_name->len); in phpdbg_print_opcodes_function() 308 …if (ce->name->len == strlen(class) && !zend_binary_strcasecmp(class, strlen(class), ce->name->val,… in phpdbg_print_opcodes_method() 366 …if (ce->name->len == strlen(class) && !zend_binary_strcasecmp(class, strlen(class), ce->name->val,… in phpdbg_print_opcodes_class()
|
/PHP-8.0/main/ |
H A D | snprintf.c | 351 *len = buf_end - p; in ap_php_conv_10() 390 *len = strlen(p); in php_conv_fp() 391 memcpy(buf, p, *len + 1); in php_conv_fp() 458 *len = s - buf; in php_conv_fp() 488 *len = buf_end - p; in ap_php_conv_p2() 1203 if (len == 0) { in strx_printv() 1207 od.buf_end = &buf[len-1]; in strx_printv() 1232 if ((size_t)cc >= len) { in ap_php_slprintf() 1233 cc = (int)len -1; in ap_php_slprintf() 1245 if ((size_t)cc >= len) { in ap_php_vslprintf() [all …]
|
/PHP-8.0/ext/standard/tests/ |
H A D | bug71827.phpt | 5 $line = str_repeat(' ',20); $value ='03'; $pos=0; $len='2'; 6 $line = substr_replace($line,$value,$pos,$len);
|
/PHP-8.0/sapi/litespeed/ |
H A D | lsapi_main.c | 380 int len; in sapi_lsapi_send_headers_like_cgi() local 513 ++len; in sapi_lsapi_log_message() 649 int len; in lsapi_execute_script() local 655 if ( len > 45 ) in lsapi_execute_script() 656 len = len - 45; in lsapi_execute_script() 658 len = 0; in lsapi_execute_script() 847 --len; in pathlen_without_trailing_slash() 849 return len; in pathlen_without_trailing_slash() 1691 int len; in PHP_FUNCTION() local 1708 if (p && len > 0 && len < LSAPI_RESP_HTTP_HEADER_MAX) { in PHP_FUNCTION() [all …]
|
/PHP-8.0/ext/mbstring/libmbfl/mbfl/ |
H A D | mbfilter.c | 578 len = 0; in mbfl_strlen() 580 len = string->len; in mbfl_strlen() 582 len = string->len/2; in mbfl_strlen() 584 len = string->len/4; in mbfl_strlen() 596 len++; in mbfl_strlen() 620 return len; in mbfl_strlen() 772 if (haystack_u8->len < needle_u8->len) { in mbfl_strpos() 936 len = string->len; in mbfl_substr() 963 end = len; in mbfl_substr() 1394 len = 0; in mbfl_strwidth() [all …]
|
/PHP-8.0/ext/pcre/pcre2lib/ |
H A D | pcre2_extuni.c | 100 int len = 1; in PRIV() local 101 if (!utf) c = *eptr; else { GETCHARLEN(c, eptr, len); } in PRIV() 139 eptr += len; in PRIV()
|
/PHP-8.0/ext/pgsql/tests/ |
H A D | 11pg_meta_data.phpt | 25 ["len"]=> 42 ["len"]=> 59 ["len"]=>
|
/PHP-8.0/ext/mbstring/tests/ |
H A D | mb_str_split_jp.phpt | 14 $len = 2; 33 for($i = 1; $i <= $len; ++$i){ 34 $ceil = ceil($len / $i); 43 for($i = 0; $i < $len; ++$i){ 53 $array = mb_str_split($enc, $len, "ISO-2022-JP");
|
H A D | mb_str_split_ru.phpt | 14 $len = 12; 33 for($i = 1; $i <= $len; ++$i){ 34 $ceil = ceil($len / $i); 43 for($i = 0; $i < $len; ++$i){ 53 $array = mb_str_split($enc, $len, "EUC-JP");
|
/PHP-8.0/ext/filter/ |
H A D | logical_filters.c | 202 size_t len; in php_filter_int() local 212 len = Z_STRLEN_P(value); in php_filter_int() 214 if (len == 0) { in php_filter_int() 233 p++; len--; in php_filter_int() 235 p++; len--; in php_filter_int() 236 if (len == 0) { in php_filter_int() 246 } else if (len != 0) { in php_filter_int() 276 switch (len) { in php_filter_boolean() 336 size_t len; in php_filter_float() local 360 end = str + len; in php_filter_float() [all …]
|
/PHP-8.0/ext/mbstring/ |
H A D | mbstring.c | 1563 size_t len; in PHP_FUNCTION() local 2221 len = string.len; in PHP_FUNCTION() 2237 if (len < 0) { in PHP_FUNCTION() 2238 len = (string.len - from) + len; in PHP_FUNCTION() 2239 if (len < 0) { in PHP_FUNCTION() 2240 len = 0; in PHP_FUNCTION() 2308 marker.len = 0; in PHP_FUNCTION() 3907 …if (illegalchars == 0 && string.len == result.len && memcmp(string.val, result.val, string.len) ==… in php_mb_check_encoding_impl() 4342 size_t len = 0; in php_mb_stripos() local 4344 haystack.len = len; in php_mb_stripos() [all …]
|
/PHP-8.0/Zend/tests/ |
H A D | bug26696.phpt | 6 $len = strlen($str); 7 for ($i = 0; $i < $len; $i++) {
|
/PHP-8.0/ext/hash/ |
H A D | hash_snefru.c | 138 PHP_HASH_API void PHP_SNEFRUUpdate(PHP_SNEFRU_CTX *context, const unsigned char *input, size_t len) in PHP_SNEFRUUpdate() argument 140 if ((MAX32 - context->count[1]) < (len * 8)) { in PHP_SNEFRUUpdate() 143 context->count[1] = ((uint32_t) len * 8) - context->count[1]; in PHP_SNEFRUUpdate() 145 context->count[1] += (uint32_t) len * 8; in PHP_SNEFRUUpdate() 148 if (context->length + len < 32) { in PHP_SNEFRUUpdate() 149 memcpy(&context->buffer[context->length], input, len); in PHP_SNEFRUUpdate() 150 context->length += (unsigned char)len; in PHP_SNEFRUUpdate() 152 size_t i = 0, r = (context->length + len) % 32; in PHP_SNEFRUUpdate() 160 for (; i + 32 <= len; i += 32) { in PHP_SNEFRUUpdate()
|
H A D | hash_sha3.c | 160 size_t len = block_size - ctx->pos; in PHP_SHA3_Update() local 162 if (len > count) { in PHP_SHA3_Update() 163 len = count; in PHP_SHA3_Update() 166 count -= len; in PHP_SHA3_Update() 168 while (len-- > 0) { in PHP_SHA3_Update() 183 size_t len = digest_size; in PHP_SHA3_Final() local 192 int bs = (len < block_size) ? len : block_size; in PHP_SHA3_Final() 195 len -= bs; in PHP_SHA3_Final() 196 if (!len) break; in PHP_SHA3_Final()
|
/PHP-8.0/ext/standard/ |
H A D | base64.h | 71 static inline zend_string *php_base64_decode(const unsigned char *str, size_t len) { in php_base64_decode() argument 72 return php_base64_decode_ex(str, len, 0); in php_base64_decode()
|
/PHP-8.0/sapi/cgi/ |
H A D | cgi_main.c | 380 int len; in sapi_cgi_send_headers() local 598 size_t len; in _sapi_cgi_putenv() local 627 len = slprintf(buf, len - 1, "%s=%s", name, value); in _sapi_cgi_putenv() 633 len = slprintf(buf, len - 1, "%s=", name); in _sapi_cgi_putenv() 1672 while (len != 0 && (h->header[len-1] == ' ' || h->header[len-1] == '\t')) { 1673 len--; 1675 if (len) { 1678 s[len] = 0; 1720 size_t len; local 2431 len = 0; [all …]
|
/PHP-8.0/tests/lang/ |
H A D | bug26696.phpt | 7 $len = strlen($str); 8 for ($i = 0; $i < $len; $i++) {
|