Skip to content

Commit 7aaa310

Browse files
jmikolanikic
authored andcommitted
Export php_date_get_interface_ce() for extension use
1 parent cc909a8 commit 7aaa310

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ PHP NEWS
2424
. Timezone initialization failure from serialized data will now throw an
2525
instance of Error from __wakeup() or __set_state() instead of resulting in
2626
a fatal error. (Aaron Piotrowski)
27+
. Export date_get_interface_ce() for extension use. (Jeremy Mikola)
2728

2829
- DOM:
2930
. Invalid schema or RelaxNG validation contexts will throw an instance of

ext/date/php_date.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,11 @@ PHPAPI zend_class_entry *php_date_get_immutable_ce(void)
585585
return date_ce_immutable;
586586
}
587587

588+
PHPAPI zend_class_entry *php_date_get_interface_ce(void)
589+
{
590+
return date_ce_interface;
591+
}
592+
588593
PHPAPI zend_class_entry *php_date_get_timezone_ce(void)
589594
{
590595
return date_ce_timezone;

ext/date/php_date.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ PHPAPI timelib_tzinfo *get_timezone_info(void);
221221
/* Grabbing CE's so that other exts can use the date objects too */
222222
PHPAPI zend_class_entry *php_date_get_date_ce(void);
223223
PHPAPI zend_class_entry *php_date_get_immutable_ce(void);
224+
PHPAPI zend_class_entry *php_date_get_interface_ce(void);
224225
PHPAPI zend_class_entry *php_date_get_timezone_ce(void);
225226

226227
/* Functions for creating DateTime objects, and initializing them from a string */

0 commit comments

Comments
 (0)