Lines Matching refs:PCRE_G

139 	PCRE_G(error_code) = preg_code;  in pcre_handle_exec_error()
309 pcre2_set_match_limit(mctx, (uint32_t)PCRE_G(backtrack_limit)); in PHP_INI_MH()
319 pcre2_set_depth_limit(mctx, (uint32_t)PCRE_G(recursion_limit)); in PHP_INI_MH()
329 if (PCRE_G(jit) && jit_stack) { in PHP_INI_MH()
410 php_pcre_init_pcre2(PCRE_G(jit)); in PHP_MINIT_FUNCTION()
467 php_pcre_init_pcre2(PCRE_G(jit)); in PHP_RINIT_FUNCTION()
478 if (PCRE_G(per_request_cache)) { in PHP_RINIT_FUNCTION()
479 zend_hash_init(&PCRE_G(pcre_cache), 0, NULL, php_efree_pcre_cache, 0); in PHP_RINIT_FUNCTION()
488 if (PCRE_G(per_request_cache)) { in PHP_RSHUTDOWN_FUNCTION()
489 zend_hash_destroy(&PCRE_G(pcre_cache)); in PHP_RSHUTDOWN_FUNCTION()
492 zval_ptr_dtor(&PCRE_G(unmatched_null_pair)); in PHP_RSHUTDOWN_FUNCTION()
493 zval_ptr_dtor(&PCRE_G(unmatched_empty_pair)); in PHP_RSHUTDOWN_FUNCTION()
494 ZVAL_UNDEF(&PCRE_G(unmatched_null_pair)); in PHP_RSHUTDOWN_FUNCTION()
495 ZVAL_UNDEF(&PCRE_G(unmatched_empty_pair)); in PHP_RSHUTDOWN_FUNCTION()
613 zv = zend_hash_find(&PCRE_G(pcre_cache), key); in pcre_get_compiled_regex_cache_ex()
808 if (PCRE_G(jit)) { in pcre_get_compiled_regex_cache_ex()
821 PCRE_G(jit) = 0; in pcre_get_compiled_regex_cache_ex()
836 if (zend_hash_num_elements(&PCRE_G(pcre_cache)) == PCRE_CACHE_SIZE) { in pcre_get_compiled_regex_cache_ex()
838 zend_hash_apply_with_argument(&PCRE_G(pcre_cache), pcre_clean_cache, &num_clean); in pcre_get_compiled_regex_cache_ex()
876 if (!(GC_FLAGS(key) & IS_STR_PERMANENT) && !PCRE_G(per_request_cache)) { in pcre_get_compiled_regex_cache_ex()
880 ret = zend_hash_add_new_mem(&PCRE_G(pcre_cache), str, &new_entry, sizeof(pcre_cache_entry)); in pcre_get_compiled_regex_cache_ex()
883 ret = zend_hash_add_new_mem(&PCRE_G(pcre_cache), key, &new_entry, sizeof(pcre_cache_entry)); in pcre_get_compiled_regex_cache_ex()
973 ZVAL_ARR(&PCRE_G(unmatched_null_pair), zend_new_pair(&val1, &val2)); in init_unmatched_null_pair()
980 ZVAL_ARR(&PCRE_G(unmatched_empty_pair), zend_new_pair(&val1, &val2)); in init_unmatched_empty_pair()
1032 if (Z_ISUNDEF(PCRE_G(unmatched_null_pair))) { in add_offset_pair()
1035 ZVAL_COPY(&match_pair, &PCRE_G(unmatched_null_pair)); in add_offset_pair()
1037 if (Z_ISUNDEF(PCRE_G(unmatched_empty_pair))) { in add_offset_pair()
1040 ZVAL_COPY(&match_pair, &PCRE_G(unmatched_empty_pair)); in add_offset_pair()
1270 PCRE_G(error_code) = PHP_PCRE_NO_ERROR; in php_pcre_match_impl()
1277 PCRE_G(error_code) = PHP_PCRE_INTERNAL_ERROR; in php_pcre_match_impl()
1479 if (PCRE_G(error_code) == PHP_PCRE_NO_ERROR) { in php_pcre_match_impl()
1647 PCRE_G(error_code) = PHP_PCRE_NO_ERROR; in php_pcre_replace_impl()
1654 PCRE_G(error_code) = PHP_PCRE_INTERNAL_ERROR; in php_pcre_replace_impl()
1687 PCRE_G(error_code) = PHP_PCRE_INTERNAL_ERROR; in php_pcre_replace_impl()
1897 PCRE_G(error_code) = PHP_PCRE_NO_ERROR; in php_pcre_replace_func_impl()
1906 PCRE_G(error_code) = PHP_PCRE_INTERNAL_ERROR; in php_pcre_replace_func_impl()
1941 PCRE_G(error_code) = PHP_PCRE_INTERNAL_ERROR; in php_pcre_replace_func_impl()
2563 PCRE_G(error_code) = PHP_PCRE_NO_ERROR; in php_pcre_split_impl()
2578 PCRE_G(error_code) = PHP_PCRE_INTERNAL_ERROR; in php_pcre_split_impl()
2608 PCRE_G(error_code) = PHP_PCRE_INTERNAL_ERROR; in php_pcre_split_impl()
2702 if (PCRE_G(error_code) != PHP_PCRE_NO_ERROR) { in php_pcre_split_impl()
2911 PCRE_G(error_code) = PHP_PCRE_NO_ERROR; in php_pcre_grep_impl()
2918 PCRE_G(error_code) = PHP_PCRE_INTERNAL_ERROR; in php_pcre_grep_impl()
2987 RETURN_LONG(PCRE_G(error_code)); in PHP_FUNCTION()