/PHP-5.6/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
|
/PHP-5.6/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.6/Zend/ |
H A D | zend_virtual_cwd.c | 793 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 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 | 201 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 D | zend_object_handlers.c | 1044 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 D | zend_constants.c | 229 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 D | zend_builtin_functions.c | 1236 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 D | zend_execute_API.c | 919 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 D | zend_compile.c | 1544 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 D | ZendAccelerator.h | 160 #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 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.6/main/ |
H A D | php_variables.c | 69 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 D | main.c | 2523 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 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.6/sapi/cgi/ |
H A D | cgi_main.c | 682 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 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.6/sapi/cli/ |
H A D | php_cli_server.c | 512 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 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.6/ext/reflection/ |
H A D | php_reflection.c | 1253 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()
|