]> granicus.if.org Git - php/commitdiff
Export access to class_entry by function.
authorMarcus Boerger <helly@php.net>
Sun, 18 Jan 2004 13:19:41 +0000 (13:19 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 18 Jan 2004 13:19:41 +0000 (13:19 +0000)
ext/simplexml/php_simplexml.h
ext/simplexml/simplexml.c

index 52615052a0a91ef3251e0503e5e37742b124728b..94b668aa92d53a96f1060e7ac3848d44ee1870a1 100644 (file)
@@ -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
 
 /*
index 6a2c0777206283b9008b493cf372f5730000b68d..3569cfbf701e218c5961e25258c26fdfec665f60 100644 (file)
 #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)