[PHP-CVS] com php-src: Rename DateTimePoint to DateTimeImmutable.: ext/date/php_date.c ext/date/php_date.h ext/date/tests/date_time_immutable-inherited.phpt ext/date/tests/date_time_immutable.phpt ext

2013-01-14 Thread Derick Rethans
Commit:017b1f7fca09896b05f2602136ffba7585cd4bfe
Author:Derick Rethans  Wed, 19 Dec 2012 
16:24:38 +
Parents:   a0bea9a1de7123d52b0339ad9d883bbe231122d5
Branches:  PHP-5.5 master

Link:   
http://git.php.net/?p=php-src.git;a=commitdiff;h=017b1f7fca09896b05f2602136ffba7585cd4bfe

Log:
Rename DateTimePoint to DateTimeImmutable.

Changed paths:
  M  ext/date/php_date.c
  M  ext/date/php_date.h
  A  ext/date/tests/date_time_immutable-inherited.phpt
  A  ext/date/tests/date_time_immutable.phpt
  D  ext/date/tests/date_time_point-inherited.phpt
  D  ext/date/tests/date_time_point.phpt

diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index 3fbdaf2..596a7a9 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -385,9 +385,9 @@ const zend_function_entry date_functions[] = {
 
/* Advanced Interface */
PHP_FE(date_create, arginfo_date_create)
-   PHP_FE(date_create_point, arginfo_date_create)
+   PHP_FE(date_create_immutable, arginfo_date_create)
PHP_FE(date_create_from_format, arginfo_date_create_from_format)
-   PHP_FE(date_create_point_from_format, arginfo_date_create_from_format)
+   PHP_FE(date_create_immutable_from_format, 
arginfo_date_create_from_format)
PHP_FE(date_parse, arginfo_date_parse)
PHP_FE(date_parse_from_format, arginfo_date_parse_from_format)
PHP_FE(date_get_last_errors, arginfo_date_get_last_errors)
@@ -452,17 +452,17 @@ const zend_function_entry date_funcs_date[] = {
PHP_FE_END
 };
 
-const zend_function_entry date_funcs_point[] = {
-   PHP_ME(DateTimePoint, __construct,   arginfo_date_create, 
ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
-   PHP_ME(DateTimePoint, __set_state,   NULL, 
ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
-   PHP_ME(DateTimePoint, modify,arginfo_date_method_modify, 0)
-   PHP_ME(DateTimePoint, add,   arginfo_date_method_add, 0)
-   PHP_ME(DateTimePoint, sub,   arginfo_date_method_sub, 0)
-   PHP_ME(DateTimePoint, setTimezone,   arginfo_date_method_timezone_set, 
0)
-   PHP_ME(DateTimePoint, setTime,   arginfo_date_method_time_set, 0)
-   PHP_ME(DateTimePoint, setDate,   arginfo_date_method_date_set, 0)
-   PHP_ME(DateTimePoint, setISODate,arginfo_date_method_isodate_set, 0)
-   PHP_ME(DateTimePoint, setTimestamp,  arginfo_date_method_timestamp_set, 
0)
+const zend_function_entry date_funcs_immutable[] = {
+   PHP_ME(DateTimeImmutable, __construct,   arginfo_date_create, 
ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
+   PHP_ME(DateTimeImmutable, __set_state,   NULL, 
ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+   PHP_ME(DateTimeImmutable, modify,arginfo_date_method_modify, 0)
+   PHP_ME(DateTimeImmutable, add,   arginfo_date_method_add, 0)
+   PHP_ME(DateTimeImmutable, sub,   arginfo_date_method_sub, 0)
+   PHP_ME(DateTimeImmutable, setTimezone,   
arginfo_date_method_timezone_set, 0)
+   PHP_ME(DateTimeImmutable, setTime,   arginfo_date_method_time_set, 
0)
+   PHP_ME(DateTimeImmutable, setDate,   arginfo_date_method_date_set, 
0)
+   PHP_ME(DateTimeImmutable, setISODate,
arginfo_date_method_isodate_set, 0)
+   PHP_ME(DateTimeImmutable, setTimestamp,  
arginfo_date_method_timestamp_set, 0)
PHP_FE_END
 };
 
@@ -524,7 +524,7 @@ PHP_INI_END()
 /* }}} */
 
 zend_class_entry *date_ce_date, *date_ce_timezone, *date_ce_interval, 
*date_ce_period;
-zend_class_entry *date_ce_point;
+zend_class_entry *date_ce_immutable;
 
 
 PHPAPI zend_class_entry *php_date_get_date_ce(void)
@@ -532,9 +532,9 @@ PHPAPI zend_class_entry *php_date_get_date_ce(void)
return date_ce_date;
 }
 
-PHPAPI zend_class_entry *php_date_get_point_ce(void)
+PHPAPI zend_class_entry *php_date_get_immutable_ce(void)
 {
-   return date_ce_point;
+   return date_ce_immutable;
 }
 
 PHPAPI zend_class_entry *php_date_get_timezone_ce(void)
@@ -543,7 +543,7 @@ PHPAPI zend_class_entry *php_date_get_timezone_ce(void)
 }
 
 static zend_object_handlers date_object_handlers_date;
-static zend_object_handlers date_object_handlers_point;
+static zend_object_handlers date_object_handlers_immutable;
 static zend_object_handlers date_object_handlers_timezone;
 static zend_object_handlers date_object_handlers_interval;
 static zend_object_handlers date_object_handlers_period;
@@ -578,13 +578,13 @@ static void date_object_free_storage_interval(void 
*object TSRMLS_DC);
 static void date_object_free_storage_period(void *object TSRMLS_DC);
 
 static zend_object_value date_object_new_date(zend_class_entry *class_type 
TSRMLS_DC);
-static zend_object_value date_object_new_point(zend_class_entry *class_type 
TSRMLS_DC);
+static zend_object_value date_object_new_immutable(zend_class_entry 
*class_type TSRMLS_DC);
 static zend_object_value date_object_new_timezone(zend_class_entry *class_type 
TSRMLS_DC);
 static zend_object_value date_object_new_interval(zend_class_entry *class_type 
TSRMLS_DC);
 static zen

[PHP-CVS] com php-src: Rename DateTimePoint to DateTimeImmutable.: ext/date/php_date.c ext/date/php_date.h ext/date/tests/date_time_immutable-inherited.phpt ext/date/tests/date_time_immutable.phpt ext

2013-01-12 Thread Derick Rethans
Commit:8b9d23c0cfcdfaa39f0a7d097cc471143cd4f4d2
Author:Derick Rethans  Wed, 19 Dec 2012 
16:24:38 +
Parents:   0f679b926cb39f642ca051cb3ae6d7ab55db21fc
Branches:  immutable-date

Link:   
http://git.php.net/?p=php-src.git;a=commitdiff;h=8b9d23c0cfcdfaa39f0a7d097cc471143cd4f4d2

Log:
Rename DateTimePoint to DateTimeImmutable.

Changed paths:
  M  ext/date/php_date.c
  M  ext/date/php_date.h
  A  ext/date/tests/date_time_immutable-inherited.phpt
  A  ext/date/tests/date_time_immutable.phpt
  D  ext/date/tests/date_time_point-inherited.phpt
  D  ext/date/tests/date_time_point.phpt

diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index 3fbdaf2..596a7a9 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -385,9 +385,9 @@ const zend_function_entry date_functions[] = {
 
/* Advanced Interface */
PHP_FE(date_create, arginfo_date_create)
-   PHP_FE(date_create_point, arginfo_date_create)
+   PHP_FE(date_create_immutable, arginfo_date_create)
PHP_FE(date_create_from_format, arginfo_date_create_from_format)
-   PHP_FE(date_create_point_from_format, arginfo_date_create_from_format)
+   PHP_FE(date_create_immutable_from_format, 
arginfo_date_create_from_format)
PHP_FE(date_parse, arginfo_date_parse)
PHP_FE(date_parse_from_format, arginfo_date_parse_from_format)
PHP_FE(date_get_last_errors, arginfo_date_get_last_errors)
@@ -452,17 +452,17 @@ const zend_function_entry date_funcs_date[] = {
PHP_FE_END
 };
 
-const zend_function_entry date_funcs_point[] = {
-   PHP_ME(DateTimePoint, __construct,   arginfo_date_create, 
ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
-   PHP_ME(DateTimePoint, __set_state,   NULL, 
ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
-   PHP_ME(DateTimePoint, modify,arginfo_date_method_modify, 0)
-   PHP_ME(DateTimePoint, add,   arginfo_date_method_add, 0)
-   PHP_ME(DateTimePoint, sub,   arginfo_date_method_sub, 0)
-   PHP_ME(DateTimePoint, setTimezone,   arginfo_date_method_timezone_set, 
0)
-   PHP_ME(DateTimePoint, setTime,   arginfo_date_method_time_set, 0)
-   PHP_ME(DateTimePoint, setDate,   arginfo_date_method_date_set, 0)
-   PHP_ME(DateTimePoint, setISODate,arginfo_date_method_isodate_set, 0)
-   PHP_ME(DateTimePoint, setTimestamp,  arginfo_date_method_timestamp_set, 
0)
+const zend_function_entry date_funcs_immutable[] = {
+   PHP_ME(DateTimeImmutable, __construct,   arginfo_date_create, 
ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
+   PHP_ME(DateTimeImmutable, __set_state,   NULL, 
ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+   PHP_ME(DateTimeImmutable, modify,arginfo_date_method_modify, 0)
+   PHP_ME(DateTimeImmutable, add,   arginfo_date_method_add, 0)
+   PHP_ME(DateTimeImmutable, sub,   arginfo_date_method_sub, 0)
+   PHP_ME(DateTimeImmutable, setTimezone,   
arginfo_date_method_timezone_set, 0)
+   PHP_ME(DateTimeImmutable, setTime,   arginfo_date_method_time_set, 
0)
+   PHP_ME(DateTimeImmutable, setDate,   arginfo_date_method_date_set, 
0)
+   PHP_ME(DateTimeImmutable, setISODate,
arginfo_date_method_isodate_set, 0)
+   PHP_ME(DateTimeImmutable, setTimestamp,  
arginfo_date_method_timestamp_set, 0)
PHP_FE_END
 };
 
@@ -524,7 +524,7 @@ PHP_INI_END()
 /* }}} */
 
 zend_class_entry *date_ce_date, *date_ce_timezone, *date_ce_interval, 
*date_ce_period;
-zend_class_entry *date_ce_point;
+zend_class_entry *date_ce_immutable;
 
 
 PHPAPI zend_class_entry *php_date_get_date_ce(void)
@@ -532,9 +532,9 @@ PHPAPI zend_class_entry *php_date_get_date_ce(void)
return date_ce_date;
 }
 
-PHPAPI zend_class_entry *php_date_get_point_ce(void)
+PHPAPI zend_class_entry *php_date_get_immutable_ce(void)
 {
-   return date_ce_point;
+   return date_ce_immutable;
 }
 
 PHPAPI zend_class_entry *php_date_get_timezone_ce(void)
@@ -543,7 +543,7 @@ PHPAPI zend_class_entry *php_date_get_timezone_ce(void)
 }
 
 static zend_object_handlers date_object_handlers_date;
-static zend_object_handlers date_object_handlers_point;
+static zend_object_handlers date_object_handlers_immutable;
 static zend_object_handlers date_object_handlers_timezone;
 static zend_object_handlers date_object_handlers_interval;
 static zend_object_handlers date_object_handlers_period;
@@ -578,13 +578,13 @@ static void date_object_free_storage_interval(void 
*object TSRMLS_DC);
 static void date_object_free_storage_period(void *object TSRMLS_DC);
 
 static zend_object_value date_object_new_date(zend_class_entry *class_type 
TSRMLS_DC);
-static zend_object_value date_object_new_point(zend_class_entry *class_type 
TSRMLS_DC);
+static zend_object_value date_object_new_immutable(zend_class_entry 
*class_type TSRMLS_DC);
 static zend_object_value date_object_new_timezone(zend_class_entry *class_type 
TSRMLS_DC);
 static zend_object_value date_object_new_interval(zend_class_entry *class_type 
TSRMLS_DC);
 static zen

[PHP-CVS] com php-src: Rename DateTimePoint to DateTimeImmutable.: ext/date/php_date.c ext/date/php_date.h ext/date/tests/date_time_immutable-inherited.phpt ext/date/tests/date_time_immutable.phpt ext

2012-12-19 Thread Derick Rethans
Commit:6b48ae4580a0e97f7df4f1733eca345755110b96
Author:Derick Rethans  Wed, 19 Dec 2012 
16:24:38 +
Parents:   c69921f76e738b8512b91a198e9c4a144f462a11
Branches:  immutable-date

Link:   
http://git.php.net/?p=php-src.git;a=commitdiff;h=6b48ae4580a0e97f7df4f1733eca345755110b96

Log:
Rename DateTimePoint to DateTimeImmutable.

Changed paths:
  M  ext/date/php_date.c
  M  ext/date/php_date.h
  A  ext/date/tests/date_time_immutable-inherited.phpt
  A  ext/date/tests/date_time_immutable.phpt
  D  ext/date/tests/date_time_point-inherited.phpt
  D  ext/date/tests/date_time_point.phpt

diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index d028c30..db0bbe8 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -385,9 +385,9 @@ const zend_function_entry date_functions[] = {
 
/* Advanced Interface */
PHP_FE(date_create, arginfo_date_create)
-   PHP_FE(date_create_point, arginfo_date_create)
+   PHP_FE(date_create_immutable, arginfo_date_create)
PHP_FE(date_create_from_format, arginfo_date_create_from_format)
-   PHP_FE(date_create_point_from_format, arginfo_date_create_from_format)
+   PHP_FE(date_create_immutable_from_format, 
arginfo_date_create_from_format)
PHP_FE(date_parse, arginfo_date_parse)
PHP_FE(date_parse_from_format, arginfo_date_parse_from_format)
PHP_FE(date_get_last_errors, arginfo_date_get_last_errors)
@@ -452,17 +452,17 @@ const zend_function_entry date_funcs_date[] = {
PHP_FE_END
 };
 
-const zend_function_entry date_funcs_point[] = {
-   PHP_ME(DateTimePoint, __construct,   arginfo_date_create, 
ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
-   PHP_ME(DateTimePoint, __set_state,   NULL, 
ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
-   PHP_ME(DateTimePoint, modify,arginfo_date_method_modify, 0)
-   PHP_ME(DateTimePoint, add,   arginfo_date_method_add, 0)
-   PHP_ME(DateTimePoint, sub,   arginfo_date_method_sub, 0)
-   PHP_ME(DateTimePoint, setTimezone,   arginfo_date_method_timezone_set, 
0)
-   PHP_ME(DateTimePoint, setTime,   arginfo_date_method_time_set, 0)
-   PHP_ME(DateTimePoint, setDate,   arginfo_date_method_date_set, 0)
-   PHP_ME(DateTimePoint, setISODate,arginfo_date_method_isodate_set, 0)
-   PHP_ME(DateTimePoint, setTimestamp,  arginfo_date_method_timestamp_set, 
0)
+const zend_function_entry date_funcs_immutable[] = {
+   PHP_ME(DateTimeImmutable, __construct,   arginfo_date_create, 
ZEND_ACC_CTOR|ZEND_ACC_PUBLIC)
+   PHP_ME(DateTimeImmutable, __set_state,   NULL, 
ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+   PHP_ME(DateTimeImmutable, modify,arginfo_date_method_modify, 0)
+   PHP_ME(DateTimeImmutable, add,   arginfo_date_method_add, 0)
+   PHP_ME(DateTimeImmutable, sub,   arginfo_date_method_sub, 0)
+   PHP_ME(DateTimeImmutable, setTimezone,   
arginfo_date_method_timezone_set, 0)
+   PHP_ME(DateTimeImmutable, setTime,   arginfo_date_method_time_set, 
0)
+   PHP_ME(DateTimeImmutable, setDate,   arginfo_date_method_date_set, 
0)
+   PHP_ME(DateTimeImmutable, setISODate,
arginfo_date_method_isodate_set, 0)
+   PHP_ME(DateTimeImmutable, setTimestamp,  
arginfo_date_method_timestamp_set, 0)
PHP_FE_END
 };
 
@@ -522,7 +522,7 @@ PHP_INI_END()
 /* }}} */
 
 zend_class_entry *date_ce_date, *date_ce_timezone, *date_ce_interval, 
*date_ce_period;
-zend_class_entry *date_ce_point;
+zend_class_entry *date_ce_immutable;
 
 
 PHPAPI zend_class_entry *php_date_get_date_ce(void)
@@ -530,9 +530,9 @@ PHPAPI zend_class_entry *php_date_get_date_ce(void)
return date_ce_date;
 }
 
-PHPAPI zend_class_entry *php_date_get_point_ce(void)
+PHPAPI zend_class_entry *php_date_get_immutable_ce(void)
 {
-   return date_ce_point;
+   return date_ce_immutable;
 }
 
 PHPAPI zend_class_entry *php_date_get_timezone_ce(void)
@@ -541,7 +541,7 @@ PHPAPI zend_class_entry *php_date_get_timezone_ce(void)
 }
 
 static zend_object_handlers date_object_handlers_date;
-static zend_object_handlers date_object_handlers_point;
+static zend_object_handlers date_object_handlers_immutable;
 static zend_object_handlers date_object_handlers_timezone;
 static zend_object_handlers date_object_handlers_interval;
 static zend_object_handlers date_object_handlers_period;
@@ -576,13 +576,13 @@ static void date_object_free_storage_interval(void 
*object TSRMLS_DC);
 static void date_object_free_storage_period(void *object TSRMLS_DC);
 
 static zend_object_value date_object_new_date(zend_class_entry *class_type 
TSRMLS_DC);
-static zend_object_value date_object_new_point(zend_class_entry *class_type 
TSRMLS_DC);
+static zend_object_value date_object_new_immutable(zend_class_entry 
*class_type TSRMLS_DC);
 static zend_object_value date_object_new_timezone(zend_class_entry *class_type 
TSRMLS_DC);
 static zend_object_value date_object_new_interval(zend_class_entry *class_type 
TSRMLS_DC);
 static zen