View Issue Details

IDProjectCategoryView StatusLast Update
0002313XdebugCode Coveragepublic2025-03-09 16:08
ReporterUndralex Assigned To 
PriorityurgentSeveritycrashReproducibilityalways
Status closedResolutionno change required 
PlatformPHPOSWindowsOS Version10
Product Version3.4.0 
Fixed in Version3.4.2 
Summary0002313: var_dump does not output some Russian characters
Description

When outputting a string, var_dump does not display some of the Russian characters encoded in Windows-1251.
Or rather, characters whose codes are greater than or equal to F0

Steps To Reproduce

Install Windows 10
Download the latest version of PHP (8.4) c https://windows.php.net/download/
Install Apache 2.4 and PHP 8.4
Create a script test.php encoded in Windows-1251
header('Content-Type:text/html;charset=Windows-1251');
$s = '...'; // here is a complete set of Russian characters
echo 'php: ', phpversion(), ',  xdebug: ', phpversion('xdebug'), '

';
echo $s;
var_dump($s);
Execute in the browser http://localhost/test.php

Additional Information

If you disable the xdebug extension, the string is displayed without problems.

Tagscyrillic, php8.4, var_dump
Operating Systemwindows 10
PHP Version8.3.5-8.3.9

Relationships

related to 0002319 closedderick emoji character become diamond question marks 

Activities

Undralex

2025-01-16 02:06

reporter   ~0007153

Platform = Desktop PC
PHP v 8.4.2

derick

2025-01-16 10:35

administrator   ~0007154

There is way too little information in this report.

There is no actual script to test, and I'm certainly not going to "Install Windows 10".

It is also not "urgent" or a "crash".

Even if you provide an actual full test case, I sincerely doubt there is a bug in Xdebug here; and merely something where you are messing up character sets.

Undralex

2025-01-16 18:35

reporter   ~0007155

Unfortunately, there is no way to send a script here. There is no way to request a test in another version of Windows.
It's not clear what to do with a broken xdebug.
Most likely, this won't work in another OS either.

Undralex

2025-01-16 18:51

reporter   ~0007156

Undralex

2025-01-17 00:15

reporter   ~0007157

It might be clearer this way.
Everything worked fine in php 7

Undralex

2025-01-17 00:37

reporter   ~0007158

To reproduce this bug, you need to run a simple 4-line script. The question is, how do I pass this script to you?

Undralex

2025-01-17 00:39

reporter   ~0007159

Undralex

2025-02-01 18:47

reporter   ~0007168

Tested PHP 8.3 + xdebug on the Ubuntu operating system
var_dump does not output half of the lowercase characters in Windows-1251 encoding

derick

2025-03-09 16:06

administrator   ~0007206

Turns out to be a duplicate of 0002318 which is now fixed for Xdebug 3.4.2 (to be released soon).