summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2006-06-06 12:05:30 +0000
committerRob Richards <rrichards@php.net>2006-06-06 12:05:30 +0000
commitd6a526d66bbcd17e18f789e677f419e71acdbbb5 (patch)
treea260b856fa2b84ca9d0ad8709b23ea6af045f91e
parente8d568ea8dd3e9046a8fb272e7772da82f0d7a1a (diff)
downloadphp-git-d6a526d66bbcd17e18f789e677f419e71acdbbb5.tar.gz
restore missing ze1 compat code
-rw-r--r--ext/simplexml/simplexml.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index f1e2b1dcfa..21f94465de 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -1848,7 +1848,11 @@ php_sxe_register_object(php_sxe_object *intern TSRMLS_DC)
zend_object_value rv;
rv.handle = zend_objects_store_put(intern, sxe_object_dtor, (zend_objects_free_object_storage_t)sxe_object_free_storage, sxe_object_clone TSRMLS_CC);
- rv.handlers = (zend_object_handlers *) &sxe_object_handlers;
+ if (EG(ze1_compatibility_mode)) {
+ rv.handlers = (zend_object_handlers *) &sxe_ze1_object_handlers;
+ } else {
+ rv.handlers = (zend_object_handlers *) &sxe_object_handlers;
+ }
return rv;
}