/PHP-5.5/TSRM/ |
H A D | tsrm_config_common.h | 58 # 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 D | tsrm_virtual_cwd.c | 763 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 D | collator_is_numeric.c | 23 #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 D | zend.h | 202 # 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 D | zend_closures.c | 186 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 D | zend_builtin_functions.c | 1226 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 D | zend_constants.c | 242 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 D | zend_object_handlers.c | 1015 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 D | zend_execute_API.c | 1021 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 D | zend_compile.c | 1536 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 D | ZendAccelerator.h | 159 #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 D | breakiterator_iterators.cpp | 258 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 D | php_variables.c | 65 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 D | main.c | 2435 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 D | nop_removal.c | 11 ALLOCA_FLAG(use_heap); in nop_removal()
|
H A D | pass3.c | 34 ALLOCA_FLAG(use_heap);
|
H A D | block_pass.c | 9 ALLOCA_FLAG(use_heap); in zend_get_persistent_constant()
|
/PHP-5.5/sapi/cgi/ |
H A D | cgi_main.c | 674 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 D | php_spl.c | 72 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 D | php_cli_server.c | 511 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 D | ibase_query.c | 1786 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 D | php_reflection.c | 1215 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()
|