Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Bug #68447: grapheme_extract take an extra trailing character --EXTENSIONS-- intl..
Decoded Output download
--TEST--
Bug #68447: grapheme_extract take an extra trailing character
--EXTENSIONS--
intl
--FILE--
<?php
$katsushikaku = "";
echo grapheme_extract($katsushikaku, 1) . "
";
$haiyore = "";
echo grapheme_extract($haiyore, 1, GRAPHEME_EXTR_COUNT) . "
";
echo grapheme_extract($haiyore, 2, GRAPHEME_EXTR_COUNT) . "
";
echo grapheme_extract($haiyore, 6, GRAPHEME_EXTR_MAXBYTES) . "
";
echo grapheme_extract($haiyore, 9, GRAPHEME_EXTR_MAXBYTES) . "
";
echo grapheme_extract($haiyore, 12, GRAPHEME_EXTR_MAXBYTES) . "
";
echo grapheme_extract($haiyore, 1, GRAPHEME_EXTR_MAXCHARS) . "
";
echo grapheme_extract($haiyore, 2, GRAPHEME_EXTR_MAXCHARS) . "
";
echo grapheme_extract($haiyore, 3, GRAPHEME_EXTR_MAXCHARS) . "
";
?>
--EXPECT--
Did this file decode correctly?
Original Code
--TEST--
Bug #68447: grapheme_extract take an extra trailing character
--EXTENSIONS--
intl
--FILE--
<?php
$katsushikaku = "";
echo grapheme_extract($katsushikaku, 1) . "\n";
$haiyore = "";
echo grapheme_extract($haiyore, 1, GRAPHEME_EXTR_COUNT) . "\n";
echo grapheme_extract($haiyore, 2, GRAPHEME_EXTR_COUNT) . "\n";
echo grapheme_extract($haiyore, 6, GRAPHEME_EXTR_MAXBYTES) . "\n";
echo grapheme_extract($haiyore, 9, GRAPHEME_EXTR_MAXBYTES) . "\n";
echo grapheme_extract($haiyore, 12, GRAPHEME_EXTR_MAXBYTES) . "\n";
echo grapheme_extract($haiyore, 1, GRAPHEME_EXTR_MAXCHARS) . "\n";
echo grapheme_extract($haiyore, 2, GRAPHEME_EXTR_MAXCHARS) . "\n";
echo grapheme_extract($haiyore, 3, GRAPHEME_EXTR_MAXCHARS) . "\n";
?>
--EXPECT--
Function Calls
grapheme_extract | 1 |
Stats
MD5 | 964d874e0c99bb3b601149440f2d9099 |
Eval Count | 0 |
Decode Time | 94 ms |