projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix leaks
[m6w6/ext-psi]
/
src
/
error.c
diff --git
a/src/error.c
b/src/error.c
index 48a41ac2481dc99042da0d8540eb4503b7f1b1ee..8abb68695ea294c3b1b35175d2fb0a080978f29b 100644
(file)
--- a/
src/error.c
+++ b/
src/error.c
@@
-23,7
+23,11
@@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************/
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 */
#include "data.h"
/* zend_error_cb */
@@
-71,11
+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);
va_start(argv, msg);
psi_verror(type, fn, ln, msg, argv);
-#ifdef __clang__
va_end(argv);
va_end(argv);
+
va_start(argv, msg);
va_start(argv, msg);
-#endif
- PSI_DEBUG_PRINTV(context, msg, argv);
+ PSI_DEBUG_LOCK(context,
+ PSI_DEBUG_PRINTV(context, msg, argv);
+ PSI_DEBUG_PRINT(context, "\n");
+ );
va_end(argv);
if (context) {
va_end(argv);
if (context) {