|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34373 Undefined function error calling timezone_identifiers_list() function.
Submitted: 2005-09-05 09:09 UTC Modified: 2005-09-05 09:28 UTC
From: nickj-phpbugs at nickj dot org Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5CVS-2005-09-05 (snap) OS: Debian Woody GNU/Linux 3.0r6
Private report: No CVE-ID:
 [2005-09-05 09:09 UTC] nickj-phpbugs at nickj dot org
I read in the "PHP Time Handling" talk at 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 , 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 
$tzs = timezone_identifiers_list();      

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-05 09:12 UTC]
No bug, it's not enabled yet unless you compile with -DEXPERIMENTAL_DATE_SUPPORT as CFLAGS
 [2005-09-05 09:28 UTC] nickj-phpbugs at nickj dot org
Thank you, that works.

Note to self for future reference:
CFLAGS="-DEXPERIMENTAL_DATE_SUPPORT" ./configure --disable-libxml -disable-dom -disable-simplexml -disable-xml --without-pear
make clean
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Wed Nov 25 22:01:32 2015 UTC