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 #75378 ([REGRESSION] IntlDateFormatter::parse() does not change $position arg..

Decoded Output download

--TEST--
Bug #75378 ([REGRESSION] IntlDateFormatter::parse() does not change $position argument)
--EXTENSIONS--
intl
--FILE--
<?php

$formatter = new IntlDateFormatter("en-GB", IntlDateFormatter::NONE, IntlDateFormatter::NONE, 'UTC', null, 'yyyy-MM-dd');
$position = 0;
$parsedDate = $formatter->parse("2017-10-12", $position);
var_dump($position);
$localdate = $formatter->localtime("2017-10-12 00:00:00", $position1);
var_dump($position1);
?>
--EXPECT--
int(10)
int(10)

Did this file decode correctly?

Original Code

--TEST--
Bug #75378 ([REGRESSION] IntlDateFormatter::parse() does not change $position argument)
--EXTENSIONS--
intl
--FILE--
<?php

$formatter = new IntlDateFormatter("en-GB", IntlDateFormatter::NONE, IntlDateFormatter::NONE, 'UTC', null, 'yyyy-MM-dd');
$position = 0;
$parsedDate = $formatter->parse("2017-10-12", $position);
var_dump($position);
$localdate = $formatter->localtime("2017-10-12 00:00:00", $position1);
var_dump($position1);
?>
--EXPECT--
int(10)
int(10)

Function Calls

None

Variables

None

Stats

MD5 2bef1a7f41527368850ce5d01f1a4109
Eval Count 0
Decode Time 92 ms