com php-src: Export php_date_get_interface_ce() f or extension use: NEWS ext/date/php_date.c ext/ date/php_date.h

From: Date: Tue, 05 Jul 2016 14:19:45 +0000
Subject: com php-src: Export php_date_get_interface_ce() f or extension use: NEWS ext/date/php_date.c ext/ date/php_date.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92811@lists.php.net to get a copy of this message
Commit: 7aaa310d7ba08a408fb88ba23f2cc2458f13e040 Author: Jeremy Mikola <jmikola@gmail.com> Tue, 28 Jun 2016 14:30:58 -0400 Committer: Nikita Popov <nikic@php.net> Tue, 5 Jul 2016 16:19:45 +0200 Parents: cc909a89231b0d17a8cc43b7b60a88ba5d6de4c4 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7aaa310d7ba08a408fb88ba23f2cc2458f13e040 Log: Export php_date_get_interface_ce() for extension use Changed paths: M NEWS M ext/date/php_date..c M ext/date/php_date.h Diff: diff --git a/NEWS b/NEWS index 9d392da..dcb4055 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 d6cff1a..4114797 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 c336268..d3f4a4f 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 */

« previous php.cvs (#92811) next »