View Issue Details

IDProjectCategoryView StatusLast Update
0002321XdebugUncategorizedpublic2025-03-10 14:46
ReporterVojta Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version3.4.1 
Fixed in Version3.4.2 
Summary0002321: Segfault when null is assigned to a superglobal
Description

PHP crashes with segmentation fault, when null is assigned to $_POST. This problem occurs only when xdebug is enabled.

Steps To Reproduce

echo '$_POST=null;\n$x=1;\n' | php -a

TagsNo tags attached.
Operating SystemLinux
PHP Version8.3.10-8.3.19

Activities

Vojta

2025-03-06 12:57

reporter   ~0007195

derick

2025-03-07 11:56

administrator   ~0007197

I could not reproduce this with your test case, but I could with a similar equivalent one.

This PR should fix it: https://github.com/xdebug/xdebug/pull/1001

derick

2025-03-07 12:09

administrator   ~0007199

This is now fixed in GIT for 3.4.2, of which I'll make a release soon.

Vojta

2025-03-10 14:46

reporter   ~0007208

Version 3.4.2 fixed my issue, thank you.