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-- IntlDateFormatter::setTimeZone() bad args --EXTENSIONS-- intl --FILE-- <?php ini_..
Decoded Output download
--TEST--
IntlDateFormatter::setTimeZone() bad args
--EXTENSIONS--
intl
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "pt_PT");
ini_set("date.timezone", 'Atlantic/Azores');
$df = new IntlDateFormatter(NULL, 0, 0);
var_dump($df->setTimeZone(array()));
var_dump($df->setTimeZone('non existing timezone'));
?>
--EXPECTF--
Warning: Array to string conversion in %s on line %d
Warning: IntlDateFormatter::setTimeZone(): datefmt_set_timezone: No such time zone: 'Array' in %s on line %d
bool(false)
Warning: IntlDateFormatter::setTimeZone(): datefmt_set_timezone: No such time zone: 'non existing timezone' in %s on line %d
bool(false)
Did this file decode correctly?
Original Code
--TEST--
IntlDateFormatter::setTimeZone() bad args
--EXTENSIONS--
intl
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "pt_PT");
ini_set("date.timezone", 'Atlantic/Azores');
$df = new IntlDateFormatter(NULL, 0, 0);
var_dump($df->setTimeZone(array()));
var_dump($df->setTimeZone('non existing timezone'));
?>
--EXPECTF--
Warning: Array to string conversion in %s on line %d
Warning: IntlDateFormatter::setTimeZone(): datefmt_set_timezone: No such time zone: 'Array' in %s on line %d
bool(false)
Warning: IntlDateFormatter::setTimeZone(): datefmt_set_timezone: No such time zone: 'non existing timezone' in %s on line %d
bool(false)
Function Calls
| None |
Stats
| MD5 | f195783946059b246725e67f33c4d885 |
| Eval Count | 0 |
| Decode Time | 81 ms |