Home
last modified time | relevance | path

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

/PHP-5.5/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.5/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.5/Zend/
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.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.c1015 ALLOCA_FLAG(use_heap) in zend_std_get_method()
1021 lc_method_name = do_alloca(method_len+1, use_heap); in zend_std_get_method()
1029 free_alloca(lc_method_name, use_heap); in zend_std_get_method()
1085 free_alloca(lc_method_name, use_heap); in zend_std_get_method()
1158 ALLOCA_FLAG(use_heap) in zend_std_get_static_method()
1164 lc_function_name = do_alloca(function_name_strlen+1, use_heap); in zend_std_get_static_method()
1183 free_alloca(lc_function_name, use_heap); in zend_std_get_static_method()
1235 free_alloca(lc_function_name, use_heap); in zend_std_get_static_method()
H A Dzend_execute_API.c1021 ALLOCA_FLAG(use_heap) in zend_lookup_class_ex()
1032 lc_free = lc_name = do_alloca(name_length + 1, use_heap); in zend_lookup_class_ex()
1046 free_alloca(lc_free, use_heap); in zend_lookup_class_ex()
1056 free_alloca(lc_free, use_heap); in zend_lookup_class_ex()
1064 free_alloca(lc_free, use_heap); in zend_lookup_class_ex()
1076 free_alloca(lc_free, use_heap); in zend_lookup_class_ex()
1127 free_alloca(lc_free, use_heap); in zend_lookup_class_ex()
H A Dzend_compile.c1536 ALLOCA_FLAG(use_heap) in zend_do_begin_function_declaration()
1633 class_lcname = do_alloca(CG(active_class_entry)->name_length + 1, use_heap); in zend_do_begin_function_declaration()
1692 free_alloca(class_lcname, use_heap); in zend_do_begin_function_declaration()
/PHP-5.5/ext/opcache/
H A DZendAccelerator.h159 #define DO_ALLOCA(x) do_alloca_with_limit(x, use_heap)
160 #define FREE_ALLOCA(x) free_alloca_with_limit(x, use_heap)
167 #define DO_ALLOCA(x) do_alloca(x, use_heap)
168 #define FREE_ALLOCA(x) free_alloca(x, use_heap)
/PHP-5.5/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.5/main/
H A Dphp_variables.c65 ALLOCA_FLAG(use_heap) in php_register_variable_ex()
89 var = var_orig = do_alloca(var_len + 1, use_heap); in php_register_variable_ex()
107 free_alloca(var_orig, use_heap); in php_register_variable_ex()
116 free_alloca(var_orig, use_heap); in php_register_variable_ex()
145 free_alloca(var_orig, use_heap); in php_register_variable_ex()
179 free_alloca(var_orig, use_heap); in php_register_variable_ex()
228 free_alloca(var_orig, use_heap); in php_register_variable_ex()
H A Dmain.c2435 ALLOCA_FLAG(use_heap) in php_execute_script()
2442 old_cwd = do_alloca(OLD_CWD_SIZE, use_heap); in php_execute_script()
2538 free_alloca(old_cwd, use_heap); in php_execute_script()
2549 ALLOCA_FLAG(use_heap) in php_execute_simple_script()
2553 old_cwd = do_alloca(OLD_CWD_SIZE, use_heap); in php_execute_simple_script()
2576 free_alloca(old_cwd, use_heap); in php_execute_simple_script()
/PHP-5.5/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.5/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()
1538 ALLOCA_FLAG(use_heap)
1549 var = str = do_alloca(var_len + 1, use_heap);
1576 free_alloca(var, use_heap);
1668 ALLOCA_FLAG(use_heap)
1680 s = do_alloca(len + 1, use_heap);
1687 free_alloca(s, use_heap);
/PHP-5.5/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.5/sapi/cli/
H A Dphp_cli_server.c511 ALLOCA_FLAG(use_heap) in add_response_header()
521 s = do_alloca(len + 1, use_heap); in add_response_header()
528 free_alloca(s, use_heap); in add_response_header()
2128 ALLOCA_FLAG(use_heap) in php_cli_server_dispatch_router()
2129 old_cwd = do_alloca(MAXPATHLEN, use_heap); in php_cli_server_dispatch_router()
2155 free_alloca(old_cwd, use_heap); in php_cli_server_dispatch_router()
/PHP-5.5/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.5/ext/reflection/
H A Dphp_reflection.c1215 ALLOCA_FLAG(use_heap) in reflection_extension_factory()
1217 lcname = do_alloca(name_len + 1, use_heap); in reflection_extension_factory()
1220 free_alloca(lcname, use_heap); in reflection_extension_factory()
1223 free_alloca(lcname, use_heap); in reflection_extension_factory()
5182 ALLOCA_FLAG(use_heap) in ZEND_METHOD()
5193 lcname = do_alloca(name_len + 1, use_heap); in ZEND_METHOD()
5196 free_alloca(lcname, use_heap); in ZEND_METHOD()
5201 free_alloca(lcname, use_heap); in ZEND_METHOD()

Completed in 122 milliseconds