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 #81019: Unable to clone NumberFormatter after failed parse() --EXTENSIONS-- i..
Decoded Output download
--TEST--
Bug #81019: Unable to clone NumberFormatter after failed parse()
--EXTENSIONS--
intl
--FILE--
<?php
$fmt = new NumberFormatter('en_US', NumberFormatter::DECIMAL);
$fmt->parse('abc');
$fmt2 = clone $fmt;
$datefmt = new IntlDateFormatter('en_US', IntlDateFormatter::FULL, IntlDateFormatter::FULL);
$datefmt->parse('abc');
$datefmt2 = clone $datefmt;
$msgfmt = new MessageFormatter('en_US', '{0,number,integer}');
$msgfmt->parse('abc');
$msgfmt2 = clone $msgfmt;
?>
===DONE===
--EXPECT--
===DONE===
Did this file decode correctly?
Original Code
--TEST--
Bug #81019: Unable to clone NumberFormatter after failed parse()
--EXTENSIONS--
intl
--FILE--
<?php
$fmt = new NumberFormatter('en_US', NumberFormatter::DECIMAL);
$fmt->parse('abc');
$fmt2 = clone $fmt;
$datefmt = new IntlDateFormatter('en_US', IntlDateFormatter::FULL, IntlDateFormatter::FULL);
$datefmt->parse('abc');
$datefmt2 = clone $datefmt;
$msgfmt = new MessageFormatter('en_US', '{0,number,integer}');
$msgfmt->parse('abc');
$msgfmt2 = clone $msgfmt;
?>
===DONE===
--EXPECT--
===DONE===
Function Calls
None |
Stats
MD5 | 1dbb6f145961c9080398c34ef8737b43 |
Eval Count | 0 |
Decode Time | 93 ms |