summaryrefslogtreecommitdiffstats
path: root/Autoload-xdebug3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Autoload-xdebug3.patch')
-rw-r--r--Autoload-xdebug3.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/Autoload-xdebug3.patch b/Autoload-xdebug3.patch
new file mode 100644
index 0000000..0034c90
--- /dev/null
+++ b/Autoload-xdebug3.patch
@@ -0,0 +1,24 @@
+From cd91e690190551adb068ba0e968ca9673daf419b Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Tue, 27 Oct 2020 07:32:44 +0100
+Subject: [PATCH] fix for xdebug v3
+
+---
+ src/CLI.php | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/CLI.php b/src/CLI.php
+index 3c78ce8..5c87b3b 100644
+--- a/src/CLI.php
++++ b/src/CLI.php
+@@ -591,7 +591,9 @@ private function preBootstrap() {
+ ini_set('xdebug.scream', 0);
+ ini_set('xdebug.max_nesting_level', 8192);
+ ini_set('xdebug.show_exception_trace', 0);
+- xdebug_disable();
++ if (function_exists('xdebug_disable')) { // Xdebug v2
++ xdebug_disable();
++ }
+ }
+
+ }