diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index b9c59f2a209..8a3c059e3f6 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 b82d45b44bd..2179aa27005 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