mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Use zend_always_inline for frameless function template functions (GH-21316)
This commit is contained in:
@@ -1088,7 +1088,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;
|
||||
|
||||
@@ -1527,7 +1527,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;
|
||||
|
||||
@@ -1500,7 +1500,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 zend_always_inline void _zend_dirname(zval *return_value, zend_string *str, zend_long levels)
|
||||
{
|
||||
zend_string *ret;
|
||||
|
||||
@@ -1745,7 +1745,7 @@ PHP_FUNCTION(stristr)
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
static inline void _zend_strstr(zval *return_value, zend_string *haystack, zend_string *needle, bool part)
|
||||
static zend_always_inline void _zend_strstr(zval *return_value, zend_string *haystack, zend_string *needle, bool part)
|
||||
{
|
||||
const char *found = NULL;
|
||||
zend_long found_offset;
|
||||
@@ -1889,7 +1889,7 @@ PHP_FUNCTION(str_ends_with)
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
static inline void _zend_strpos(zval *return_value, zend_string *haystack, zend_string *needle, zend_long offset)
|
||||
static zend_always_inline void _zend_strpos(zval *return_value, zend_string *haystack, zend_string *needle, zend_long offset)
|
||||
{
|
||||
const char *found = NULL;
|
||||
|
||||
|
||||
@@ -344,7 +344,7 @@ PHP_FUNCTION(is_object)
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
static inline void _zend_is_numeric(zval *return_value, zval *arg)
|
||||
static zend_always_inline void _zend_is_numeric(zval *return_value, zval *arg)
|
||||
{
|
||||
switch (Z_TYPE_P(arg)) {
|
||||
case IS_LONG:
|
||||
|
||||
Reference in New Issue
Block a user