summaryrefslogtreecommitdiff
path: root/Zend/zend_smart_str.c
diff options
context:
space:
mode:
authorJoe Watkins <krakjoe@php.net>2017-01-02 09:42:03 +0000
committerJoe Watkins <krakjoe@php.net>2017-01-02 09:42:03 +0000
commitf8b291d2885c7b9a92d6a1af9f630ad619e4c875 (patch)
treef12fa8ebef15c2aeb9048df2bb55300df6a0a948 /Zend/zend_smart_str.c
parent8c5647eef1f456e969cb815bbb1b3e51535804e8 (diff)
parentf3f594a47d63e993595ad344614cee4a910305b1 (diff)
downloadphp-git-f8b291d2885c7b9a92d6a1af9f630ad619e4c875.tar.gz
Merge branch 'master' of git.php.net:/php-src
* 'master' of git.php.net:/php-src: Switch reflection to use smart_str Add smart_str_append_printf Make printf_to_smart_str(ing) the primitive printf operation Export zend_s(tr)pprintf Sync smart_string implementation with smart_str Move smart_string to Zend Fixed bug #73154 Flush stderr on win32 in cli_log_message Fixed bug #73154
Diffstat (limited to 'Zend/zend_smart_str.c')
-rw-r--r--Zend/zend_smart_str.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Zend/zend_smart_str.c b/Zend/zend_smart_str.c
index c9b97acd1d..a42c9f0af4 100644
--- a/Zend/zend_smart_str.c
+++ b/Zend/zend_smart_str.c
@@ -117,3 +117,10 @@ ZEND_API void ZEND_FASTCALL smart_str_append_escaped(smart_str *str, const char
}
}
}
+
+ZEND_API void ZEND_FASTCALL smart_str_append_printf(smart_str *dest, const char *format, ...) {
+ va_list arg;
+ va_start(arg, format);
+ zend_printf_to_smart_str(dest, format, arg);
+ va_end(arg);
+}