summaryrefslogtreecommitdiffstats
path: root/Autoload-xdebug3.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-10-27 08:27:43 +0100
committerRemi Collet <remi@remirepo.net>2020-10-27 08:27:43 +0100
commitaaf05fded2379c7c6db9a8fa11be75a371166b9f (patch)
treeb89907702ed910072097678a95e48644976c4c2f /Autoload-xdebug3.patch
parentfb97c8c623bcf6af6c4c8c6b8c348a145d1dbeaf (diff)
add upstream patch for PHP 8
add patch for Xdebug 3 from https://github.com/theseer/Autoload/pull/97
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();
++ }
+ }
+
+ }