]> granicus.if.org Git - php/commitdiff
- zend_spprintf() is actually used elsewhere in the engine
authorMarcus Boerger <helly@php.net>
Tue, 9 May 2006 22:09:49 +0000 (22:09 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 9 May 2006 22:09:49 +0000 (22:09 +0000)
Zend/zend_exceptions.c
Zend/zend_exceptions.h

index b9c59f2a209e892d7708d8013376321ef231741d..8a3c059e3f6a17e0385e1f6d04ea74cd721af2d0 100644 (file)
@@ -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;
index b82d45b44bd35093c99472869c293e9adb471bc0..2179aa27005d9d13675ecfcaf2bf5078aafc941d 100644 (file)
@@ -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