X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Ferror.c;h=af336a2260e434da0ba0fccb3898af08779e33ac;hb=a0f437f26cd0f121ee911a55327a68a3544bf15f;hp=c92b847e3530859083ce001bcb6f24237de36db0;hpb=9bcb1df0786a8193d65949c857baaba2f4296e84;p=m6w6%2Fext-psi diff --git a/src/error.c b/src/error.c index c92b847..af336a2 100644 --- a/src/error.c +++ b/src/error.c @@ -57,7 +57,7 @@ void psi_error_wrapper(struct psi_data *context, struct psi_token *t, int type, } if (t) { - fn = t->file; + fn = t->file->val; ln = t->line; } else if (zend_is_executing()) { fn = zend_get_executed_filename(); @@ -71,6 +71,7 @@ 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); if (context) {