From fd5a0b31640419ca63d1ddeaffd6d3cf2a741814 Mon Sep 17 00:00:00 2001 From: Ondřej Surý Date: Wed, 16 Feb 2011 10:13:02 +0100 Subject: Imported Upstream version 5.3.5 --- ext/mysqli/mysqli_exception.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ext/mysqli/mysqli_exception.c') diff --git a/ext/mysqli/mysqli_exception.c b/ext/mysqli/mysqli_exception.c index 2bf65d051..6372fb8ff 100644 --- a/ext/mysqli/mysqli_exception.c +++ b/ext/mysqli/mysqli_exception.c @@ -26,6 +26,7 @@ #include "php_ini.h" #include "ext/standard/info.h" #include "php_mysqli_structs.h" +#include "mysqli_priv.h" #include "zend_exceptions.h" /* {{{ mysqli_exception_methods[] @@ -35,13 +36,13 @@ const zend_function_entry mysqli_exception_methods[] = { }; /* }}} */ -void php_mysqli_throw_sql_exception(char *sqlstate, int errorno TSRMLS_DC, char *format, ...) +void php_mysqli_throw_sql_exception(char *sqlstate, int errorno TSRMLS_DC, char *format, ...) { zval *sql_ex; va_list arg; char *message; - va_start(arg, format); + va_start(arg, format); vspprintf(&message, 0, format, arg); va_end(arg);; -- cgit v1.2.3