#34373 [Asn->Bgs]: Undefined function error calling timezone_identifiers_list() function.

From: Date: Mon, 05 Sep 2005 07:12:12 +0000
Subject: #34373 [Asn->Bgs]: Undefined function error calling timezone_identifiers_list() function.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-84540@lists.php.net to get a copy of this message
ID: 34373 Updated by: derick@php.net Reported By: nickj-phpbugs at nickj dot org -Status: Assigned +Status: Bogus Bug Type: Date/time related Operating System: Debian Woody GNU/Linux 3.0r6 PHP Version: 5CVS-2005-09-05 (snap) Assigned To: derick New Comment: No bug, it's not enabled yet unless you compile with -DEXPERIMENTAL_DATE_SUPPORT as CFLAGS Previous Comments: ------------------------------------------------------------------------ [2005-09-05 09:09:32] nickj-phpbugs at nickj dot org Description: ------------ I read in the "PHP Time Handling" talk at http://www.derickrethans.nl/files/time-ac2005.pdf on slide 24 that there was a new date-related function called "timezone_identifiers_list()". This function also appears in the "Functions in PHP CVS but not PHP Documentation" list, at http://www.phpdoc.info/meta/phpsrc-vs-phpdoc.php , so I hope I'm correct in assuming that this function should work in the latest PHP 5.1 CVS snapshot. However, I get an "undefined function" error when calling this function: ====================================================== ludo:~/tmp/php-5.1-dev/my-bugs/timezone_identifiers_list# cat print_timezones.php <?php $tzs = timezone_identifiers_list(); print_r($tzs); ?> ====================================================== Error: ====================================================== ludo:~/tmp/php-5.1-dev/my-bugs/timezone_identifiers_list# ~/tmp/php-5.1-dev/php5-200509050430/sapi/cli/php ./print_timezones.php PHP Fatal error: Call to undefined function timezone_identifiers_list() in /root/tmp/php-5.1-dev/my-bugs/timezone_identifiers_list/print_timezones.php on line 2 ludo:~/tmp/php-5.1-dev/my-bugs/timezone_identifiers_list# ====================================================== ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34373&edit=1

« previous php.bugs (#84540) next »