summaryrefslogtreecommitdiffstats
path: root/480.patch
blob: e7edfb682a60e276660306ffaf8b94849019568c (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
From 7cc30505aa9dea878526b3bc9cb9ffd6e2db1354 Mon Sep 17 00:00:00 2001
From: Derick Rethans <github@derickrethans.nl>
Date: Wed, 12 Jun 2019 19:57:49 +0100
Subject: [PATCH 1/2] Remove overload for removed
 ZEND_DECLARE_INHERITED_CLASS_DELAYED opcode

---
 xdebug.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/xdebug.c b/xdebug.c
index d3d2621dc..544e162a5 100644
--- a/xdebug.c
+++ b/xdebug.c
@@ -854,7 +854,6 @@ PHP_MINIT_FUNCTION(xdebug)
 #endif
 #if PHP_VERSION_ID >= 70400
 		XDEBUG_SET_OPCODE_OVERRIDE_COMMON(ZEND_DECLARE_CLASS);
-		XDEBUG_SET_OPCODE_OVERRIDE_COMMON(ZEND_DECLARE_INHERITED_CLASS_DELAYED);
 #endif
 #if PHP_VERSION_ID >= 70200
 		zend_set_user_opcode_handler(ZEND_SWITCH_STRING, xdebug_switch_handler);
@@ -1038,7 +1037,6 @@ PHP_MSHUTDOWN_FUNCTION(xdebug)
 #endif
 #if PHP_VERSION_ID >= 70400
 			zend_set_user_opcode_handler(ZEND_DECLARE_CLASS, NULL);
-			zend_set_user_opcode_handler(ZEND_DECLARE_INHERITED_CLASS_DELAYED, NULL);
 #endif
 #ifndef ZTS
 		}

From c84ba23a50b1c9a4929a6ce9416280173d7f3662 Mon Sep 17 00:00:00 2001
From: Derick Rethans <github@derickrethans.nl>
Date: Thu, 13 Jun 2019 00:15:58 +0100
Subject: [PATCH 2/2] Fixed latest resolved breakpoints test

---
 tests/bug01388-19.phpt | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/tests/bug01388-19.phpt b/tests/bug01388-19.phpt
index 7cd4c35b8..785889387 100644
--- a/tests/bug01388-19.phpt
+++ b/tests/bug01388-19.phpt
@@ -13,10 +13,10 @@ $filename = dirname(__FILE__) . '/bug01388-19.inc';
 $commands = array(
 	'feature_set -n resolved_breakpoints -v 1',
 	'step_into',
-	"breakpoint_set -t line -f file://{{$filename} -n 2",
-	"breakpoint_set -t line -f file://{{$filename} -n 4",
-	"breakpoint_set -t line -f file://{{$filename} -n 8",
-	"breakpoint_set -t line -f file://{{$filename} -n 9",
+	"breakpoint_set -t line -f file://{$filename} -n 2",
+	"breakpoint_set -t line -f file://{$filename} -n 4",
+	"breakpoint_set -t line -f file://{$filename} -n 8",
+	"breakpoint_set -t line -f file://{$filename} -n 9",
 	'run',
 	'run',
 	'run',
@@ -38,28 +38,28 @@ dbgpRunFile( $filename, $commands );
 <?xml version="1.0" encoding="iso-8859-1"?>
 <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="2" status="break" reason="ok"><xdebug:message filename="file://bug01388-19.inc" lineno="2"></xdebug:message></response>
 
--> breakpoint_set -i 3 -t line -f /home/derick/dev/php/derickr-xdebug/tests/bug01388-19.inc -n 2
+-> breakpoint_set -i 3 -t line -f file://bug01388-19.inc -n 2
 <?xml version="1.0" encoding="iso-8859-1"?>
 <notify xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" name="breakpoint_resolved"><breakpoint type="line" resolved="resolved" filename="file://bug01388-19.inc" lineno="2" state="enabled" hit_count="0" hit_value="0" id=""></breakpoint></notify>
 
 <?xml version="1.0" encoding="iso-8859-1"?>
 <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="3" id="" resolved="resolved"></response>
 
--> breakpoint_set -i 4 -t line -f /home/derick/dev/php/derickr-xdebug/tests/bug01388-19.inc -n 4
+-> breakpoint_set -i 4 -t line -f file://bug01388-19.inc -n 4
 <?xml version="1.0" encoding="iso-8859-1"?>
 <notify xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" name="breakpoint_resolved"><breakpoint type="line" resolved="resolved" filename="file://bug01388-19.inc" lineno="5" state="enabled" hit_count="0" hit_value="0" id=""></breakpoint></notify>
 
 <?xml version="1.0" encoding="iso-8859-1"?>
 <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="4" id="" resolved="resolved"></response>
 
--> breakpoint_set -i 5 -t line -f /home/derick/dev/php/derickr-xdebug/tests/bug01388-19.inc -n 8
+-> breakpoint_set -i 5 -t line -f file://bug01388-19.inc -n 8
 <?xml version="1.0" encoding="iso-8859-1"?>
 <notify xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" name="breakpoint_resolved"><breakpoint type="line" resolved="resolved" filename="file://bug01388-19.inc" lineno="8" state="enabled" hit_count="0" hit_value="0" id=""></breakpoint></notify>
 
 <?xml version="1.0" encoding="iso-8859-1"?>
 <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="5" id="" resolved="resolved"></response>
 
--> breakpoint_set -i 6 -t line -f /home/derick/dev/php/derickr-xdebug/tests/bug01388-19.inc -n 9
+-> breakpoint_set -i 6 -t line -f file://bug01388-19.inc -n 9
 <?xml version="1.0" encoding="iso-8859-1"?>
 <notify xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" name="breakpoint_resolved"><breakpoint type="line" resolved="resolved" filename="file://bug01388-19.inc" lineno="9" state="enabled" hit_count="0" hit_value="0" id=""></breakpoint></notify>