Browse Source

- zend_spprintf() is actually used elsewhere in the engine

migration/RELEASE_1_0_0
Marcus Boerger 20 years ago
parent
commit
482d57d5a3
  1. 2
      Zend/zend_exceptions.c
  2. 3
      Zend/zend_exceptions.h

2
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;

3
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

Loading…
Cancel
Save