/PHP-7.4/Zend/ |
H A D | zend_virtual_cwd.c | 518 if (len <= start) { in tsrm_realpath_r() 525 i = len; in tsrm_realpath_r() 531 if (i == len || in tsrm_realpath_r() 581 path[len] = 0; in tsrm_realpath_r() 627 memcpy(tmp, path, len+1); in tsrm_realpath_r() 631 !(IS_UNC_PATH(path, len) && len >= 3 && path[2] != '?') && in tsrm_realpath_r() 825 j = len; in tsrm_realpath_r() 909 memcpy(tmp, path, len+1); in tsrm_realpath_r() 984 j += (len-i); in tsrm_realpath_r() 993 j += (len-i); in tsrm_realpath_r() [all …]
|
H A D | zend_smart_string_public.h | 27 size_t len; member
|
H A D | zend_highlight.c | 56 ZEND_API void zend_html_puts(const char *s, size_t len) in zend_html_puts() argument 58 const unsigned char *ptr = (const unsigned char*)s, *end = ptr + len; in zend_html_puts() 63 LANG_SCNG(output_filter)(&filtered, &filtered_len, ptr, len); in zend_html_puts()
|
/PHP-7.4/ext/standard/tests/general_functions/ |
H A D | ob_get_length_basic.phpt | 17 $len = ob_get_length(); 19 var_dump( $len );
|
/PHP-7.4/ext/ffi/tests/ |
H A D | 200.phpt | 26 $zend->zend_write = function($str, $len) { 29 $ret = $orig_zend_write($str, $len);
|
/PHP-7.4/sapi/phpdbg/ |
H A D | phpdbg_webdata_transfer.c | 22 static int phpdbg_is_auto_global(char *name, int len) { in phpdbg_is_auto_global() argument 24 zend_string *str = zend_string_init(name, len, 0); in phpdbg_is_auto_global() 30 PHPDBG_API void phpdbg_webdata_compress(char **msg, size_t *len) { in phpdbg_webdata_compress() argument 171 *len = ZSTR_LEN(buf.s); in phpdbg_webdata_compress()
|
H A D | phpdbg_wait.h | 27 void phpdbg_webdata_decompress(char *msg, int len);
|
H A D | phpdbg_webdata_transfer.h | 25 PHPDBG_API void phpdbg_webdata_compress(char **msg, size_t *len);
|
H A D | phpdbg_eol.c | 96 void phpdbg_eol_convert(char **str, int *len) in phpdbg_eol_convert() argument 99 int in_len = *len, cursor, i; in phpdbg_eol_convert() 173 *len = cursor; in phpdbg_eol_convert()
|
H A D | phpdbg_lexer.l | 18 #define yyleng LEX(len) 37 LEX(len) = strlen(input); in ZEND_EXTERN_MODULE_GLOBALS()
|
/PHP-7.4/ext/opcache/Optimizer/ |
H A D | block_pass.c | 90 if (b->len == 2 in strip_leading_nops() 99 b->len--; in strip_leading_nops() 107 if (b->len == 0) { in strip_nops() 115 if (b->len == 0) { in strip_nops() 929 len += b->len = 1; in assemble_code_blocks() 943 b->len--; in assemble_code_blocks() 947 b->len--; in assemble_code_blocks() 949 len += b->len; in assemble_code_blocks() 1858 bb->len = 0; in zend_merge_blocks() 1863 prev->len = b->start + b->len - prev->start; in zend_merge_blocks() [all …]
|
/PHP-7.4/ext/intl/locale/ |
H A D | locale_methods.c | 179 size_t len = 0; in getSingletonPos() local 181 if( str && ((len=strlen(str))>0) ){ in getSingletonPos() 183 for( i=0; (size_t)i < len ; i++){ in getSingletonPos() 373 tag_value->len = strlen(tag_value->val); in get_icu_value_internal() 998 size_t len = 0; in get_private_subtags() local 1007 if( singletonPos + 2 == len){ in get_private_subtags() 1023 len = strlen(mod_loc_name); in get_private_subtags() 1591 int len; in PHP_FUNCTION() local 1605 size_t len; in PHP_FUNCTION() local 1609 if(len > ULOC_FULLNAME_CAPACITY) { in PHP_FUNCTION() [all …]
|
/PHP-7.4/ext/standard/ |
H A D | file.c | 637 size_t len; in PHP_FUNCTION() local 1038 if (len <= 0) { in PHP_FUNCTION() 1094 size_t len = 0; in PHP_FUNCTION() local 1146 size_t len; in PHP_FUNCTION() local 1786 zend_long len; in PHP_FUNCTION() local 1797 if (len <= 0) { in PHP_FUNCTION() 1834 len -= inc_len; in php_fgetcsv_lookup_trailing_spaces() 2053 if (len < 0) { in PHP_FUNCTION() 2057 len = -1; in PHP_FUNCTION() 2060 len = -1; in PHP_FUNCTION() [all …]
|
H A D | formatted_print.c | 67 php_sprintf_appendchars(zend_string **buffer, size_t *pos, char *add, size_t len) in php_sprintf_appendchars() argument 69 if ((*pos + len) >= ZSTR_LEN(*buffer)) { in php_sprintf_appendchars() 75 } while ((*pos + len) >= nlen); in php_sprintf_appendchars() 79 memcpy(ZSTR_VAL(*buffer) + (*pos), add, len); in php_sprintf_appendchars() 80 *pos += len; in php_sprintf_appendchars() 88 size_t alignment, size_t len, int neg, int expprec, int always_sign) in php_sprintf_appendstring() argument 95 copy_len = (expprec ? MIN(max_width, len) : len); in php_sprintf_appendstring() 123 len--; in php_sprintf_appendstring() 348 php_sprintf_getnumber(char **buffer, size_t *len) in php_sprintf_getnumber() argument 356 *len -= i; in php_sprintf_getnumber()
|
/PHP-7.4/ext/phar/ |
H A D | tar.c | 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() 1032 if (len < 0) { in phar_tar_flush() 1040 if (len == -1) { in phar_tar_flush() 1043 len = -len; in phar_tar_flush() 1052 len = ZSTR_LEN(str); in phar_tar_flush() 1057 len = 0; in phar_tar_flush() 1061 if (!len || !user_stub) { in phar_tar_flush() 1086 len = pos - user_stub + 18; in phar_tar_flush() [all …]
|
/PHP-7.4/sapi/fpm/fpm/ |
H A D | fpm_main.c | 326 int len; in sapi_cgi_send_headers() local 336 if (len > SAPI_CGI_MAX_HEADER_LENGTH) { in sapi_cgi_send_headers() 337 len = SAPI_CGI_MAX_HEADER_LENGTH; in sapi_cgi_send_headers() 348 len = slprintf(buf, sizeof(buf), "Status:%s", s); in sapi_cgi_send_headers() 380 PHPWRITE_H(buf, len); in sapi_cgi_send_headers() 1111 int len = script_path_translated_len; in init_request_info() local 1134 int slen = len - ptlen; in init_request_info() 1611 int len = strlen(php_optarg); in main() local 1623 ini_entries_len += len - (val - php_optarg); in main() 1630 ini_entries_len += len + sizeof("\n\0") - 2; in main() [all …]
|
H A D | fpm_php.c | 149 int len; 151 len = sprintf(max_workers, "%u", (unsigned int) wp->config->pm_max_children); 153 fcgi_set_mgmt_var("FCGI_MAX_CONNS", sizeof("FCGI_MAX_CONNS")-1, max_workers, len); 154 fcgi_set_mgmt_var("FCGI_MAX_REQS", sizeof("FCGI_MAX_REQS")-1, max_workers, len);
|
/PHP-7.4/main/streams/ |
H A D | streams.c | 820 size_t len; in _php_stream_puts() local 1482 len += ret; in _php_stream_copy_to_mem() 1485 if (len) { in _php_stream_copy_to_mem() 1517 len += ret; in _php_stream_copy_to_mem() 1526 if (len) { in _php_stream_copy_to_mem() 1546 if (!len) { in _php_stream_copy_to_stream_ex() 1547 len = &dummy; in _php_stream_copy_to_stream_ex() 1551 *len = 0; in _php_stream_copy_to_stream_ex() 1565 *len = 0; in _php_stream_copy_to_stream_ex() 1668 size_t len; in _php_stream_copy_to_stream() local [all …]
|
/PHP-7.4/ext/hash/ |
H A D | hash_gost.c | 254 PHP_HASH_API void PHP_GOSTUpdate(PHP_GOST_CTX *context, const unsigned char *input, size_t len) in PHP_GOSTUpdate() argument 256 if ((MAX32 - context->count[0]) < (len * 8)) { in PHP_GOSTUpdate() 259 context->count[0] = (len * 8) - context->count[0]; in PHP_GOSTUpdate() 261 context->count[0] += len * 8; in PHP_GOSTUpdate() 264 if (context->length + len < 32) { in PHP_GOSTUpdate() 265 memcpy(&context->buffer[context->length], input, len); in PHP_GOSTUpdate() 266 context->length += (unsigned char)len; in PHP_GOSTUpdate() 268 size_t i = 0, r = (context->length + len) % 32; in PHP_GOSTUpdate() 276 for (; i + 32 <= len; i += 32) { in PHP_GOSTUpdate()
|
/PHP-7.4/ext/gd/libgd/ |
H A D | gdtest.c | 16 static int freadWrapper (void *context, char *buf, int len); 17 static int fwriteWrapper (void *context, const char *buffer, int len); 399 freadWrapper (void *context, char *buf, int len) in freadWrapper() argument 401 int got = fread (buf, 1, len, (FILE *) context); in freadWrapper() 406 fwriteWrapper (void *context, const char *buffer, int len) in fwriteWrapper() argument 408 return fwrite (buffer, 1, len, (FILE *) context); in fwriteWrapper()
|
/PHP-7.4/ext/date/lib/ |
H A D | timelib.c | 234 size_t len; in timelib_strcasecmp() local 243 len = MIN(len1, len2); in timelib_strcasecmp() 244 while (len--) { in timelib_strcasecmp() 257 size_t len; in timelib_strncasecmp() local 265 len = MIN(length, MIN(len1, len2)); in timelib_strncasecmp() 266 while (len--) { in timelib_strncasecmp()
|
/PHP-7.4/ext/fileinfo/libmagic/ |
H A D | ascmagic.c | 113 size_t mlen, i, len; in file_ascmagic_with_encoding() local 212 len = file_printedlen(ms); in file_ascmagic_with_encoding() 215 if (len) { in file_ascmagic_with_encoding() 236 if (len) { in file_ascmagic_with_encoding() 341 encode_utf8(unsigned char *buf, size_t len, unichar *ubuf, size_t ulen) in encode_utf8() argument 344 unsigned char *end = buf + len; in encode_utf8()
|
/PHP-7.4/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() 787 unsigned int len = 0; in mysqlnd_cset_escape_quotes() local 790 if (cset->char_maxlen > 1 && (len = cset->mb_valid(escapestr, end))) { in mysqlnd_cset_escape_quotes() 793 if ((newstr + len) > newstr_e) { in mysqlnd_cset_escape_quotes() 798 while (len--) { in mysqlnd_cset_escape_quotes() 843 unsigned int len = 0; in mysqlnd_cset_escape_slashes() local 848 if ((newstr + len) > newstr_e) { in mysqlnd_cset_escape_slashes() [all …]
|
/PHP-7.4/ext/pdo/tests/ |
H A D | pdo_033.phpt | 22 $len = strlen($unquoted); 26 $db->query("CREATE TABLE test (t char($len))");
|
/PHP-7.4/win32/ |
H A D | ioutil.c | 490 DWORD tmp_len = (DWORD)len; in php_win32_ioutil_getcwd_w() 499 } else if (tmp_len > len) { in php_win32_ioutil_getcwd_w() 529 if (len == 0) { in php_win32_ioutil_dirname() 547 if (2 == len) { in php_win32_ioutil_dirname() 549 return len; in php_win32_ioutil_dirname() 606 size_t ret_len = len; in php_win32_ioutil_normalize_path_w() 608 if (len >= MAXPATHLEN) { in php_win32_ioutil_normalize_path_w() 626 *new_len = len; in php_win32_ioutil_normalize_path_w() 630 if (ret_len != len) { in php_win32_ioutil_normalize_path_w() 631 if (ret_len > len) { in php_win32_ioutil_normalize_path_w() [all …]
|