]> granicus.if.org Git - php/commitdiff
Export php_date_get_interface_ce() for extension use
authorJeremy Mikola <jmikola@gmail.com>
Tue, 28 Jun 2016 18:30:58 +0000 (14:30 -0400)
committerNikita Popov <nikic@php.net>
Tue, 5 Jul 2016 14:19:45 +0000 (16:19 +0200)
NEWS
ext/date/php_date.c
ext/date/php_date.h

diff --git a/NEWS b/NEWS
index 9d392dacb200ec7b0267f49bfe67fe50093fec7e..dcb405547c35255f0d37512c08549237737b02c6 100644 (file)
--- 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
index d6cff1ad460fea766457cc9d37d3530b8210090a..411479770266818c71ed0a5d46a6d990f3a656cd 100644 (file)
@@ -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;
index c336268a95a5494818d96e575a5c751cd634997f..d3f4a4f44fd5449dede34614a29c9571382b9dbb 100644 (file)
@@ -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 */