php.net |  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: None
 [2005-09-05 09:09 UTC] 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# 
======================================================


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-05 09:12 UTC] derick@php.net
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
make
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC