summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-01-18 13:19:41 +0000
committerMarcus Boerger <helly@php.net>2004-01-18 13:19:41 +0000
commit9d5ef0070f2311104de685a932e7c131fe3559ea (patch)
treedb3a54b9d4038c5ab5837b7e54a66a29bc0e52f5
parent743a8301023cd9834c82d977846fe1678052f6ab (diff)
downloadphp-git-9d5ef0070f2311104de685a932e7c131fe3559ea.tar.gz
Export access to class_entry by function.
-rw-r--r--ext/simplexml/php_simplexml.h2
-rw-r--r--ext/simplexml/simplexml.c7
2 files changed, 8 insertions, 1 deletions
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)