Skip to content

Commit 0dd42ea

Browse files
committed
Merged pull request xdebug#997
2 parents 796a6b8 + 06788f6 commit 0dd42ea

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ jobs:
4444
- template: .azure/macos/job.yml
4545
parameters:
4646
configurationName: 'OSX_PHP_80_ZTS'
47-
phpVersion: '8.0.31'
47+
phpVersion: '8.0.30'
4848
configurationParameters: '--enable-debug --enable-zts'
4949
xdebugConfigurationParameters: '--without-xdebug-compression'

src/lib/var.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,7 @@ static const char xml_encode_count[256] = {
10391039
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
10401040
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
10411041
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1042+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
10421043
};
10431044

10441045
static const char* xml_encode_map[64] = {

tests/base/bug02319.phpt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--TEST--
2+
Test for bug #2319: Emojis are not handled correctly in xdebug's var_dumps
3+
--INI--
4+
xdebug.mode=develop
5+
html_errors=1
6+
--FILE--
7+
<?php
8+
$str = 'hello 👍';
9+
var_dump($str);
10+
?>
11+
--EXPECTF--
12+
<pre class='xdebug-var-dump' dir='ltr'>
13+
<small>%sbug02319.php:3:</small><small>string</small> <font color='#cc0000'>'hello 👍'</font> <i>(length=10)</i>
14+
</pre>

0 commit comments

Comments
 (0)