diff options
| author | Rasmus Lerdorf <rasmus@php.net> | 2008-01-29 23:21:20 +0000 |
|---|---|---|
| committer | Rasmus Lerdorf <rasmus@php.net> | 2008-01-29 23:21:20 +0000 |
| commit | 7b624a37bc89019c33bbddb656f287ca82f8ddbc (patch) | |
| tree | e9d72d1fda57ebd318eb64b195f8ee4c02a8a77d /ext/xml/tests/bug43957.phpt | |
| parent | 088d2d98b8294ef53209356b407c3b10070396c1 (diff) | |
| download | php-git-7b624a37bc89019c33bbddb656f287ca82f8ddbc.tar.gz | |
Fixed bug #43957 (utf8_decode() bogus conversion of partial multibyte UTF8 char)
Diffstat (limited to 'ext/xml/tests/bug43957.phpt')
| -rw-r--r-- | ext/xml/tests/bug43957.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/xml/tests/bug43957.phpt b/ext/xml/tests/bug43957.phpt new file mode 100644 index 0000000000..34ddcd951d --- /dev/null +++ b/ext/xml/tests/bug43957.phpt @@ -0,0 +1,13 @@ +--TEST-- +Bug #43957 - utf8_decode() bogus conversion on multibyte indicator near end of string +--SKIPIF-- +<?php +require_once("skipif.inc"); +if (!extension_loaded('xml')) die ("skip xml extension not available"); +?> +--FILE-- +<?php + echo utf8_decode('abc'.chr(0xe0)); +?> +--EXPECTF-- +abc? |
