Skip to content

Commit 6f1849e

Browse files
committed
Export php_date_get_interface_ce() for extension use
1 parent 2710ce2 commit 6f1849e

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ PHP NEWS
1111
functions. (Pierrick)
1212
. Add support for HTTP/2 Server Push (davey)
1313

14+
- Date:
15+
. Export date_get_interface_ce for extension use (Jeremy Mikola)
16+
1417
- PCRE:
1518
. Fixed bug #72476 (Memleak in jit_stack). (Laruence)
1619
. Fixed bug #72463 (mail fails with invalid argument). (Anatol)

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)