⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.74
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-pear
/
pear
/
tests
/
Date
/
tests
/
bugs
/
Edit File: bug-967.phpt
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */ // CVS: $Id: bug-967.phpt,v 1.1 2006/11/20 09:07:18 firman Exp $ ?> --TEST-- Bug #967: Date_TimeZone uses a bad global variable --FILE-- <?php /** * Test for: Date_TimeZone * Parts tested: Date_TimeZone::setDefault() and Date_TimeZone::getDefault() */ require_once 'Date/TimeZone.php'; // Sets default timezone via a global variable. $_DATE_TIMEZONE_DEFAULT = 'Pacific/Chatham'; $tz = Date_TimeZone::getDefault(); echo 'Date_TimeZone::$id = ' . $tz->id . "\n"; // Sets default timezone via Date_TimeZone::setDefault(). Date_TimeZone::setDefault('CST'); $default = 'EST'; $tz = Date_TimeZone::getDefault(); echo 'Date_TimeZone::$id = ' . $tz->id . "\n"; echo '$GLOBALS[\'_DATE_TIMEZONE_DEFAULT\'] = ' . $_DATE_TIMEZONE_DEFAULT . "\n"; ?> --EXPECT-- Date_TimeZone::$id = Pacific/Chatham Date_TimeZone::$id = CST $GLOBALS['_DATE_TIMEZONE_DEFAULT'] = CST <?php /* * Local variables: * mode: php * tab-width: 4 * c-basic-offset: 4 * c-hanging-comment-ender-p: nil * End: */ ?>
Simpan