From: Antony Dovgal Date: Wed, 11 May 2005 21:16:29 +0000 (+0000) Subject: fix both win and gcc compile errors X-Git-Tag: php-5.0.1b1~252 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8056035197047eb687e657d456ad7b7397639564;p=php fix both win and gcc compile errors --- diff --git a/ext/soap/soap.c b/ext/soap/soap.c index 64f6aec0c9..5ff9ad60cf 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -1842,11 +1842,14 @@ static void soap_server_fault(char* code, char* string, char *actor, zval* detai static void soap_error_handler(int error_num, const char *error_filename, const uint error_lineno, const char *format, va_list args) { - zend_bool _old_in_compilation = CG(in_compilation); - zend_bool _old_in_execution = EG(in_execution); - zend_execute_data *_old_current_execute_data = EG(current_execute_data); + zend_bool _old_in_compilation, _old_in_execution; + zend_execute_data *_old_current_execute_data; TSRMLS_FETCH(); + _old_in_compilation = CG(in_compilation); + _old_in_execution = EG(in_execution); + _old_current_execute_data = EG(current_execute_data); + if (!SOAP_GLOBAL(use_soap_error_handler)) { old_error_handler(error_num, error_filename, error_lineno, format, args); return;