From d4bbbc0eabb6e871a4af527b1ca6675be9385533 Mon Sep 17 00:00:00 2001 From: Scott MacVicar Date: Fri, 14 Dec 2007 14:49:15 +0000 Subject: [PATCH] Change createFromTimestamp to setTimestamp --- NEWS | 2 +- ext/date/php_date.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 0d51ed9f6d..2770bfd459 100644 --- a/NEWS +++ b/NEWS @@ -23,7 +23,7 @@ PHP NEWS (Etienne Kneuss) - Added "compact" handler for Zend MM storage. (Dmitry) - Added "+" and "*" specifiers to zend_parse_parameters(). (Andrei) -- Added DateTime::createFromTimestamp() to set a unix timestamp without +- Added DateTime::setTimestamp() to set a unix timestamp without invoking the date parser. (Scott) - Upgraded PCRE to version 7.4 (Nuno) diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 5b7d582c68..85f359fa1b 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -209,7 +209,7 @@ const zend_function_entry date_funcs_date[] = { PHP_ME_MAPPING(setTime, date_time_set, NULL, 0) PHP_ME_MAPPING(setDate, date_date_set, NULL, 0) PHP_ME_MAPPING(setISODate, date_isodate_set, NULL, 0) - PHP_ME_MAPPING(createFromTimestamp, date_timestamp_set, NULL, 0) + PHP_ME_MAPPING(setTimestamp, date_timestamp_set, NULL, 0) {NULL, NULL, NULL} }; -- 2.50.1