View Issue Details

IDProjectCategoryView StatusLast Update
0002343XdebugStep Debuggingpublic2025-04-27 12:28
Reportervlw Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformXdebug v3.4.2OSDebian GNU/LinuxOS Version12
Product Version3.4.2 
Summary0002343: Fatal error on virtual property hook step debugging
Description

Attempting to step debug any line within a PHP 8.4 virtual property block causes Xdebug to respond with a Fatal error.

Steps To Reproduce
  1. Load the attached example file: example.php
  2. Start step debugging on line 8 in the example file (the return statement)
  3. Xdebug will respond with an Error
Additional Information

Any line step debugged within a property hook/accessor block will cause this issue. It also seems to block further execution of the PHP script but that might be down to my setup so I'm not sure. Running my example script without Xdebug will echo the current date as expected.

php -v:

PHP 8.4.6 (cli) (built: Apr 11 2025 02:09:29) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.4.6, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.6, Copyright (c), by Zend Technologies
    with Xdebug v3.4.2, Copyright (c) 2002-2025, by Derick Rethans
TagsNo tags attached.
Attached Files
example.php (227 bytes)   
<?php

	$example = new class {
		public function __construct() {}

		public DateTimeImmutable $datetime {
			get {
				return new DateTimeImmutable();
			}
			set (mixed $void) {}
		}
	};

	echo $example->datetime->format("c");
example.php (227 bytes)   
xdebug.log (7,010 bytes)
Operating SystemDebain 12 Linux kernel 6.1.129-1 (2025-03-06) x86_64
PHP Version8.4-dev

Activities

Issue History

Date Modified Username Field Change
2025-04-27 12:28 vlw New Issue
2025-04-27 12:28 vlw File Added: example.php
2025-04-27 12:28 vlw File Added: xdebug.log