Xdebug >= 3.2 supports PHP 8.2 which is the last official stable version.
Thu, Dec 08, 2022 - Xdebug 3.2.0 + New features: - Fixed issue #1819: Allow a list of headers in 'xdebug.client_discovery_header' - Fixed issue #2079: Add pseudo hosts xdebug://gateway and xdebug://nameserver - Fixed issue #2086: Include return value in return breakpoint interruption response - Fixed issue #2087: Introduce step for the return state and virtual property for return value + Improvements: - Fixed issue #2062: Xdebug now records whether systemd's PrivateTmp is used in its diagnostics information - Fixed issue #2104: Add support for PHP 8.2 "SensitiveParameter" attribute - Fixed issue #2117: Removed emulated properties for closures, as PHP 8.2 adds debug information for them - Fixed issue #2122: Local variables are now available when using start_upon_error - Fixed issue #2123: Add warning in log and diagnositics information when a breakpoint is set on a non-existing file - Fixed issue #2138: Step debugger now disconnects and continues running the script, when the debugging client closes the connection - Fixed issue #2136: Duplicate line/conditional breakpoints are now rejected - Deprecations: - Fixed issue #2014: Drop support for PHP 7.2 - Fixed issue #2102: Drop support for PHP 7.3 - Fixed issue #2103: Drop support for PHP 7.4 = Fixed bugs: - Fixed issue #2002: xdebug_trace_handler_t handler members are not always checked for NULL when executing - Fixed issue #2045: Inapproriate frowny face - Fixed issue #2089: Alpine Linux does not support res_ninit - Fixed issue #2093: Fatal error: linux/rtnetlink.h: No such file or directory linux/rtnetlink.h - Fixed issue #2098: With breakpoint_include_return_value enabled step_out break at every function - Fixed issue #2105: 3.2.0alpha1 package misses the php-header.h file - Fixed issue #2108: Segfault on PHP8.1 with PHPUnit 10 when path coverage is enabled - Fixed issue #2113: Crash at step_into after thrown exception with return value debugging en - Fixed issue #2121: Xdebug does not use local independent float-to-string functions - Fixed issue #2124: Xdebug incorrectly reports that there are no children for static closure properties, even though there are - Fixed issue #2125: Crash with PHP 8.2 on 32-bit due to change in "not set" value with CATCH opcode - Fixed issue #2126: Problems with retrieving global variables - Fixed issue #2127: Tracing does not handle NUL char in anonymous closure scope - Fixed issue #2133: Warning with regards to extra NUL character in xdebug_setcookie call - Fixed issue #2134: Xdebug stops at the line where the exception is created, not where it is thrown - Fixed issue #2135: Xdebug stops twice at the same line after a call breakpoint or xdebug_break()
This compiles, but tests fail (they are disabled anyway): ``` --- xdebug-3.1.3.ebuild 2022-02-15 19:09:57.000000000 +0000 +++ xdebug-3.2.0.ebuild 2023-02-09 16:12:13.168287518 +0000 @@ -1,13 +1,13 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="7" +EAPI="8" PHP_EXT_NAME="xdebug" PHP_EXT_INI="yes" PHP_EXT_ZENDEXT="yes" PHP_EXT_INIFILE="3.0-xdebug.ini" -USE_PHP="php7-3 php7-4 php8-0 php8-1" +USE_PHP="php8-0 php8-1 php8-2" PHP_EXT_NEEDED_USE="-threads(-)" MY_PV="${PV/_/}" ```
Is there something blocking this? I tested the patch provided by Tomáš Mózes, which works perfectly!
*** Bug 902565 has been marked as a duplicate of this bug. ***
Anything missing/failing here for that bug to be processed?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2743b32d1fb07494f909c8f6efc78d1782bb4295 commit 2743b32d1fb07494f909c8f6efc78d1782bb4295 Author: Stefan Linke <particleflux@gmail.com> AuthorDate: 2023-09-24 13:03:30 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-09-25 02:32:51 +0000 dev-php/xdebug: add 3.2.1 Closes: https://bugs.gentoo.org/893758 Signed-off-by: Stefan Linke <particleflux@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/33032 Signed-off-by: Sam James <sam@gentoo.org> dev-php/xdebug/Manifest | 1 + dev-php/xdebug/xdebug-3.2.1.ebuild | 58 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+)