X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Ferror.c;h=c130e71a268f61011e9beb5718c707f1c8326c60;hb=1124354f4666e9d10d9ad3acfa45fdba3b99cfc6;hp=486867bbfb1364338522a9dae218598b077c5c59;hpb=2fa436074ca9a5e87f39b696de832fa2188fcfc6;p=m6w6%2Fext-psi diff --git a/src/error.c b/src/error.c index 486867b..c130e71 100644 --- a/src/error.c +++ b/src/error.c @@ -23,7 +23,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *******************************************************************************/ -#include "php_psi_stdinc.h" +#ifdef HAVE_CONFIG_H +# include "config.h" +#else +# include "php_config.h" +#endif #include "data.h" /* zend_error_cb */ @@ -71,6 +75,11 @@ void psi_error_wrapper(struct psi_data *context, struct psi_token *t, int type, va_start(argv, msg); psi_verror(type, fn, ln, msg, argv); +#ifdef __clang__ + va_end(argv); + va_start(argv, msg); +#endif + PSI_DEBUG_PRINTV(context, msg, argv); va_end(argv); if (context) {