summaryrefslogtreecommitdiff
path: root/Zend/zend_smart_string.h
diff options
context:
space:
mode:
authorPhilip Prindeville <philipp@redfish-solutions.com>2017-08-09 20:55:25 -0600
committerAnatol Belski <ab@php.net>2017-08-19 13:51:44 +0200
commita1f3a0105d885879102d366de506c353a75c8d04 (patch)
tree4962cf151b72803c608a2c5d66b18897cdefa00c /Zend/zend_smart_string.h
parente7c85fc3e67aed78a31d6c61dec317940796a4bf (diff)
downloadphp-git-a1f3a0105d885879102d366de506c353a75c8d04.tar.gz
Turn php_syslog() into wrapper for syslog and split lines
Diffstat (limited to 'Zend/zend_smart_string.h')
-rw-r--r--Zend/zend_smart_string.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zend/zend_smart_string.h b/Zend/zend_smart_string.h
index 2282202792..12d755ee41 100644
--- a/Zend/zend_smart_string.h
+++ b/Zend/zend_smart_string.h
@@ -136,6 +136,10 @@ static zend_always_inline void smart_string_setl(smart_string *dest, char *src,
dest->c = src;
}
+static zend_always_inline void smart_string_reset(smart_string *str) {
+ str->len = 0;
+}
+
#endif
/*