Skip to content

Commit f1e75eb

Browse files
committed
Use zend_always_inline for frameless function template functions
1 parent 073dcf6 commit f1e75eb

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Zend/zend_builtin_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ flf_clean:;
10881088
Z_FLF_PARAM_FREE_STR(2, property_tmp)
10891089
}
10901090

1091-
static inline void _class_exists_impl(zval *return_value, zend_string *name, bool autoload, int flags, int skip_flags) /* {{{ */
1091+
static zend_always_inline void _class_exists_impl(zval *return_value, zend_string *name, bool autoload, int flags, int skip_flags) /* {{{ */
10921092
{
10931093
zend_string *lcname;
10941094
zend_class_entry *ce;

ext/standard/array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@ PHP_FUNCTION(array_walk_recursive)
15271527
* 0 = return boolean
15281528
* 1 = return key
15291529
*/
1530-
static inline void _php_search_array(zval *return_value, zval *value, zval *array, bool strict, int behavior) /* {{{ */
1530+
static zend_always_inline void _php_search_array(zval *return_value, zval *value, zval *array, bool strict, int behavior) /* {{{ */
15311531
{
15321532
zval *entry; /* pointer to array entry */
15331533
zend_ulong num_idx;

ext/standard/string.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ PHPAPI size_t php_dirname(char *path, size_t len)
15001500
}
15011501
/* }}} */
15021502

1503-
static inline void _zend_dirname(zval *return_value, zend_string *str, zend_long levels)
1503+
static zend_always_inline void _zend_dirname(zval *return_value, zend_string *str, zend_long levels)
15041504
{
15051505
zend_string *ret;
15061506

@@ -1745,7 +1745,7 @@ PHP_FUNCTION(stristr)
17451745
}
17461746
/* }}} */
17471747

1748-
static inline void _zend_strstr(zval *return_value, zend_string *haystack, zend_string *needle, bool part)
1748+
static zend_always_inline void _zend_strstr(zval *return_value, zend_string *haystack, zend_string *needle, bool part)
17491749
{
17501750
const char *found = NULL;
17511751
zend_long found_offset;
@@ -1889,7 +1889,7 @@ PHP_FUNCTION(str_ends_with)
18891889
}
18901890
/* }}} */
18911891

1892-
static inline void _zend_strpos(zval *return_value, zend_string *haystack, zend_string *needle, zend_long offset)
1892+
static zend_always_inline void _zend_strpos(zval *return_value, zend_string *haystack, zend_string *needle, zend_long offset)
18931893
{
18941894
const char *found = NULL;
18951895

ext/standard/type.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ PHP_FUNCTION(is_object)
344344
}
345345
/* }}} */
346346

347-
static inline void _zend_is_numeric(zval *return_value, zval *arg)
347+
static zend_always_inline void _zend_is_numeric(zval *return_value, zval *arg)
348348
{
349349
switch (Z_TYPE_P(arg)) {
350350
case IS_LONG:

0 commit comments

Comments
 (0)