derick Sun May 3 19:58:50 2009 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/date php_date.c php_date.h
/php-src NEWS
Log:
- MFH: Added timezone_version_get() to retrieve the version of the used
timezone database.
http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.43.2.45.2.51.2.70&r2=1.43.2.45.2.51.2.71&diff_format=u
Index: php-src/ext/date/php_date.c
diff -u php-src/ext/date/php_date.c:1.43.2.45.2.51.2.70
php-src/ext/date/php_date.c:1.43.2.45.2.51.2.71
--- php-src/ext/date/php_date.c:1.43.2.45.2.51.2.70 Sun May 3 18:46:28 2009
+++ php-src/ext/date/php_date.c Sun May 3 19:58:49 2009
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_date.c,v 1.43.2.45.2.51.2.70 2009/05/03 18:46:28 derick Exp $ */
+/* $Id: php_date.c,v 1.43.2.45.2.51.2.71 2009/05/03 19:58:49 derick Exp $ */
#include "php.h"
#include "php_streams.h"
@@ -328,6 +328,9 @@
ZEND_BEGIN_ARG_INFO(arginfo_timezone_abbreviations_list, 0)
ZEND_END_ARG_INFO()
+ZEND_BEGIN_ARG_INFO(arginfo_timezone_version_get, 0)
+ZEND_END_ARG_INFO()
+
ZEND_BEGIN_ARG_INFO_EX(arginfo_date_interval_create_from_date_string, 0, 0, 1)
ZEND_ARG_INFO(0, time)
ZEND_END_ARG_INFO()
@@ -398,6 +401,7 @@
PHP_FE(timezone_location_get, arginfo_timezone_location_get)
PHP_FE(timezone_identifiers_list, arginfo_timezone_identifiers_list)
PHP_FE(timezone_abbreviations_list, arginfo_timezone_abbreviations_list)
+ PHP_FE(timezone_version_get, arginfo_timezone_version_get)
PHP_FE(date_interval_create_from_date_string,
arginfo_date_interval_create_from_date_string)
PHP_FE(date_interval_format, arginfo_date_interval_format)
@@ -3760,6 +3764,18 @@
}
/* }}} */
+/* {{{ proto array timezone_version_get()
+ Returns the Olson database version number.
+*/
+PHP_FUNCTION(timezone_version_get)
+{
+ const timelib_tzdb *tzdb;
+
+ tzdb = DATE_TIMEZONEDB;
+ RETURN_STRING(tzdb->version, 1);
+}
+/* }}} */
+
/* {{{ proto array timezone_abbreviations_list()
Returns associative array containing dst, offset and the timezone name
*/
http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.h?r1=1.17.2.11.2.3.2.11&r2=1.17.2.11.2.3.2.12&diff_format=u
Index: php-src/ext/date/php_date.h
diff -u php-src/ext/date/php_date.h:1.17.2.11.2.3.2.11
php-src/ext/date/php_date.h:1.17.2.11.2.3.2.12
--- php-src/ext/date/php_date.h:1.17.2.11.2.3.2.11 Wed Dec 31 11:15:35 2008
+++ php-src/ext/date/php_date.h Sun May 3 19:58:49 2009
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_date.h,v 1.17.2.11.2.3.2.11 2008/12/31 11:15:35 sebastian Exp $ */
+/* $Id: php_date.h,v 1.17.2.11.2.3.2.12 2009/05/03 19:58:49 derick Exp $ */
#ifndef PHP_DATE_H
#define PHP_DATE_H
@@ -79,6 +79,7 @@
PHP_FUNCTION(timezone_location_get);
PHP_FUNCTION(timezone_identifiers_list);
PHP_FUNCTION(timezone_abbreviations_list);
+PHP_FUNCTION(timezone_version_get);
PHP_METHOD(DateInterval, __construct);
PHP_FUNCTION(date_interval_format);
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.965.2.577&r2=1.2027.2.547.2.965.2.578&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.965.2.577
php-src/NEWS:1.2027.2.547.2.965.2.578
--- php-src/NEWS:1.2027.2.547.2.965.2.577 Sun May 3 18:46:28 2009
+++ php-src/NEWS Sun May 3 19:58:49 2009
@@ -13,6 +13,8 @@
- Implemented FR #41712 (curl progress callback: CURLOPT_PROGRESSFUNCTION).
(sdteffen[at]gmail[dot].com, Pierre)
+- Added timezone_version_get() to retrieve the version of the used timezone
+ database. (Derick)
- Added 'n' flag to fopen to allow passing O_NONBLOCK to the underlying
open(2) system call. (Mikko)
- Added "dechunk" filter which can decode HTTP responses with chunked
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php