diff options
Diffstat (limited to 'ext/ming')
-rw-r--r-- | ext/ming/ming.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/ming/ming.c b/ext/ming/ming.c index 0fe88bec3d..3ea778420c 100644 --- a/ext/ming/ming.c +++ b/ext/ming/ming.c @@ -2707,13 +2707,14 @@ PHP_MINFO_FUNCTION(ming) /* {{{ todo PHP_MINIT_FUNCTION(ming) */ + /* custom error handler propagates ming errors up to php */ static void php_ming_error(char *msg, ...) { - TSRMLS_FETCH(); - va_list args; char *buffer; + + TSRMLS_FETCH(); va_start(args, msg); vspprintf(&buffer, 0, msg, args); |