summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Mikola <jmikola@gmail.com>2016-06-28 14:30:58 -0400
committerNikita Popov <nikic@php.net>2016-07-05 16:19:45 +0200
commit7aaa310d7ba08a408fb88ba23f2cc2458f13e040 (patch)
tree5a630d9bfcd464cfeb549faf258997680de1b59e
parentcc909a89231b0d17a8cc43b7b60a88ba5d6de4c4 (diff)
downloadphp-git-7aaa310d7ba08a408fb88ba23f2cc2458f13e040.tar.gz
Export php_date_get_interface_ce() for extension use
-rw-r--r--NEWS1
-rw-r--r--ext/date/php_date.c5
-rw-r--r--ext/date/php_date.h1
3 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 9d392dacb2..dcb405547c 100644
--- a/NEWS
+++ b/NEWS
@@ -24,6 +24,7 @@ PHP NEWS
. Timezone initialization failure from serialized data will now throw an
instance of Error from __wakeup() or __set_state() instead of resulting in
a fatal error. (Aaron Piotrowski)
+ . Export date_get_interface_ce() for extension use. (Jeremy Mikola)
- DOM:
. Invalid schema or RelaxNG validation contexts will throw an instance of
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index d6cff1ad46..4114797702 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -585,6 +585,11 @@ PHPAPI zend_class_entry *php_date_get_immutable_ce(void)
return date_ce_immutable;
}
+PHPAPI zend_class_entry *php_date_get_interface_ce(void)
+{
+ return date_ce_interface;
+}
+
PHPAPI zend_class_entry *php_date_get_timezone_ce(void)
{
return date_ce_timezone;
diff --git a/ext/date/php_date.h b/ext/date/php_date.h
index c336268a95..d3f4a4f44f 100644
--- a/ext/date/php_date.h
+++ b/ext/date/php_date.h
@@ -221,6 +221,7 @@ PHPAPI timelib_tzinfo *get_timezone_info(void);
/* Grabbing CE's so that other exts can use the date objects too */
PHPAPI zend_class_entry *php_date_get_date_ce(void);
PHPAPI zend_class_entry *php_date_get_immutable_ce(void);
+PHPAPI zend_class_entry *php_date_get_interface_ce(void);
PHPAPI zend_class_entry *php_date_get_timezone_ce(void);
/* Functions for creating DateTime objects, and initializing them from a string */