Lines Matching refs:ZSTR_LEN
348 (ZSTR_LEN(BG(locale_string)) != 1 && ZSTR_VAL(BG(locale_string))[0] != 'C')) { in pcre_get_compiled_regex_cache_ex()
349 key = zend_string_alloc(ZSTR_LEN(regex) + ZSTR_LEN(BG(locale_string)) + 1, 0); in pcre_get_compiled_regex_cache_ex()
350 memcpy(ZSTR_VAL(key), ZSTR_VAL(BG(locale_string)), ZSTR_LEN(BG(locale_string)) + 1); in pcre_get_compiled_regex_cache_ex()
351 memcpy(ZSTR_VAL(key) + ZSTR_LEN(BG(locale_string)), ZSTR_VAL(regex), ZSTR_LEN(regex) + 1); in pcre_get_compiled_regex_cache_ex()
382 p < ZSTR_VAL(regex) + ZSTR_LEN(regex) ? "Null byte in regex" : "Empty regular expression"); in pcre_get_compiled_regex_cache_ex()
441 if (pp < ZSTR_VAL(regex) + ZSTR_LEN(regex)) { in pcre_get_compiled_regex_cache_ex()
460 while (pp < ZSTR_VAL(regex) + ZSTR_LEN(regex)) { in pcre_get_compiled_regex_cache_ex()
625 ZSTR_VAL(key), ZSTR_LEN(key), &new_entry, sizeof(pcre_cache_entry)); in pcre_get_compiled_regex_cache_ex()
732 if (ZEND_SIZE_T_INT_OVFL(ZSTR_LEN(subject))) { in php_do_pcre_match()
743 php_pcre_match_impl(pce, ZSTR_VAL(subject), (int)ZSTR_LEN(subject), return_value, subpats, in php_do_pcre_match()
1402 replace_end = walk + ZSTR_LEN(replace_str); in php_pcre_replace_impl()
1441 memcpy(&ZSTR_VAL(result)[result_len], ZSTR_VAL(replace_str), ZSTR_LEN(replace_str)+1); in php_pcre_replace_impl()
1442 result_len += ZSTR_LEN(replace_str); in php_pcre_replace_impl()
1516 ZSTR_LEN(result) = result_len; in php_pcre_replace_impl()
1662 new_len = zend_safe_address_guarded(1, ZSTR_LEN(eval_result), new_len); in php_pcre_replace_func_impl()
1679 memcpy(ZSTR_VAL(result) + result_len, ZSTR_VAL(eval_result), ZSTR_LEN(eval_result)); in php_pcre_replace_func_impl()
1680 result_len += (int)ZSTR_LEN(eval_result); in php_pcre_replace_func_impl()
1731 ZSTR_LEN(result) = result_len; in php_pcre_replace_func_impl()
1772 …result = php_pcre_replace_func_impl(pce, subject_str, ZSTR_VAL(subject_str), ZSTR_LEN(subject_str)… in php_pcre_replace_func()
1817 (int)ZSTR_LEN(subject_str), in php_pcre_replace_array()
1843 (int)ZSTR_LEN(subject_str), in php_pcre_replace_array()
1868 if (UNEXPECTED(ZEND_SIZE_T_INT_OVFL(ZSTR_LEN(subject_str)))) { in php_replace_in_subject()
1876 (int)ZSTR_LEN(subject_str), in php_replace_in_subject()
1900 if (UNEXPECTED(ZEND_SIZE_T_INT_OVFL(ZSTR_LEN(subject_str)))) { in php_replace_in_subject_func()
2219 if (ZEND_SIZE_T_INT_OVFL(ZSTR_LEN(subject))) { in PHP_FUNCTION()
2303 ZSTR_LEN(subject_str), start_offset, in php_pcre_split_impl()
2308 ZSTR_LEN(subject_str), start_offset, in php_pcre_split_impl()
2371 if (g_notempty != 0 && start_offset < ZSTR_LEN(subject_str)) { in php_pcre_split_impl()
2386 if (!no_empty || start_offset < ZSTR_LEN(subject_str)) { in php_pcre_split_impl()
2389 …add_offset_pair(return_value, &ZSTR_VAL(subject_str)[start_offset], ZSTR_LEN(subject_str) - start_… in php_pcre_split_impl()
2395 ZVAL_STRINGL(&tmp, last_match, ZSTR_VAL(subject_str) + ZSTR_LEN(subject_str) - last_match); in php_pcre_split_impl()
2434 if (ZSTR_LEN(str) == 0) { in PHP_FUNCTION()
2439 in_str_end = in_str + ZSTR_LEN(str); in PHP_FUNCTION()
2493 out_str = zend_string_safe_alloc(1, ZSTR_LEN(str), extra_len, 0); in PHP_FUNCTION()
2627 (int)ZSTR_LEN(subject_str), 0, in php_pcre_grep_impl()
2632 (int)ZSTR_LEN(subject_str), 0, in php_pcre_grep_impl()