Skip to content

Commit 10f35fc

Browse files
committed
Merge branch 'xdebug_3_4'
2 parents ea78389 + 0dd42ea commit 10f35fc

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.azure-pipelines.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ jobs:
5050
- template: .azure/macos/job.yml
5151
parameters:
5252
configurationName: 'OSX_PHP_80_ZTS'
53-
phpVersion: '8.0.31'
53+
phpVersion: '8.0.30'
5454
configurationParameters: '--enable-debug --enable-zts'
5555
xdebugConfigurationParameters: '--without-xdebug-compression'

src/lib/var.c

+1
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

+14
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)