summaryrefslogtreecommitdiff
path: root/ext/simplexml/simplexml.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-01-08 20:27:35 +0000
committerMarcus Boerger <helly@php.net>2004-01-08 20:27:35 +0000
commit526c6bd09c20bd37bff474253f3589f1f15e3d03 (patch)
tree87fd9be19ab3986ab115490b412d190561ba655a /ext/simplexml/simplexml.c
parentfb38ee26a41a62704df1bd04ea66034f27f13b14 (diff)
downloadphp-git-526c6bd09c20bd37bff474253f3589f1f15e3d03.tar.gz
Fix windows build issue
Diffstat (limited to 'ext/simplexml/simplexml.c')
-rw-r--r--ext/simplexml/simplexml.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index f7daddbeed..1559f8b115 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -1613,9 +1613,6 @@ PHP_MINIT_FUNCTION(simplexml)
INIT_CLASS_ENTRY(sxe, "simplexml_element", sxe_functions);
sxe.create_object = sxe_object_new;
sxe_class_entry = zend_register_internal_class(&sxe TSRMLS_CC);
-#if HAVE_SPL && !defined(COMPILE_DL_SPL)
- zend_class_implements(sxe_class_entry TSRMLS_CC, 1, spl_ce_RecursiveIterator);
-#endif
sxe_class_entry->get_iterator = php_sxe_get_iterator;
sxe_object_handlers.get_method = zend_get_std_object_handlers()->get_method;
sxe_object_handlers.get_class_entry = zend_get_std_object_handlers()->get_class_entry;
@@ -1637,6 +1634,9 @@ PHP_MSHUTDOWN_FUNCTION(simplexml)
*/
PHP_RINIT_FUNCTION(simplexml)
{
+#if HAVE_SPL && !defined(COMPILE_DL_SPL)
+ zend_class_implements(sxe_class_entry TSRMLS_CC, 1, spl_ce_RecursiveIterator);
+#endif
return SUCCESS;
}
/* }}} */