View Issue Details

IDProjectCategoryView StatusLast Update
0002130XdebugStep Debuggingpublic2023-04-03 17:41
ReporterEvowebFrance Assigned Toderick  
Status resolvedResolutionno change required 
Product Version3.2.0RC1 
Summary0002130: Crash when set an array with key containing "day-s".

I want to add to $GLOBALS special texts with this key "s_day-s" and it crashes when debug.
Without debugging, no crash.

Steps To Reproduce

Just try to debug this short PHP code, crash at line 4 :

$a = ["day-s" => "day(s)"];
foreach ($a as $k=>$v) {
$GLOBALS["s_".$k] = $v;

Additional Information

Xdebug configuration :

IDE version PHPSTORM V2022.2.3 (#PS-222.4345.15)
Firefox 105.0.3
PHP 8.0.13 on IIS 10.0

Windows Event observer :
Nom de l’application défaillante php-cgi.exe, version :, horodatage : 0x619429f5
Nom du module défaillant : ntdll.dll, version : 10.0.19041.2130, horodatage : 0xb5ced1c6
Code d’exception : 0xc0000409
Décalage d’erreur : 0x000000000008c67f
ID du processus défaillant : 0x57dc
Heure de début de l’application défaillante : 0x01d8e52f47578ee7
Chemin d’accès de l’application défaillante : C:\php-8.0\php-cgi.exe
Chemin d’accès du module défaillant: C:\windows\SYSTEM32\ntdll.dll
ID de rapport : e83a657b-727f-4ec3-bb21-589a5895b87e
Nom complet du package défaillant :
ID de l’application relative au package défaillant :

TagsNo tags attached.
Operating SystemWindows 10 21H2
PHP Version8.0.10-8.0.19



2022-10-21 09:49

administrator   ~0006413


Thanks for the report.

Could you share the Xdebug log file please?

You can make one by adding xdebug.log=/tmp/xdebug.log and xdebug.log_level=10 to your PHP.ini file, and then please attach it to this report.

I am asking as sometimes IDEs send things to Xdebug that are otherwise hard to imitate.



2023-03-21 20:25

reporter   ~0006539

$a = ["day-s" => "day(s)"];
foreach ($a as $k=>$v) {
$GLOBALS["s_".$k] = $v;

Works good with v3.2.1 for me


2023-04-03 17:41

administrator   ~0006543

Okay, thanks for letting me know. I don't see what would have caused this though, but glad it now works for you.

Issue History

Date Modified Username Field Change
2022-10-21 09:40 EvowebFrance New Issue
2022-10-21 09:49 derick Assigned To => derick
2022-10-21 09:49 derick Status new => feedback
2022-10-21 09:49 derick Note Added: 0006413
2022-10-21 09:53 EvowebFrance Status feedback => assigned
2023-03-21 20:25 MaxArhipov Note Added: 0006539
2023-04-03 17:41 derick Status assigned => resolved
2023-04-03 17:41 derick Resolution open => no change required
2023-04-03 17:41 derick Note Added: 0006543