View Issue Details

IDProjectCategoryView StatusLast Update
0002313XdebugCode Coveragepublic2025-01-17 00:39
ReporterUndralex Assigned Toderick  
PriorityurgentSeveritycrashReproducibilityalways
Status resolvedResolutionno change required 
PlatformPHPOSWindowsOS Version10
Product Version3.4.0 
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

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

image.png (3,405 bytes)   
image.png (3,405 bytes)   

Undralex

2025-01-17 00:15

reporter   ~0007157

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

image-2.png (13,447 bytes)   
image-2.png (13,447 bytes)   

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

test_00.php (219 bytes)   
<?php
      header('Content-Type:text/html;charset=Windows-1251');
      $s = '��������';
      echo 'php: ', phpversion(), ', &nbsp;xdebug: ', phpversion('xdebug'), '<br><br>';
      echo $s;
      var_dump($s);
test_00.php (219 bytes)   

Issue History

Date Modified Username Field Change
2025-01-15 00:40 Undralex New Issue
2025-01-15 00:40 Undralex Tag Attached: cyrillic
2025-01-15 00:40 Undralex Tag Attached: php8.4
2025-01-15 00:40 Undralex Tag Attached: var_dump
2025-01-16 02:06 Undralex Note Added: 0007153
2025-01-16 10:35 derick Assigned To => derick
2025-01-16 10:35 derick Status new => resolved
2025-01-16 10:35 derick Resolution open => no change required
2025-01-16 10:35 derick Note Added: 0007154
2025-01-16 18:35 Undralex Note Added: 0007155
2025-01-16 18:51 Undralex Note Added: 0007156
2025-01-16 18:51 Undralex File Added: image.png
2025-01-17 00:15 Undralex Note Added: 0007157
2025-01-17 00:15 Undralex File Added: image-2.png
2025-01-17 00:37 Undralex Note Added: 0007158
2025-01-17 00:39 Undralex Note Added: 0007159
2025-01-17 00:39 Undralex File Added: test_00.php