Home
last modified time | relevance | path

Searched refs:use_heap (Results 1 – 25 of 26) sorted by relevance

12

/PHP-7.0/TSRM/
H A Dtsrm_config_common.h58 # define tsrm_do_alloca_ex(size, limit, use_heap) \ argument
59 ((use_heap = ((size) > (limit))) ? malloc(size) : alloca(size))
60 # define tsrm_do_alloca(size, use_heap) \ argument
61 tsrm_do_alloca_ex(size, TSRM_ALLOCA_MAX_SIZE, use_heap)
62 # define tsrm_free_alloca(p, use_heap) \ argument
63 do { if (use_heap) free(p); } while (0)
66 # define tsrm_do_alloca(p, use_heap) malloc(p) argument
67 # define tsrm_free_alloca(p, use_heap) free(p) argument
/PHP-7.0/Zend/
H A Dzend_string.h50 #define STR_ALLOCA_ALLOC(str, _len, use_heap) ZSTR_ALLOCA_ALLOC(str, _len, use_heap) in END_EXTERN_C() argument
51 #define STR_ALLOCA_INIT(str, s, len, use_heap) ZSTR_ALLOCA_INIT(str, s, len, use_heap) in END_EXTERN_C() argument
52 #define STR_ALLOCA_FREE(str, use_heap) ZSTR_ALLOCA_FREE(str, use_heap) in END_EXTERN_C() argument
64 #define ZSTR_ALLOCA_ALLOC(str, _len, use_heap) do { \ in END_EXTERN_C() argument
65 …(str) = (zend_string *)do_alloca(ZEND_MM_ALIGNED_SIZE_EX(_ZSTR_STRUCT_SIZE(_len), 8), (use_heap));… in END_EXTERN_C()
72 #define ZSTR_ALLOCA_INIT(str, s, len, use_heap) do { \ argument
73 ZSTR_ALLOCA_ALLOC(str, len, use_heap); \
78 #define ZSTR_ALLOCA_FREE(str, use_heap) free_alloca(str, use_heap) argument
H A Dzend_portability.h356 # define do_alloca_ex(size, limit, use_heap) \ argument
357 ((use_heap = (UNEXPECTED((size) > (limit)))) ? emalloc(size) : alloca(size))
358 # define do_alloca(size, use_heap) \ argument
359 do_alloca_ex(size, ZEND_ALLOCA_MAX_SIZE, use_heap)
360 # define free_alloca(p, use_heap) \ argument
361 do { if (UNEXPECTED(use_heap)) efree(p); } while (0)
365 # define do_alloca(p, use_heap) emalloc(p) argument
366 # define free_alloca(p, use_heap) efree(p) argument
H A Dzend_constants.c258 ALLOCA_FLAG(use_heap) in zend_get_constant_str()
261 char *lcname = do_alloca(name_len + 1, use_heap); in zend_get_constant_str()
270 free_alloca(lcname, use_heap); in zend_get_constant_str()
279 ALLOCA_FLAG(use_heap) in zend_get_constant()
282 char *lcname = do_alloca(ZSTR_LEN(name) + 1, use_heap); in zend_get_constant()
291 free_alloca(lcname, use_heap); in zend_get_constant()
383 ALLOCA_FLAG(use_heap) in zend_get_constant_ex()
386 lcname = do_alloca(lcname_len + 1, use_heap); in zend_get_constant_ex()
402 free_alloca(lcname, use_heap); in zend_get_constant_ex()
H A Dzend_virtual_cwd.c802 ALLOCA_FLAG(use_heap) in tsrm_realpath_r()
1061 free_alloca(tmp, use_heap); in tsrm_realpath_r()
1070 free_alloca(tmp, use_heap); in tsrm_realpath_r()
1109 free_alloca(tmp, use_heap); in tsrm_realpath_r()
1116 free_alloca(tmp, use_heap); in tsrm_realpath_r()
1121 free_alloca(tmp, use_heap); in tsrm_realpath_r()
1160 free_alloca(tmp, use_heap); in tsrm_realpath_r()
1175 free_alloca(tmp, use_heap); in tsrm_realpath_r()
1188 free_alloca(tmp, use_heap); in tsrm_realpath_r()
1411 ALLOCA_FLAG(use_heap) in virtual_chdir_file()
[all …]
H A Dzend_bitset.h46 #define ZEND_BITSET_ALLOCA(n, use_heap) \ argument
47 (zend_bitset)do_alloca((n) * ZEND_BITSET_ELM_SIZE, use_heap)
H A Dzend_object_handlers.c1143 ALLOCA_FLAG(use_heap); in zend_std_get_method()
1148 use_heap = 0; in zend_std_get_method()
1151 ZSTR_ALLOCA_ALLOC(lc_method_name, ZSTR_LEN(method_name), use_heap); in zend_std_get_method()
1157 ZSTR_ALLOCA_FREE(lc_method_name, use_heap); in zend_std_get_method()
1216 ZSTR_ALLOCA_FREE(lc_method_name, use_heap); in zend_std_get_method()
H A Dzend_API.c2833 ALLOCA_FLAG(use_heap); in zend_is_callable_check_class()
2835 ZSTR_ALLOCA_ALLOC(lcname, name_len, use_heap); in zend_is_callable_check_class()
2906 ZSTR_ALLOCA_FREE(lcname, use_heap); in zend_is_callable_check_class()
2922 ALLOCA_FLAG(use_heap) in zend_is_callable_check_func()
2936 ZSTR_ALLOCA_INIT(lmname, Z_STRVAL_P(callable) + 1, Z_STRLEN_P(callable) - 1, use_heap); in zend_is_callable_check_func()
2944 ZSTR_ALLOCA_FREE(lmname, use_heap); in zend_is_callable_check_func()
2950 ZSTR_ALLOCA_INIT(lmname, Z_STRVAL_P(callable), Z_STRLEN_P(callable), use_heap); in zend_is_callable_check_func()
2956 ZSTR_ALLOCA_FREE(lmname, use_heap); in zend_is_callable_check_func()
2962 ZSTR_ALLOCA_FREE(lmname, use_heap); in zend_is_callable_check_func()
H A Dzend_execute.c624 ALLOCA_FLAG(use_heap); in zend_verify_internal_arg_class_kind()
626 ZSTR_ALLOCA_INIT(key, cur_arg_info->class_name, strlen(cur_arg_info->class_name), use_heap); in zend_verify_internal_arg_class_kind()
628 ZSTR_ALLOCA_FREE(key, use_heap); in zend_verify_internal_arg_class_kind()
/PHP-7.0/ext/intl/collator/
H A Dcollator_is_numeric.c23 #define ALLOCA_FLAG(use_heap) argument
39 ALLOCA_FLAG(use_heap); in collator_u_strtod()
90 numbuf = (char *) _do_alloca(length + 1, use_heap); in collator_u_strtod()
103 _free_alloca(numbuf, use_heap); in collator_u_strtod()
/PHP-7.0/ext/standard/
H A Dbrowscap.c160 ALLOCA_FLAG(use_heap); in browscap_convert_pattern()
165 lc_pattern = do_alloca(ZSTR_LEN(pattern) + 1, use_heap); in browscap_convert_pattern()
215 free_alloca(lc_pattern, use_heap); in browscap_convert_pattern()
246 ALLOCA_FLAG(use_heap); in browscap_intern_str_ci()
248 ZSTR_ALLOCA_ALLOC(lcname, ZSTR_LEN(str), use_heap); in browscap_intern_str_ci()
259 ZSTR_ALLOCA_FREE(lcname, use_heap); in browscap_intern_str_ci()
554 ALLOCA_FLAG(use_heap); in browser_reg_compare()
588 ZSTR_ALLOCA_FREE(pattern_lc, use_heap); in browser_reg_compare()
598 ZSTR_ALLOCA_FREE(pattern_lc, use_heap); in browser_reg_compare()
605 ZSTR_ALLOCA_FREE(pattern_lc, use_heap); in browser_reg_compare()
[all …]
H A Dvar_unserializer.c251 ALLOCA_FLAG(use_heap) in unserialize_allowed_class()
260 ZSTR_ALLOCA_ALLOC(lcname, ZSTR_LEN(class_name), use_heap); in unserialize_allowed_class()
263 ZSTR_ALLOCA_FREE(lcname, use_heap); in unserialize_allowed_class()
H A Dstring.c2093 ALLOCA_FLAG(use_heap);
2105 ZSTR_ALLOCA_FREE(ord_needle, use_heap);
2113 ZSTR_ALLOCA_FREE(ord_needle, use_heap);
2122 ZSTR_ALLOCA_FREE(ord_needle, use_heap);
2131 ZSTR_ALLOCA_FREE(ord_needle, use_heap);
2141 ZSTR_ALLOCA_FREE(ord_needle, use_heap);
2146 ZSTR_ALLOCA_FREE(ord_needle, use_heap);
2154 ZSTR_ALLOCA_FREE(ord_needle, use_heap);
2163 ZSTR_ALLOCA_FREE(ord_needle, use_heap);
2180 ZSTR_ALLOCA_FREE(ord_needle, use_heap);
[all …]
H A Dvar_unserializer.re249 ALLOCA_FLAG(use_heap)
258 ZSTR_ALLOCA_ALLOC(lcname, ZSTR_LEN(class_name), use_heap);
261 ZSTR_ALLOCA_FREE(lcname, use_heap);
/PHP-7.0/main/
H A Dphp_variables.c66 ALLOCA_FLAG(use_heap) in php_register_variable_ex()
90 var = var_orig = do_alloca(var_len + 1, use_heap); in php_register_variable_ex()
108 free_alloca(var_orig, use_heap); in php_register_variable_ex()
117 free_alloca(var_orig, use_heap); in php_register_variable_ex()
146 free_alloca(var_orig, use_heap); in php_register_variable_ex()
179 free_alloca(var_orig, use_heap); in php_register_variable_ex()
234 free_alloca(var_orig, use_heap); in php_register_variable_ex()
H A Dmain.c2430 ALLOCA_FLAG(use_heap) in php_execute_script()
2437 old_cwd = do_alloca(OLD_CWD_SIZE, use_heap); in php_execute_script()
2535 free_alloca(old_cwd, use_heap); in php_execute_script()
2546 ALLOCA_FLAG(use_heap) in php_execute_simple_script()
2550 old_cwd = do_alloca(OLD_CWD_SIZE, use_heap); in php_execute_simple_script()
2573 free_alloca(old_cwd, use_heap); in php_execute_simple_script()
/PHP-7.0/ext/intl/breakiterator/
H A Dbreakiterator_iterators.cpp249 ALLOCA_FLAG(use_heap); in IntlPartsIterator_get_method()
252 ZSTR_ALLOCA_ALLOC(lc_method_name, ZSTR_LEN(method), use_heap); in IntlPartsIterator_get_method()
273 ZSTR_ALLOCA_FREE(lc_method_name, use_heap); in IntlPartsIterator_get_method()
/PHP-7.0/ext/pcre/
H A Dphp_pcre.c731 ALLOCA_FLAG(use_heap); in php_pcre_match_impl()
798 offsets = (int *)do_alloca(size_offsets * sizeof(int), use_heap); in php_pcre_match_impl()
840 free_alloca(offsets, use_heap); in php_pcre_match_impl()
1013 free_alloca(offsets, use_heap); in php_pcre_match_impl()
1181 ALLOCA_FLAG(use_heap); in php_pcre_replace_impl()
1219 free_alloca(offsets, use_heap); in php_pcre_replace_impl()
1413 free_alloca(offsets, use_heap); in php_pcre_replace_impl()
1791 ALLOCA_FLAG(use_heap); in php_pcre_split_impl()
1923 free_alloca(offsets, use_heap); in php_pcre_split_impl()
2059 ALLOCA_FLAG(use_heap); in php_pcre_grep_impl()
[all …]
/PHP-7.0/ext/opcache/
H A DZendAccelerator.h137 #define DO_ALLOCA(x) do_alloca(x, use_heap)
138 #define FREE_ALLOCA(x) free_alloca(x, use_heap)
/PHP-7.0/ext/opcache/Optimizer/
H A Dnop_removal.c40 ALLOCA_FLAG(use_heap); in zend_optimizer_nop_removal()
H A Dpass3.c64 ALLOCA_FLAG(use_heap); in zend_optimizer_pass3()
H A Dblock_pass.c39 ALLOCA_FLAG(use_heap); in zend_optimizer_get_persistent_constant()
/PHP-7.0/sapi/cgi/
H A Dcgi_main.c654 ALLOCA_FLAG(use_heap) in sapi_cgi_register_variables()
671 php_self = do_alloca(php_self_len + 1, use_heap); in sapi_cgi_register_variables()
695 free_alloca(php_self, use_heap); in sapi_cgi_register_variables()
1516 ALLOCA_FLAG(use_heap)
1527 var = str = do_alloca(var_len + 1, use_heap);
1554 free_alloca(var, use_heap);
1646 ALLOCA_FLAG(use_heap)
1658 s = do_alloca(len + 1, use_heap);
1665 free_alloca(s, use_heap);
/PHP-7.0/sapi/cli/
H A Dphp_cli_server.c392 ALLOCA_FLAG(use_heap) in add_response_header()
402 s = do_alloca(len + 1, use_heap); in add_response_header()
409 free_alloca(s, use_heap); in add_response_header()
/PHP-7.0/ext/reflection/
H A Dphp_reflection.c5580 ALLOCA_FLAG(use_heap) in ZEND_METHOD()
5589 lcname = do_alloca(name_len + 1, use_heap); in ZEND_METHOD()
5592 free_alloca(lcname, use_heap); in ZEND_METHOD()
5597 free_alloca(lcname, use_heap); in ZEND_METHOD()

Completed in 150 milliseconds

12