X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ferror.c;h=8abb68695ea294c3b1b35175d2fb0a080978f29b;hp=af336a2260e434da0ba0fccb3898af08779e33ac;hb=44bd65fe60fb83fa4c3bbb0d4c679d2b70a096df;hpb=a7ac1c0a3c855321f21682c127a4b707de33a303 diff --git a/src/error.c b/src/error.c index af336a2..8abb686 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,7 +75,13 @@ 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); - PSI_DEBUG_PRINTV(context, msg, argv); + va_end(argv); + + va_start(argv, msg); + PSI_DEBUG_LOCK(context, + PSI_DEBUG_PRINTV(context, msg, argv); + PSI_DEBUG_PRINT(context, "\n"); + ); va_end(argv); if (context) {