View Issue Details

IDProjectCategoryView StatusLast Update
0002428XdebugUncategorizedpublic2026-05-29 15:13
Reportererjot Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version3.5.1 
Target Version3.5dev 
Summary0002428: XDEBUG_MODE=develop and set_error_handler for deprecated null key in array
Description

when an error handler is added in the code, the array does not support null keys (which are deprecated as of 8.5.x)

Steps To Reproduce
➜  ~ XDEBUG_MODE=off php php85-nullkey-min.php
{
    "php": "8.5.6",
    "iterations": 100,
    "lost_dropped": 0,
    "kept_ok": 100
}

# OK!
➜  ~ XDEBUG_MODE=off php php85-nullkey-min.php  attach
attach error handler
{
    "php": "8.5.6",
    "iterations": 100,
    "lost_dropped": 0,
    "kept_ok": 100
}

# OK!
➜  ~ XDEBUG_MODE=develop php php85-nullkey-min.php
{
    "php": "8.5.6",
    "iterations": 100,
    "lost_dropped": 0,
    "kept_ok": 100
}

#OK!
➜  ~ XDEBUG_MODE=develop php php85-nullkey-min.php  attach
attach error handler
{
    "php": "8.5.6",
    "iterations": 100,
    "lost_dropped": 100,
    "kept_ok": 0

# WRONG!! kept_ok == 0, lost_droppped = 100!
Additional Information

PHP 8.5.6 (cli) (built: May 5 2026 21:19:36) (NTS)
Copyright (c) The PHP Group
Built by Shivam Mathur
Zend Engine v4.5.6, Copyright (c) Zend Technologies
with Xdebug v3.5.1, Copyright (c) 2002-2026, by Derick Rethans
with Zend OPcache v8.5.6, Copyright (c), by Zend Technologies

TagsNo tags attached.
Operating System
PHP Version8.5.0-8.5.4

Activities

There are no notes attached to this issue.