Home
last modified time | relevance | path

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

/PHP-5.6/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-5.6/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.6/Zend/
H A Dzend_virtual_cwd.c793 ALLOCA_FLAG(use_heap) in tsrm_realpath_r()
1047 free_alloca(tmp, use_heap); in tsrm_realpath_r()
1056 free_alloca(tmp, use_heap); in tsrm_realpath_r()
1095 free_alloca(tmp, use_heap); in tsrm_realpath_r()
1102 free_alloca(tmp, use_heap); in tsrm_realpath_r()
1107 free_alloca(tmp, use_heap); in tsrm_realpath_r()
1146 free_alloca(tmp, use_heap); in tsrm_realpath_r()
1161 free_alloca(tmp, use_heap); in tsrm_realpath_r()
1174 free_alloca(tmp, use_heap); in tsrm_realpath_r()
1401 ALLOCA_FLAG(use_heap) in virtual_chdir_file()
[all …]
H A Dzend.h202 # define do_alloca_ex(size, limit, use_heap) \ argument
203 ((use_heap = (UNEXPECTED((size) > (limit)))) ? emalloc(size) : alloca(size))
204 # define do_alloca(size, use_heap) \ argument
205 do_alloca_ex(size, ZEND_ALLOCA_MAX_SIZE, use_heap)
206 # define free_alloca(p, use_heap) \ argument
207 do { if (UNEXPECTED(use_heap)) efree(p); } while (0)
211 # define do_alloca(p, use_heap) emalloc(p) argument
212 # define free_alloca(p, use_heap) efree(p) argument
H A Dzend_closures.c201 ALLOCA_FLAG(use_heap) in zend_closure_get_method()
203 lc_name = do_alloca(method_len + 1, use_heap); in zend_closure_get_method()
208 free_alloca(lc_name, use_heap); in zend_closure_get_method()
211 free_alloca(lc_name, use_heap); in zend_closure_get_method()
H A Dzend_object_handlers.c1044 ALLOCA_FLAG(use_heap) in zend_std_get_method()
1050 lc_method_name = do_alloca(method_len+1, use_heap); in zend_std_get_method()
1058 free_alloca(lc_method_name, use_heap); in zend_std_get_method()
1114 free_alloca(lc_method_name, use_heap); in zend_std_get_method()
1184 ALLOCA_FLAG(use_heap) in zend_std_get_static_method()
1189 use_heap = 0; in zend_std_get_static_method()
1194 lc_function_name = do_alloca(function_name_strlen+1, use_heap); in zend_std_get_static_method()
1213 free_alloca(lc_function_name, use_heap); in zend_std_get_static_method()
1265 free_alloca(lc_function_name, use_heap); in zend_std_get_static_method()
H A Dzend_constants.c229 ALLOCA_FLAG(use_heap) in zend_get_special_constant()
232 const_name = do_alloca(const_name_len, use_heap); in zend_get_special_constant()
242 free_alloca(const_name, use_heap); in zend_get_special_constant()
H A Dzend_builtin_functions.c1236 ALLOCA_FLAG(use_heap) in ZEND_FUNCTION()
1246 lc_name = do_alloca(class_name_len + 1, use_heap); in ZEND_FUNCTION()
1258 free_alloca(lc_name, use_heap); in ZEND_FUNCTION()
1279 ALLOCA_FLAG(use_heap) in ZEND_FUNCTION()
1289 lc_name = do_alloca(iface_name_len + 1, use_heap); in ZEND_FUNCTION()
1301 free_alloca(lc_name, use_heap); in ZEND_FUNCTION()
1322 ALLOCA_FLAG(use_heap) in ZEND_FUNCTION()
1332 lc_name = do_alloca(trait_name_len + 1, use_heap); in ZEND_FUNCTION()
1344 free_alloca(lc_name, use_heap); in ZEND_FUNCTION()
H A Dzend_execute_API.c919 ALLOCA_FLAG(use_heap) in zend_lookup_class_ex()
930 lc_free = lc_name = do_alloca(name_length + 1, use_heap); in zend_lookup_class_ex()
944 free_alloca(lc_free, use_heap); in zend_lookup_class_ex()
954 free_alloca(lc_free, use_heap); in zend_lookup_class_ex()
962 free_alloca(lc_free, use_heap); in zend_lookup_class_ex()
974 free_alloca(lc_free, use_heap); in zend_lookup_class_ex()
1025 free_alloca(lc_free, use_heap); in zend_lookup_class_ex()
H A Dzend_compile.c1544 ALLOCA_FLAG(use_heap) in zend_do_begin_function_declaration()
1641 class_lcname = do_alloca(CG(active_class_entry)->name_length + 1, use_heap); in zend_do_begin_function_declaration()
1705 free_alloca(class_lcname, use_heap); in zend_do_begin_function_declaration()
/PHP-5.6/ext/opcache/
H A DZendAccelerator.h160 #define DO_ALLOCA(x) do_alloca_with_limit(x, use_heap)
161 #define FREE_ALLOCA(x) free_alloca_with_limit(x, use_heap)
168 #define DO_ALLOCA(x) do_alloca(x, use_heap)
169 #define FREE_ALLOCA(x) free_alloca(x, use_heap)
/PHP-5.6/ext/intl/breakiterator/
H A Dbreakiterator_iterators.cpp258 ALLOCA_FLAG(use_heap) in IntlPartsIterator_get_method()
262 do_alloca(method_len + 1, use_heap)); in IntlPartsIterator_get_method()
289 free_alloca(Z_STRVAL(local_literal.constant), use_heap); in IntlPartsIterator_get_method()
/PHP-5.6/main/
H A Dphp_variables.c69 ALLOCA_FLAG(use_heap) in php_register_variable_ex()
93 var = var_orig = do_alloca(var_len + 1, use_heap); in php_register_variable_ex()
111 free_alloca(var_orig, use_heap); in php_register_variable_ex()
120 free_alloca(var_orig, use_heap); in php_register_variable_ex()
149 free_alloca(var_orig, use_heap); in php_register_variable_ex()
183 free_alloca(var_orig, use_heap); in php_register_variable_ex()
232 free_alloca(var_orig, use_heap); in php_register_variable_ex()
H A Dmain.c2523 ALLOCA_FLAG(use_heap) in php_execute_script()
2530 old_cwd = do_alloca(OLD_CWD_SIZE, use_heap); in php_execute_script()
2626 free_alloca(old_cwd, use_heap); in php_execute_script()
2637 ALLOCA_FLAG(use_heap) in php_execute_simple_script()
2641 old_cwd = do_alloca(OLD_CWD_SIZE, use_heap); in php_execute_simple_script()
2664 free_alloca(old_cwd, use_heap); in php_execute_simple_script()
/PHP-5.6/ext/opcache/Optimizer/
H A Dnop_removal.c11 ALLOCA_FLAG(use_heap); in nop_removal()
H A Dpass3.c34 ALLOCA_FLAG(use_heap);
H A Dblock_pass.c9 ALLOCA_FLAG(use_heap); in zend_get_persistent_constant()
/PHP-5.6/sapi/cgi/
H A Dcgi_main.c682 ALLOCA_FLAG(use_heap) in sapi_cgi_register_variables()
699 php_self = do_alloca(php_self_len + 1, use_heap); in sapi_cgi_register_variables()
723 free_alloca(php_self, use_heap); in sapi_cgi_register_variables()
1541 ALLOCA_FLAG(use_heap)
1552 var = str = do_alloca(var_len + 1, use_heap);
1579 free_alloca(var, use_heap);
1671 ALLOCA_FLAG(use_heap)
1683 s = do_alloca(len + 1, use_heap);
1690 free_alloca(s, use_heap);
/PHP-5.6/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.6/sapi/cli/
H A Dphp_cli_server.c512 ALLOCA_FLAG(use_heap) in add_response_header()
522 s = do_alloca(len + 1, use_heap); in add_response_header()
529 free_alloca(s, use_heap); in add_response_header()
2156 ALLOCA_FLAG(use_heap) in php_cli_server_dispatch_router()
2157 old_cwd = do_alloca(MAXPATHLEN, use_heap); in php_cli_server_dispatch_router()
2183 free_alloca(old_cwd, use_heap); in php_cli_server_dispatch_router()
/PHP-5.6/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.6/ext/reflection/
H A Dphp_reflection.c1253 ALLOCA_FLAG(use_heap) in reflection_extension_factory()
1255 lcname = do_alloca(name_len + 1, use_heap); in reflection_extension_factory()
1258 free_alloca(lcname, use_heap); in reflection_extension_factory()
1261 free_alloca(lcname, use_heap); in reflection_extension_factory()
5256 ALLOCA_FLAG(use_heap) in ZEND_METHOD()
5267 lcname = do_alloca(name_len + 1, use_heap); in ZEND_METHOD()
5270 free_alloca(lcname, use_heap); in ZEND_METHOD()
5275 free_alloca(lcname, use_heap); in ZEND_METHOD()

Completed in 200 milliseconds