Skip to content

Commit 180bf90

Browse files
committed
Fastcall calling convention is not comaptible with variable number of arguments
1 parent 531de5f commit 180bf90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Zend/zend_smart_str.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ ZEND_API void ZEND_FASTCALL smart_str_append_escaped(smart_str *str, const char
114114
}
115115
}
116116

117-
ZEND_API void ZEND_FASTCALL smart_str_append_printf(smart_str *dest, const char *format, ...) {
117+
ZEND_API void smart_str_append_printf(smart_str *dest, const char *format, ...) {
118118
va_list arg;
119119
va_start(arg, format);
120120
zend_printf_to_smart_str(dest, format, arg);

Zend/zend_smart_str.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ BEGIN_EXTERN_C()
4949
ZEND_API void ZEND_FASTCALL smart_str_erealloc(smart_str *str, size_t len);
5050
ZEND_API void ZEND_FASTCALL smart_str_realloc(smart_str *str, size_t len);
5151
ZEND_API void ZEND_FASTCALL smart_str_append_escaped(smart_str *str, const char *s, size_t l);
52-
ZEND_API void ZEND_FASTCALL smart_str_append_printf(smart_str *dest, const char *format, ...)
52+
ZEND_API void smart_str_append_printf(smart_str *dest, const char *format, ...)
5353
ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
5454

5555
END_EXTERN_C()

0 commit comments

Comments
 (0)