/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/date/tests/bug68406.phpt
34 строки
593 B
Máté Kocsis
Add many missing closing PHP tags to tests
09 авг 2020, 23:03
Не верифицирован
09 авг 2020, 23:03
7aacc70
Код
Авторство
О чём код?
--TEST-- Bug #68406 calling var_dump on a DateTimeZone object modifies it --INI-- date.timezone=UTC --FILE-- <?php $tz1 = new DateTimeZone('Europe/Berlin'); $tz2 = new DateTimeZone('Europe/Berlin'); $d = new DateTime('2014-12-24 13:00:00', $tz1); var_dump($d->getTimezone(), $tz2); if($tz2 == $d->getTimezone()) { echo "yes"; } else { echo "no"; } ?> --EXPECT-- object(DateTimeZone)#4 (2) { ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Berlin" } object(DateTimeZone)#2 (2) { ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Berlin" } yes