View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0002320 | Xdebug | Code Coverage | public | 2025-02-19 01:28 | 2025-04-04 10:43 | 
| Reporter | AlexanderU | Assigned To | derick | ||
| Priority | normal | Severity | minor | Reproducibility | always | 
| Status | resolved | Resolution | fixed | ||
| Platform | x86_64 | OS | Ubuntu | OS Version | 24.04 | 
| Product Version | 3.4.1 | ||||
| Fixed in Version | 3.4.2 | ||||
| Summary | 0002320: var_dump does not output 16 characters in Windows-1251 | ||||
| Description | var_dump a string encoded in Windows-1251 in the browser.  | ||||
| Steps To Reproduce | Open test_01.php in the browser: http://localhost/test_01.php  | ||||
| Additional Information | Tested in Ubuntu 24.04 + PHP8.3 + xdebug 3.2.0  and in Windows 10 + PHP8.4 + xdebug 3.4.1 (also PHP8.2, PHP8.1)  | ||||
| Tags | cyrillic, php8.3, php8.4, var_dump | ||||
| Attached Files |  test_01.php (641 bytes)   
 
<?php
      $encoding = 'Windows-1251';
      header('Content-Type:text/html;charset='.$encoding);
      $s = 'карта';
      $se = iconv('UTF-8', $encoding, $s);
      echo $se, '<br>';
      var_dump($se);
      echo '<br><br>';
      $s = 'абвгдежзийклмнопрстуфхцчшщъыьэюя';
      $se = iconv('UTF-8', $encoding, $s);
      echo $se, '<br>';
      var_dump($se);
      echo '<br><br>';
      $s = 'АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ';
      $se = iconv('UTF-8', $encoding, $s);
      echo $se, '<br>';
      var_dump($se);
      echo '<br><br>';
 | ||||
| Operating System | Ubuntu, Windows | ||||
| PHP Version | 8.3.5-8.3.9 | ||||
| 
		 | 
	
	 I believe this is a duplicate of #2319 for which I have linked a PR. There should be a link to Artifacts in the Github actions build for that for Windows binaries.  | 
| 
		 | 
	
	 https://github.com/xdebug/xdebug/actions/runs/13402799357#artifacts  | 
| Date Modified | Username | Field | Change | 
|---|---|---|---|
| 2025-02-19 01:28 | AlexanderU | New Issue | |
| 2025-02-19 01:28 | AlexanderU | Tag Attached: cyrillic | |
| 2025-02-19 01:28 | AlexanderU | Tag Attached: php8.3 | |
| 2025-02-19 01:28 | AlexanderU | Tag Attached: php8.4 | |
| 2025-02-19 01:28 | AlexanderU | Tag Attached: var_dump | |
| 2025-02-19 01:28 | AlexanderU | File Added: test_01.php | |
| 2025-02-19 01:28 | AlexanderU | File Added: php8-var_dump-xdebug--ubuntu.png | |
| 2025-02-19 07:47 | derick | Note Added: 0007182 | |
| 2025-02-19 07:48 | derick | Note Added: 0007184 | |
| 2025-04-04 10:43 | derick | Assigned To | => derick | 
| 2025-04-04 10:43 | derick | Status | new => resolved | 
| 2025-04-04 10:43 | derick | Resolution | open => fixed | 
| 2025-04-04 10:43 | derick | Fixed in Version | => 3.4.2 |