| Description | When using ::class to dereference the result of an expression during step-debugging, then xdebug will crash. This seems to only happen when you put a breakpoint and use the editor to manually evaluate an expression. In my case I use PHPStorm.
In the attached script, I put a breakpoint on the echo statement and intercepted it via PHPStorm, once the step debugger is visible, hit ALT+F8 and the Evaluate window should open, paste in the expression from the echo and the crash should be triggered.
I'm not on a system currently that can assist much in deeper trashes but I left what I could by using pdb files |
|---|
| Additional Information | Xdebug 3.4.7 (not listed in the product version dropdown)
PhpStorm 2025.2.4 (Build #PS-252.27397.112, built on October 24, 2025)
PHP 8.4.14 (cli) (built: Oct 22 2025 08:46:50) (NTS Visual C++ 2022 x64)
Microsoft Windows [Version 10.0.19045.6456]
Stack trace:
> php8.dll!zval_ptr_dtor(_zval_struct * zval_ptr) Line 84 C
php_xdebug.dll!xdebug_dbgp_handle_eval(_xdebug_xml_node * * retval, _xdebug_con * context, xdebug_dbgp_arg * args) Line 1166 C
php_xdebug.dll!xdebug_dbgp_parse_option(_xdebug_con * context, char * line, int flags, _xdebug_xml_node * retval) Line 2207 C
php_xdebug.dll!xdebug_dbgp_cmdloop(_xdebug_con * context, int bail) Line 2316 C
php_xdebug.dll!xdebug_dbgp_breakpoint(_xdebug_con * context, _xdebug_vector * stack, _zend_string * filename, long lineno, int type, char * exception, char * code, const char * message, _xdebug_brk_info * brk_info, _zval_struct * return_value) Line 2693 C
php_xdebug.dll!xdebug_debugger_statement_call(_zend_string * filename, int lineno) Line 360 C
php_xdebug.dll!xdebug_statement_call(_zend_execute_data * frame) Line 780 C
php8.dll!zend_extension_statement_handler(const _zend_extension * extension, _zend_execute_data * frame) Line 2358 C
php8.dll!zend_llist_apply_with_argument(_zend_llist * l, void(*)(void *, void *) func, void * arg) Line 236 C
php8.dll!ZEND_EXT_STMT_SPEC_HANDLER(_zend_execute_data * execute_data) Line 3079 C
php8.dll!execute_ex_real(_zend_execute_data * ex) Line 58666 C
[External Code]
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2182 C
php8.dll!execute_ex_real(_zend_execute_data * ex) Line 58666 C
[External Code]
php8.dll!zend_execute(_zend_op_array * op_array, _zval_struct * return_value) Line 64320 C
php8.dll!zend_execute_script(int type, _zval_struct * retval, _zend_file_handle * file_handle) Line 1935 C
php8.dll!php_execute_script_ex(_zend_file_handle * primary_file, _zval_struct * retval) Line 2577 C
php84.exe!php_cli_server_dispatch_script(php_cli_server * server, php_cli_server_client * client) Line 2137 C
php84.exe!php_cli_server_dispatch(php_cli_server * server, php_cli_server_client * client) Line 2323 C
php84.exe!php_cli_server_do_event_for_each_fd_callback(void * _params, unsigned __int64 fd, int event) Line 2746 C
php84.exe!php_cli_server_poller_iter_on_active(php_cli_server_poller * poller, void * opaque, ZEND_RESULT_CODE(*)(void *, unsigned __int64, int)) Line 920 C
[Inline Frame] php84.exe!php_cli_server_do_event_for_each_fd(php_cli_server *) Line 2764 C
[Inline Frame] php84.exe!php_cli_server_do_event_loop(php_cli_server *) Line 2776 C
php84.exe!do_cli_server(int argc, char * * argv) Line 2908 C
php84.exe!main(int argc, char * * argv) Line 1313 C
[External Code]
Symbols:
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\php84.exe'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\php8.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\IPHLPAPI.DLL'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\dnsapi.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\nsi.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\ext\php_xdebug.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\ext\php_curl.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\Wldap32.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\libssl-3-x64.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\normaliz.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\libcrypto-3-x64.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\libssh2.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\nghttp2.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\ext\php_fileinfo.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\ext\php_mbstring.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\ext\php_mysqli.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\ext\php_openssl.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\ext\php_pdo_mysql.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\ext\php_pdo_pgsql.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\libpq.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\secur32.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\sspicli.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\ext\php_pdo_sqlite.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\libsqlite3.dll'. Module was built without symbols.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\ext\php_pgsql.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\ext\php_sqlite3.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\dev\php\8.4\ext\php_zip.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\mswsock.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Program Files\Bonjour\mdnsNSP.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\rasadhlp.dll'. Symbol loading disabled by Include/Exclude setting.
'php84.exe' (Win32): Loaded 'C:\Windows\System32\FWPUCLNT.DLL'. Symbol loading disabled by Include/Exclude setting.
The thread 9468 has exited with code 0 (0x0).
Unhandled exception at 0x00007FFB6D967EAD (php8.dll) in php84.exe: 0xC0000005: Access violation writing location 0x0000000000000002.
Variables from the frame before the crash:
+ &ret_zval 0x00000081ad3f8390 {value={lval=2 dval=9.881312916825e-324#DEN counted=0x0000000000000002 {gc={...} } ...} ...} _zval_struct *
+ *retval 0x000001e6330ffea0 {tag=0x00007ffb91d0de68 "response" text=0x0000000000000000 <NULL> attribute=0x000001e633179e70 {...} ...} _xdebug_xml_node *
PHP extensions:
C:\Users\Kalle>php84 -m
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
fileinfo
filter
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
random
readline
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xdebug
xml
xmlreader
xmlwriter
zip
zlib
[Zend Modules]
Xdebug
|
|---|