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-- grapheme_substr() - Bug55562 - grapheme_substr() returns false if length paramete..
Decoded Output download
--TEST--
grapheme_substr() - Bug55562 - grapheme_substr() returns false if length parameter is to large
--EXTENSIONS--
intl
--FILE--
<?php
var_dump(
grapheme_substr('FOK', 1, 20), // expected: OK
grapheme_substr('', 1, 20) //expected:
);
?>
--EXPECT--
string(2) "OK"
string(6) ""
Did this file decode correctly?
Original Code
--TEST--
grapheme_substr() - Bug55562 - grapheme_substr() returns false if length parameter is to large
--EXTENSIONS--
intl
--FILE--
<?php
var_dump(
grapheme_substr('FOK', 1, 20), // expected: OK
grapheme_substr('', 1, 20) //expected:
);
?>
--EXPECT--
string(2) "OK"
string(6) ""
Function Calls
grapheme_substr | 1 |
Stats
MD5 | d7c4c7b53b920f3e8351b709866bb3d3 |
Eval Count | 0 |
Decode Time | 112 ms |