From: Marcus Boerger Date: Tue, 9 May 2006 22:09:49 +0000 (+0000) Subject: - zend_spprintf() is actually used elsewhere in the engine X-Git-Tag: BEFORE_NEW_OUTPUT_API~255 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=482d57d5a390ccfbfcce8a2c4ffb97deaa570e21;p=php - zend_spprintf() is actually used elsewhere in the engine --- diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index b9c59f2a20..8a3c059e3f 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -551,7 +551,7 @@ ZEND_METHOD(exception, getTraceAsString) } /* }}} */ -static int zend_spprintf(char **message, int max_len, char *format, ...) +int zend_spprintf(char **message, int max_len, char *format, ...) { va_list arg; int len; diff --git a/Zend/zend_exceptions.h b/Zend/zend_exceptions.h index b82d45b44b..2179aa2700 100644 --- a/Zend/zend_exceptions.h +++ b/Zend/zend_exceptions.h @@ -48,6 +48,9 @@ extern ZEND_API void (*zend_throw_exception_hook)(zval *ex TSRMLS_DC); /* show an exception using zend_error(E_ERROR,...) */ ZEND_API void zend_exception_error(zval *exception TSRMLS_DC); +/* do not export, in php it's available thru spprintf directly */ +int zend_spprintf(char **message, int max_len, char *format, ...); + END_EXTERN_C() #endif