bug43957.phpt   [plain text]


--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?