Home
last modified time | relevance | path

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

/PHP-5.4/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
H A Dtsrm_virtual_cwd.c763 TSRM_ALLOCA_FLAG(use_heap) in tsrm_realpath_r()
1016 tsrm_free_alloca(tmp, use_heap); in tsrm_realpath_r()
1025 tsrm_free_alloca(tmp, use_heap); in tsrm_realpath_r()
1064 tsrm_free_alloca(tmp, use_heap); in tsrm_realpath_r()
1071 tsrm_free_alloca(tmp, use_heap); in tsrm_realpath_r()
1076 tsrm_free_alloca(tmp, use_heap); in tsrm_realpath_r()
1115 tsrm_free_alloca(tmp, use_heap); in tsrm_realpath_r()
1130 tsrm_free_alloca(tmp, use_heap); in tsrm_realpath_r()
1143 tsrm_free_alloca(tmp, use_heap); in tsrm_realpath_r()
1370 TSRM_ALLOCA_FLAG(use_heap) in virtual_chdir_file()
[all …]
/PHP-5.4/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-5.4/Zend/
H A Dzend.h189 # define do_alloca_ex(size, limit, use_heap) \ argument
190 ((use_heap = (UNEXPECTED((size) > (limit)))) ? emalloc(size) : alloca(size))
191 # define do_alloca(size, use_heap) \ argument
192 do_alloca_ex(size, ZEND_ALLOCA_MAX_SIZE, use_heap)
193 # define free_alloca(p, use_heap) \ argument
194 do { if (UNEXPECTED(use_heap)) efree(p); } while (0)
198 # define do_alloca(p, use_heap) emalloc(p) argument
199 # define free_alloca(p, use_heap) efree(p) argument
H A Dzend_closures.c186 ALLOCA_FLAG(use_heap) in zend_closure_get_method()
188 lc_name = do_alloca(method_len + 1, use_heap); in zend_closure_get_method()
193 free_alloca(lc_name, use_heap); in zend_closure_get_method()
196 free_alloca(lc_name, use_heap); in zend_closure_get_method()
H A Dzend_builtin_functions.c1226 ALLOCA_FLAG(use_heap) in ZEND_FUNCTION()
1236 lc_name = do_alloca(class_name_len + 1, use_heap); in ZEND_FUNCTION()
1248 free_alloca(lc_name, use_heap); in ZEND_FUNCTION()
1269 ALLOCA_FLAG(use_heap) in ZEND_FUNCTION()
1279 lc_name = do_alloca(iface_name_len + 1, use_heap); in ZEND_FUNCTION()
1291 free_alloca(lc_name, use_heap); in ZEND_FUNCTION()
1312 ALLOCA_FLAG(use_heap) in ZEND_FUNCTION()
1322 lc_name = do_alloca(trait_name_len + 1, use_heap); in ZEND_FUNCTION()
1334 free_alloca(lc_name, use_heap); in ZEND_FUNCTION()
1396 ALLOCA_FLAG(use_heap) in ZEND_FUNCTION()
H A Dzend_constants.c242 ALLOCA_FLAG(use_heap) in zend_get_special_constant()
245 const_name = do_alloca(const_name_len, use_heap); in zend_get_special_constant()
255 free_alloca(const_name, use_heap); in zend_get_special_constant()
H A Dzend_object_handlers.c1009 ALLOCA_FLAG(use_heap) in zend_std_get_method()
1015 lc_method_name = do_alloca(method_len+1, use_heap); in zend_std_get_method()
1023 free_alloca(lc_method_name, use_heap); in zend_std_get_method()
1079 free_alloca(lc_method_name, use_heap); in zend_std_get_method()
1152 ALLOCA_FLAG(use_heap) in zend_std_get_static_method()
1158 lc_function_name = do_alloca(function_name_strlen+1, use_heap); in zend_std_get_static_method()
1177 free_alloca(lc_function_name, use_heap); in zend_std_get_static_method()
1229 free_alloca(lc_function_name, use_heap); in zend_std_get_static_method()
H A Dzend_execute_API.c1044 ALLOCA_FLAG(use_heap) in zend_lookup_class_ex()
1055 lc_free = lc_name = do_alloca(name_length + 1, use_heap); in zend_lookup_class_ex()
1069 free_alloca(lc_free, use_heap); in zend_lookup_class_ex()
1079 free_alloca(lc_free, use_heap); in zend_lookup_class_ex()
1087 free_alloca(lc_free, use_heap); in zend_lookup_class_ex()
1099 free_alloca(lc_free, use_heap); in zend_lookup_class_ex()
1150 free_alloca(lc_free, use_heap); in zend_lookup_class_ex()
H A Dzend_compile.c1533 ALLOCA_FLAG(use_heap) in zend_do_begin_function_declaration()
1626 class_lcname = do_alloca(CG(active_class_entry)->name_length + 1, use_heap); in zend_do_begin_function_declaration()
1681 free_alloca(class_lcname, use_heap); in zend_do_begin_function_declaration()
/PHP-5.4/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()
180 free_alloca(var_orig, use_heap); in php_register_variable_ex()
229 free_alloca(var_orig, use_heap); in php_register_variable_ex()
H A Dmain.c2423 ALLOCA_FLAG(use_heap) in php_execute_script()
2434 old_cwd = do_alloca(OLD_CWD_SIZE, use_heap); in php_execute_script()
2515 free_alloca(old_cwd, use_heap); in php_execute_script()
2526 ALLOCA_FLAG(use_heap) in php_execute_simple_script()
2530 old_cwd = do_alloca(OLD_CWD_SIZE, use_heap); in php_execute_simple_script()
2553 free_alloca(old_cwd, use_heap); in php_execute_simple_script()
/PHP-5.4/sapi/cgi/
H A Dcgi_main.c674 ALLOCA_FLAG(use_heap) in sapi_cgi_register_variables()
691 php_self = do_alloca(php_self_len + 1, use_heap); in sapi_cgi_register_variables()
715 free_alloca(php_self, use_heap); in sapi_cgi_register_variables()
1536 ALLOCA_FLAG(use_heap)
1547 var = str = do_alloca(var_len + 1, use_heap);
1574 free_alloca(var, use_heap);
1666 ALLOCA_FLAG(use_heap)
1676 s = do_alloca(len + 1, use_heap);
1683 free_alloca(s, use_heap);
/PHP-5.4/ext/spl/
H A Dphp_spl.c72 ALLOCA_FLAG(use_heap) in spl_find_ce_by_name()
74 lc_name = do_alloca(len + 1, use_heap); in spl_find_ce_by_name()
78 free_alloca(lc_name, use_heap); in spl_find_ce_by_name()
/PHP-5.4/ext/interbase/
H A Dibase_query.c1786 ALLOCA_FLAG(use_heap) in PHP_FUNCTION()
1812 args = (zval ***) do_alloca((expected_n + 1) * sizeof(zval **), use_heap); in PHP_FUNCTION()
1852 free_alloca(args, use_heap); in PHP_FUNCTION()
/PHP-5.4/ext/reflection/
H A Dphp_reflection.c1212 ALLOCA_FLAG(use_heap) in reflection_extension_factory()
1214 lcname = do_alloca(name_len + 1, use_heap); in reflection_extension_factory()
1217 free_alloca(lcname, use_heap); in reflection_extension_factory()
1220 free_alloca(lcname, use_heap); in reflection_extension_factory()
5157 ALLOCA_FLAG(use_heap) in ZEND_METHOD()
5168 lcname = do_alloca(name_len + 1, use_heap); in ZEND_METHOD()
5171 free_alloca(lcname, use_heap); in ZEND_METHOD()
5176 free_alloca(lcname, use_heap); in ZEND_METHOD()
/PHP-5.4/sapi/cli/
H A Dphp_cli_server.c1991 ALLOCA_FLAG(use_heap) in php_cli_server_dispatch_router()
1992 old_cwd = do_alloca(MAXPATHLEN, use_heap); in php_cli_server_dispatch_router()
2018 free_alloca(old_cwd, use_heap); in php_cli_server_dispatch_router()

Completed in 109 milliseconds