From: Marcus Boerger Date: Sun, 18 Jan 2004 13:19:41 +0000 (+0000) Subject: Export access to class_entry by function. X-Git-Tag: php_ibase_before_split~136 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d5ef0070f2311104de685a932e7c131fe3559ea;p=php Export access to class_entry by function. --- diff --git a/ext/simplexml/php_simplexml.h b/ext/simplexml/php_simplexml.h index 52615052a0..94b668aa92 100644 --- a/ext/simplexml/php_simplexml.h +++ b/ext/simplexml/php_simplexml.h @@ -80,6 +80,8 @@ typedef struct { #define SIMPLEXML_G(v) (simplexml_globals.v) #endif +PHP_API zend_class_entry *sxe_get_element_class_entry(); + #endif /* diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index 6a2c077720..3569cfbf70 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -34,7 +34,12 @@ #include "zend_default_classes.h" #include "zend_interfaces.h" -zend_class_entry *sxe_class_entry; +zend_class_entry *sxe_class_entry = NULL; + +PHP_API zend_class_entry *sxe_get_element_class_entry() +{ + return sxe_class_entry; +} #define SXE_ME(func, arg_info, flags) PHP_ME(simplexml_element, func, arg_info, flags)