summaryrefslogtreecommitdiffstats
path: root/359.patch
blob: fe48fd3fdf51c7c2b61ac0d3f8b64dd1229de392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 1a7c4d9b50575e2738984bcaea1684d12535078d Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Wed, 5 Jul 2017 06:17:17 +0200
Subject: [PATCH] Used EG(active) instead of Removed EG(valid_symbol_table) -
 7.2.0alpha3

---
 xdebug_stack.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/xdebug_stack.c b/xdebug_stack.c
index 0e5b34ad..15bf5e82 100644
--- a/xdebug_stack.c
+++ b/xdebug_stack.c
@@ -800,7 +800,11 @@ void xdebug_error_cb(int type, const char *error_filename, const uint error_line
 			break;
 	}
 
+#if PHP_VERSION_ID >= 70200
+	if (PG(track_errors) && EG(active)) {
+#else
 	if (PG(track_errors) && EG(valid_symbol_table)) {
+#endif
 		zval tmp;
 		ZVAL_STRINGL(&tmp, buffer, buffer_len);