diff --git a/Zend/zend_ast.c b/Zend/zend_ast.c index 991d85ff39ce1..dc449500a3fe3 100644 --- a/Zend/zend_ast.c +++ b/Zend/zend_ast.c @@ -29,17 +29,17 @@ ZEND_API zend_ast_process_t zend_ast_process = NULL; -static inline void *zend_ast_alloc(size_t size) { +static void *zend_ast_alloc(size_t size) { return zend_arena_alloc(&CG(ast_arena), size); } -static inline void *zend_ast_realloc(void *old, size_t old_size, size_t new_size) { +static void *zend_ast_realloc(void *old, size_t old_size, size_t new_size) { void *new = zend_ast_alloc(new_size); memcpy(new, old, old_size); return new; } -static inline size_t zend_ast_list_size(uint32_t children) { +static size_t zend_ast_list_size(uint32_t children) { return sizeof(zend_ast_list) - sizeof(zend_ast *) + sizeof(zend_ast *) * children; } @@ -494,7 +494,7 @@ zend_ast *zend_ast_create_concat_op(zend_ast *op0, zend_ast *op1) { return zend_ast_create_binary_op(ZEND_CONCAT, op0, op1); } -static inline bool is_power_of_two(uint32_t n) { +static zend_always_inline bool is_power_of_two(uint32_t n) { return ((n != 0) && (n == (n & (~n + 1)))); } diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 7a07ceadce2e2..02cf2bffd6e4d 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -1053,7 +1053,7 @@ flf_clean:; Z_FLF_PARAM_FREE_STR(2, property_tmp) } -static inline void _class_exists_impl(zval *return_value, zend_string *name, bool autoload, int flags, int skip_flags) /* {{{ */ +static zend_always_inline void _class_exists_impl(zval *return_value, zend_string *name, bool autoload, int flags, int skip_flags) /* {{{ */ { zend_string *lcname; zend_class_entry *ce; @@ -1088,7 +1088,7 @@ static inline void _class_exists_impl(zval *return_value, zend_string *name, boo } /* {{{ */ -static inline void class_exists_impl(INTERNAL_FUNCTION_PARAMETERS, int flags, int skip_flags) /* {{{ */ +static void class_exists_impl(INTERNAL_FUNCTION_PARAMETERS, int flags, int skip_flags) /* {{{ */ { zend_string *name; bool autoload = true; @@ -1386,7 +1386,7 @@ ZEND_FUNCTION(get_exception_handler) } } -static inline void get_declared_class_impl(INTERNAL_FUNCTION_PARAMETERS, int flags) /* {{{ */ +static void get_declared_class_impl(INTERNAL_FUNCTION_PARAMETERS, int flags) /* {{{ */ { zend_string *key; zval *zv; diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index f9d0ae8ea8173..7a19328b8ac96 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -81,15 +81,9 @@ static int zend_implement_throwable(zend_class_entry *interface, zend_class_entr } /* }}} */ -static inline zend_class_entry *i_get_exception_base(zend_object *object) /* {{{ */ -{ - return instanceof_function(object->ce, zend_ce_exception) ? zend_ce_exception : zend_ce_error; -} -/* }}} */ - ZEND_API zend_class_entry *zend_get_exception_base(zend_object *object) /* {{{ */ { - return i_get_exception_base(object); + return instanceof_function(object->ce, zend_ce_exception) ? zend_ce_exception : zend_ce_error; } /* }}} */ @@ -115,17 +109,17 @@ void zend_exception_set_previous(zend_object *exception, zend_object *add_previo ZVAL_OBJ(&zv, exception); ex = &zv; do { - ancestor = zend_read_property_ex(i_get_exception_base(add_previous), add_previous, ZSTR_KNOWN(ZEND_STR_PREVIOUS), 1, &rv); + ancestor = zend_read_property_ex(zend_get_exception_base(add_previous), add_previous, ZSTR_KNOWN(ZEND_STR_PREVIOUS), 1, &rv); ZVAL_DEREF(ancestor); while (Z_TYPE_P(ancestor) == IS_OBJECT) { if (Z_OBJ_P(ancestor) == Z_OBJ_P(ex)) { OBJ_RELEASE(add_previous); return; } - ancestor = zend_read_property_ex(i_get_exception_base(Z_OBJ_P(ancestor)), Z_OBJ_P(ancestor), ZSTR_KNOWN(ZEND_STR_PREVIOUS), 1, &rv); + ancestor = zend_read_property_ex(zend_get_exception_base(Z_OBJ_P(ancestor)), Z_OBJ_P(ancestor), ZSTR_KNOWN(ZEND_STR_PREVIOUS), 1, &rv); ZVAL_DEREF(ancestor); } - base_ce = i_get_exception_base(Z_OBJ_P(ex)); + base_ce = zend_get_exception_base(Z_OBJ_P(ex)); previous = zend_read_property_ex(base_ce, Z_OBJ_P(ex), ZSTR_KNOWN(ZEND_STR_PREVIOUS), 1, &rv); ZVAL_DEREF(previous); if (Z_TYPE_P(previous) == IS_NULL) { @@ -273,7 +267,7 @@ static zend_object *zend_default_exception_new(zend_class_entry *class_type) /* } Z_SET_REFCOUNT(trace, 0); - base_ce = i_get_exception_base(object); + base_ce = zend_get_exception_base(object); if (EXPECTED((class_type != zend_ce_parse_error && class_type != zend_ce_compile_error) || !(filename = zend_get_compiled_filename()))) { @@ -311,7 +305,7 @@ ZEND_METHOD(Exception, __construct) zend_class_entry *base_ce; object = ZEND_THIS; - base_ce = i_get_exception_base(Z_OBJ_P(object)); + base_ce = zend_get_exception_base(Z_OBJ_P(object)); if (zend_parse_parameters(ZEND_NUM_ARGS(), "|SlO!", &message, &code, &previous, zend_ce_throwable) == FAILURE) { RETURN_THROWS(); @@ -335,9 +329,9 @@ ZEND_METHOD(Exception, __construct) /* {{{ Exception unserialize checks */ #define CHECK_EXC_TYPE(id, type) \ - pvalue = zend_read_property_ex(i_get_exception_base(Z_OBJ_P(object)), Z_OBJ_P(object), ZSTR_KNOWN(id), 1, &value); \ + pvalue = zend_read_property_ex(zend_get_exception_base(Z_OBJ_P(object)), Z_OBJ_P(object), ZSTR_KNOWN(id), 1, &value); \ if (Z_TYPE_P(pvalue) != IS_NULL && Z_TYPE_P(pvalue) != type) { \ - zend_unset_property(i_get_exception_base(Z_OBJ_P(object)), Z_OBJ_P(object), ZSTR_VAL(ZSTR_KNOWN(id)), ZSTR_LEN(ZSTR_KNOWN(id))); \ + zend_unset_property(zend_get_exception_base(Z_OBJ_P(object)), Z_OBJ_P(object), ZSTR_VAL(ZSTR_KNOWN(id)), ZSTR_LEN(ZSTR_KNOWN(id))); \ } ZEND_METHOD(Exception, __wakeup) @@ -401,9 +395,9 @@ ZEND_METHOD(ErrorException, __construct) /* }}} */ #define GET_PROPERTY(object, id) \ - zend_read_property_ex(i_get_exception_base(Z_OBJ_P(object)), Z_OBJ_P(object), ZSTR_KNOWN(id), 0, &rv) + zend_read_property_ex(zend_get_exception_base(Z_OBJ_P(object)), Z_OBJ_P(object), ZSTR_KNOWN(id), 0, &rv) #define GET_PROPERTY_SILENT(object, id) \ - zend_read_property_ex(i_get_exception_base(Z_OBJ_P(object)), Z_OBJ_P(object), ZSTR_KNOWN(id), 1, &rv) + zend_read_property_ex(zend_get_exception_base(Z_OBJ_P(object)), Z_OBJ_P(object), ZSTR_KNOWN(id), 1, &rv) /* {{{ Get the file in which the exception occurred */ ZEND_METHOD(Exception, getFile) @@ -621,7 +615,7 @@ ZEND_METHOD(Exception, getTraceAsString) ZEND_PARSE_PARAMETERS_NONE(); zval *object = ZEND_THIS; - zend_class_entry *base_ce = i_get_exception_base(Z_OBJ_P(object)); + zend_class_entry *base_ce = zend_get_exception_base(Z_OBJ_P(object)); zval rv; const zval *trace = zend_read_property_ex(base_ce, Z_OBJ_P(object), ZSTR_KNOWN(ZEND_STR_TRACE), 1, &rv); if (EG(exception)) { @@ -725,7 +719,7 @@ ZEND_METHOD(Exception, __toString) exception = ZEND_THIS; /* Reset apply counts */ - while (Z_TYPE_P(exception) == IS_OBJECT && (base_ce = i_get_exception_base(Z_OBJ_P(exception))) && instanceof_function(Z_OBJCE_P(exception), base_ce)) { + while (Z_TYPE_P(exception) == IS_OBJECT && (base_ce = zend_get_exception_base(Z_OBJ_P(exception))) && instanceof_function(Z_OBJCE_P(exception), base_ce)) { if (Z_IS_RECURSIVE_P(exception)) { Z_UNPROTECT_RECURSION_P(exception); } else { @@ -736,7 +730,7 @@ ZEND_METHOD(Exception, __toString) } exception = ZEND_THIS; - base_ce = i_get_exception_base(Z_OBJ_P(exception)); + base_ce = zend_get_exception_base(Z_OBJ_P(exception)); /* We store the result in the private property string so we can access * the result in uncaught exception handlers without memleaks. */ @@ -928,7 +922,7 @@ ZEND_API ZEND_COLD zend_result zend_exception_error(zend_object *ex, int severit if (Z_TYPE(tmp) != IS_STRING) { zend_error(E_WARNING, "%s::__toString() must return a string", ZSTR_VAL(ce_exception->name)); } else { - zend_update_property_ex(i_get_exception_base(ex), ex, ZSTR_KNOWN(ZEND_STR_STRING), &tmp); + zend_update_property_ex(zend_get_exception_base(ex), ex, ZSTR_KNOWN(ZEND_STR_STRING), &tmp); } } zval_ptr_dtor(&tmp); diff --git a/Zend/zend_generators.c b/Zend/zend_generators.c index a6ea91a7425b9..1a8f5e0a59022 100644 --- a/Zend/zend_generators.c +++ b/Zend/zend_generators.c @@ -213,7 +213,7 @@ static zend_always_inline void clear_link_to_root(zend_generator *generator) { } /* Check if the node 'generator' is running in a fiber */ -static inline bool check_node_running_in_fiber(zend_generator *generator) { +static bool check_node_running_in_fiber(zend_generator *generator) { ZEND_ASSERT(generator->execute_data); if (EXPECTED(generator->flags & ZEND_GENERATOR_IN_FIBER)) { @@ -872,7 +872,7 @@ ZEND_API void zend_generator_resume(zend_generator *orig_generator) /* {{{ */ } /* }}} */ -static inline void zend_generator_ensure_initialized(zend_generator *generator) /* {{{ */ +static void zend_generator_ensure_initialized(zend_generator *generator) /* {{{ */ { if (UNEXPECTED(Z_TYPE(generator->value) == IS_UNDEF) && EXPECTED(generator->execute_data) && EXPECTED(generator->node.parent == NULL)) { zend_generator_resume(generator); @@ -881,7 +881,7 @@ static inline void zend_generator_ensure_initialized(zend_generator *generator) } /* }}} */ -static inline void zend_generator_rewind(zend_generator *generator) /* {{{ */ +static void zend_generator_rewind(zend_generator *generator) /* {{{ */ { zend_generator_ensure_initialized(generator); diff --git a/ext/hash/hash_gost.c b/ext/hash/hash_gost.c index 2ad6948a9a676..51d5bebca7160 100644 --- a/ext/hash/hash_gost.c +++ b/ext/hash/hash_gost.c @@ -203,7 +203,7 @@ AA(v, l, r); \ } -static inline void Gost(PHP_GOST_CTX *context, uint32_t data[8]) +static void Gost(PHP_GOST_CTX *context, uint32_t data[8]) { int i; uint32_t l, r, t, key[8], u[8], v[8], w[8], s[8], *h = context->state, *m = data; diff --git a/ext/hash/hash_snefru.c b/ext/hash/hash_snefru.c index c1dbc3ae57a6c..a50b2919acc93 100644 --- a/ext/hash/hash_snefru.c +++ b/ext/hash/hash_snefru.c @@ -37,7 +37,7 @@ void ph(uint32_t h[16]) } #endif -static inline void Snefru(uint32_t input[16]) +static void Snefru(uint32_t input[16]) { static const int shifts[4] = {16, 8, 16, 24}; int b, index, rshift, lshift; diff --git a/ext/hash/hash_tiger.c b/ext/hash/hash_tiger.c index 841693a67dd14..b4a9b381ed532 100644 --- a/ext/hash/hash_tiger.c +++ b/ext/hash/hash_tiger.c @@ -132,7 +132,7 @@ } /* }}} */ -static inline void TigerFinalize(PHP_TIGER_CTX *context) +static void TigerFinalize(PHP_TIGER_CTX *context) { context->passed += (uint64_t) context->length << 3; diff --git a/ext/json/json_encoder.c b/ext/json/json_encoder.c index c147b8eb23d73..71e66828a4a63 100644 --- a/ext/json/json_encoder.c +++ b/ext/json/json_encoder.c @@ -90,7 +90,7 @@ bool php_json_is_valid_double(double d) /* {{{ */ } /* }}} */ -static inline void php_json_encode_double(smart_str *buf, double d, int options) /* {{{ */ +static void php_json_encode_double(smart_str *buf, double d, int options) /* {{{ */ { size_t len; char num[ZEND_DOUBLE_MAX_LENGTH]; diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 704846c4a860f..8d81049f06f31 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -230,7 +230,7 @@ static ZEND_FUNCTION(accel_chdir) ZCG(cwd_check) = true; } -static inline zend_string* accel_getcwd(void) +static zend_string* accel_getcwd(void) { if (ZCG(cwd)) { return ZCG(cwd); diff --git a/ext/random/engine_mt19937.c b/ext/random/engine_mt19937.c index 7c9d1741d81f1..81dd17f88baba 100644 --- a/ext/random/engine_mt19937.c +++ b/ext/random/engine_mt19937.c @@ -100,7 +100,7 @@ ZEND_STATIC_ASSERT( #define twist(m,u,v) (m ^ (mixBits(u,v) >> 1) ^ ((uint32_t)(-(int32_t)(loBit(v))) & 0x9908b0dfU)) #define twist_php(m,u,v) (m ^ (mixBits(u,v) >> 1) ^ ((uint32_t)(-(int32_t)(loBit(u))) & 0x9908b0dfU)) -static inline void mt19937_reload(php_random_status_state_mt19937 *state) +static void mt19937_reload(php_random_status_state_mt19937 *state) { uint32_t *p = state->state; diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index 677590cc89514..307ff3cd910c2 100644 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -1249,7 +1249,7 @@ static zend_function *spl_dual_it_get_method(zend_object **object, zend_string * #define APPENDIT_CHECK_CTOR(intern) SPL_CHECK_CTOR(intern, AppendIterator) -static inline zend_result spl_dual_it_fetch(spl_dual_it_object *intern, int check_more); +static zend_result spl_dual_it_fetch(spl_dual_it_object *intern, int check_more); static inline zend_result spl_cit_check_flags(zend_long flags) { @@ -1481,7 +1481,7 @@ static inline zend_result spl_dual_it_valid(spl_dual_it_object *intern) return intern->inner.iterator->funcs->valid(intern->inner.iterator); } -static inline zend_result spl_dual_it_fetch(spl_dual_it_object *intern, int check_more) +static zend_result spl_dual_it_fetch(spl_dual_it_object *intern, int check_more) { zval *data; @@ -2125,7 +2125,7 @@ static inline zend_result spl_limit_it_valid(spl_dual_it_object *intern) } } -static inline void spl_limit_it_seek(spl_dual_it_object *intern, zend_long pos) +static void spl_limit_it_seek(spl_dual_it_object *intern, zend_long pos) { zval zpos; diff --git a/ext/standard/array.c b/ext/standard/array.c index cabb43d8a914c..500031faa9ed9 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -818,7 +818,7 @@ PHP_FUNCTION(rsort) } /* }}} */ -static inline int php_array_user_compare_unstable(Bucket *f, Bucket *s) /* {{{ */ +static int php_array_user_compare_unstable(Bucket *f, Bucket *s) /* {{{ */ { zval args[2]; zval retval; @@ -923,7 +923,7 @@ PHP_FUNCTION(uasort) } /* }}} */ -static inline int php_array_user_key_compare_unstable(Bucket *f, Bucket *s) /* {{{ */ +static int php_array_user_key_compare_unstable(Bucket *f, Bucket *s) /* {{{ */ { zval args[2]; zval retval; @@ -1614,7 +1614,7 @@ PHP_FUNCTION(array_walk_recursive) * 0 = return boolean * 1 = return key */ -static inline void _php_search_array(zval *return_value, zval *value, zval *array, bool strict, int behavior) /* {{{ */ +static zend_always_inline void _php_search_array(zval *return_value, zval *value, zval *array, bool strict, int behavior) /* {{{ */ { zval *entry; /* pointer to array entry */ zend_ulong num_idx; @@ -1706,7 +1706,7 @@ static inline void _php_search_array(zval *return_value, zval *value, zval *arra * 0 = return boolean * 1 = return key */ -static inline void php_search_array(INTERNAL_FUNCTION_PARAMETERS, int behavior) +static void php_search_array(INTERNAL_FUNCTION_PARAMETERS, int behavior) { zval *value, /* value to check for */ *array; /* array to check in */ diff --git a/ext/standard/formatted_print.c b/ext/standard/formatted_print.c index 9471ad3c7ba23..5b731beaa48fe 100644 --- a/ext/standard/formatted_print.c +++ b/ext/standard/formatted_print.c @@ -45,7 +45,7 @@ static const char hexchars[] = "0123456789abcdef"; static const char HEXCHARS[] = "0123456789ABCDEF"; /* php_spintf_appendchar() {{{ */ -inline static void +static void php_sprintf_appendchar(zend_string **buffer, size_t *pos, char add) { if ((*pos + 1) >= ZSTR_LEN(*buffer)) { @@ -58,7 +58,7 @@ php_sprintf_appendchar(zend_string **buffer, size_t *pos, char add) /* }}} */ /* php_spintf_appendchar() {{{ */ -inline static void +static void php_sprintf_appendchars(zend_string **buffer, size_t *pos, char *add, size_t len) { if ((*pos + len) >= ZSTR_LEN(*buffer)) { @@ -77,7 +77,7 @@ php_sprintf_appendchars(zend_string **buffer, size_t *pos, char *add, size_t len /* }}} */ /* php_spintf_appendstring() {{{ */ -inline static void +static void php_sprintf_appendstring(zend_string **buffer, size_t *pos, char *add, size_t min_width, size_t max_width, char padding, size_t alignment, size_t len, bool neg, int expprec, int always_sign) @@ -134,7 +134,7 @@ php_sprintf_appendstring(zend_string **buffer, size_t *pos, char *add, /* }}} */ /* php_spintf_appendint() {{{ */ -inline static void +static void php_sprintf_appendint(zend_string **buffer, size_t *pos, zend_long number, size_t width, char padding, size_t alignment, int always_sign) @@ -178,7 +178,7 @@ php_sprintf_appendint(zend_string **buffer, size_t *pos, zend_long number, /* }}} */ /* php_spintf_appenduint() {{{ */ -inline static void +static void php_sprintf_appenduint(zend_string **buffer, size_t *pos, zend_ulong number, size_t width, char padding, size_t alignment) @@ -210,7 +210,7 @@ php_sprintf_appenduint(zend_string **buffer, size_t *pos, /* }}} */ /* php_spintf_appenddouble() {{{ */ -inline static void +static void php_sprintf_appenddouble(zend_string **buffer, size_t *pos, double number, size_t width, char padding, @@ -318,7 +318,7 @@ php_sprintf_appenddouble(zend_string **buffer, size_t *pos, /* }}} */ /* php_spintf_appendd2n() {{{ */ -inline static void +static void php_sprintf_append2n(zend_string **buffer, size_t *pos, zend_long number, size_t width, char padding, size_t alignment, int n, const char *chartable, int expprec) diff --git a/ext/standard/html.c b/ext/standard/html.c index 0c6231d590d88..2b141071cf9d9 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -86,7 +86,7 @@ static char *get_default_charset(void) { /* }}} */ /* {{{ get_next_char */ -static inline unsigned int get_next_char( +static unsigned int get_next_char( enum entity_charset charset, const unsigned char *str, size_t str_len, @@ -451,7 +451,7 @@ static inline unsigned char unimap_bsearch(const uni_to_enc *table, unsigned cod /* }}} */ /* {{{ map_from_unicode */ -static inline zend_result map_from_unicode(unsigned code, enum entity_charset charset, unsigned *res) +static zend_result map_from_unicode(unsigned code, enum entity_charset charset, unsigned *res) { unsigned char found; const uni_to_enc *table; @@ -1381,7 +1381,7 @@ PHP_FUNCTION(htmlentities) /* }}} */ /* {{{ write_s3row_data */ -static inline void write_s3row_data( +static void write_s3row_data( const entity_stage3_row *r, unsigned orig_cp, enum entity_charset charset, diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index ea06e9dff61ea..a4559a4b234e9 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -82,7 +82,7 @@ #define HTTP_WRAPPER_REDIRECTED 2 #define HTTP_WRAPPER_KEEP_METHOD 4 -static inline void strip_header(char *header_bag, char *lc_header_bag, +static void strip_header(char *header_bag, char *lc_header_bag, const char *lc_header_name) { char *lc_header_start = strstr(lc_header_bag, lc_header_name); diff --git a/ext/standard/string.c b/ext/standard/string.c index 1e20791eb61ce..ab7f22b646178 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1495,7 +1495,7 @@ PHPAPI size_t php_dirname(char *path, size_t len) } /* }}} */ -static inline void _zend_dirname(zval *return_value, zend_string *str, zend_long levels) +static void _zend_dirname(zval *return_value, zend_string *str, zend_long levels) { zend_string *ret; @@ -1740,7 +1740,7 @@ PHP_FUNCTION(stristr) } /* }}} */ -static inline void _zend_strstr(zval *return_value, zend_string *haystack, zend_string *needle, bool part) +static void _zend_strstr(zval *return_value, zend_string *haystack, zend_string *needle, bool part) { const char *found = NULL; zend_long found_offset; @@ -1884,7 +1884,7 @@ PHP_FUNCTION(str_ends_with) } /* }}} */ -static inline void _zend_strpos(zval *return_value, zend_string *haystack, zend_string *needle, zend_long offset) +static void _zend_strpos(zval *return_value, zend_string *haystack, zend_string *needle, zend_long offset) { const char *found = NULL; @@ -2218,7 +2218,7 @@ PHP_FUNCTION(chunk_split) } /* }}} */ -static inline void _zend_substr(zval *return_value, zend_string *str, zend_long f, bool len_is_null, zend_long l) +static void _zend_substr(zval *return_value, zend_string *str, zend_long f, bool len_is_null, zend_long l) { if (f < 0) { /* if "from" position is negative, count start position from the end diff --git a/ext/standard/var.c b/ext/standard/var.c index 1c2b0eb164a1c..0ec66881af50f 100644 --- a/ext/standard/var.c +++ b/ext/standard/var.c @@ -801,7 +801,7 @@ static inline void php_var_serialize_string(smart_str *buf, char *str, size_t le } /* }}} */ -static inline bool php_var_serialize_class_name(smart_str *buf, zval *struc) /* {{{ */ +static bool php_var_serialize_class_name(smart_str *buf, zval *struc) /* {{{ */ { char b[32]; PHP_CLASS_ATTRIBUTES; diff --git a/main/SAPI.c b/main/SAPI.c index 866b44c3eac7d..35545bde00b38 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -296,7 +296,7 @@ SAPI_API SAPI_POST_READER_FUNC(sapi_read_standard_form_data) } -static inline char *get_default_content_type(uint32_t prefix_len, uint32_t *len) +static char *get_default_content_type(uint32_t prefix_len, uint32_t *len) { char *mimetype, *charset, *content_type; uint32_t mimetype_len, charset_len; diff --git a/main/output.c b/main/output.c index ef6be672d1c16..c94cafbde4c22 100644 --- a/main/output.c +++ b/main/output.c @@ -52,7 +52,7 @@ static inline bool php_output_lock_error(int op); static inline void php_output_op(int op, const char *str, size_t len); static inline php_output_handler *php_output_handler_init(zend_string *name, size_t chunk_size, int flags); -static inline php_output_handler_status_t php_output_handler_op(php_output_handler *handler, php_output_context *context); +static php_output_handler_status_t php_output_handler_op(php_output_handler *handler, php_output_context *context); static inline bool php_output_handler_append(php_output_handler *handler, const php_output_buffer *buf); static inline zval *php_output_handler_status(php_output_handler *handler, zval *entry); @@ -898,7 +898,7 @@ static inline bool php_output_handler_append(php_output_handler *handler, const /* {{{ static php_output_handler_status_t php_output_handler_op(php_output_handler *handler, php_output_context *context) * Output handler operation dispatcher, applying context op to the php_output_handler handler */ -static inline php_output_handler_status_t php_output_handler_op(php_output_handler *handler, php_output_context *context) +static php_output_handler_status_t php_output_handler_op(php_output_handler *handler, php_output_context *context) { php_output_handler_status_t status; int original_op = context->op; diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index 5d7a1c0af78c0..bea3c5a5d18dd 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -1016,7 +1016,7 @@ static void phpdbg_welcome(bool cleaning) /* {{{ */ } } /* }}} */ -static inline void phpdbg_sigint_handler(int signo) /* {{{ */ +static void phpdbg_sigint_handler(int signo) /* {{{ */ { if (!(PHPDBG_G(flags) & PHPDBG_IS_INTERACTIVE)) { /* set signalled only when not interactive */ diff --git a/sapi/phpdbg/phpdbg_bp.c b/sapi/phpdbg/phpdbg_bp.c index 0a94adf21305a..a67d4c0ec1ed4 100644 --- a/sapi/phpdbg/phpdbg_bp.c +++ b/sapi/phpdbg/phpdbg_bp.c @@ -32,7 +32,7 @@ static inline phpdbg_breakbase_t *phpdbg_find_breakpoint_symbol(zend_function*); static inline phpdbg_breakbase_t *phpdbg_find_breakpoint_method(zend_op_array*); static inline phpdbg_breakbase_t *phpdbg_find_breakpoint_opline(phpdbg_opline_ptr_t); static inline phpdbg_breakbase_t *phpdbg_find_breakpoint_opcode(uint8_t); -static inline phpdbg_breakbase_t *phpdbg_find_conditional_breakpoint(zend_execute_data *execute_data); /* }}} */ +static phpdbg_breakbase_t *phpdbg_find_conditional_breakpoint(zend_execute_data *execute_data); /* }}} */ /* * Note: @@ -823,7 +823,7 @@ PHPDBG_API void phpdbg_set_breakpoint_opline_ex(phpdbg_opline_ptr_t opline) /* { } } /* }}} */ -static inline void phpdbg_create_conditional_break(phpdbg_breakcond_t *brake, const phpdbg_param_t *param, const char *expr, size_t expr_len, zend_ulong hash) /* {{{ */ +static void phpdbg_create_conditional_break(phpdbg_breakcond_t *brake, const phpdbg_param_t *param, const char *expr, size_t expr_len, zend_ulong hash) /* {{{ */ { phpdbg_breakcond_t new_break; uint32_t cops = CG(compiler_options); @@ -1092,7 +1092,7 @@ static inline bool phpdbg_find_breakpoint_param(phpdbg_param_t *param, zend_exec return 0; } /* }}} */ -static inline phpdbg_breakbase_t *phpdbg_find_conditional_breakpoint(zend_execute_data *execute_data) /* {{{ */ +static phpdbg_breakbase_t *phpdbg_find_conditional_breakpoint(zend_execute_data *execute_data) /* {{{ */ { phpdbg_breakcond_t *bp; int breakpoint = FAILURE; diff --git a/sapi/phpdbg/phpdbg_frame.c b/sapi/phpdbg/phpdbg_frame.c index a8f1bf01433b7..fc3001b19f893 100644 --- a/sapi/phpdbg/phpdbg_frame.c +++ b/sapi/phpdbg/phpdbg_frame.c @@ -25,7 +25,7 @@ ZEND_EXTERN_MODULE_GLOBALS(phpdbg) -static inline void phpdbg_append_individual_arg(smart_str *s, uint32_t i, zend_function *func, zval *arg) { +static void phpdbg_append_individual_arg(smart_str *s, uint32_t i, zend_function *func, zval *arg) { const zend_arg_info *arginfo = func->common.arg_info; char *arg_name = NULL; diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c index 92c139fa52abe..65e7c3dace94a 100644 --- a/sapi/phpdbg/phpdbg_prompt.c +++ b/sapi/phpdbg/phpdbg_prompt.c @@ -91,7 +91,7 @@ const phpdbg_command_t phpdbg_prompt_commands[] = { PHPDBG_END_COMMAND }; /* }}} */ -static inline int phpdbg_call_register(phpdbg_param_t *stack) /* {{{ */ +static int phpdbg_call_register(phpdbg_param_t *stack) /* {{{ */ { phpdbg_param_t *name = NULL;