summaryrefslogtreecommitdiff
path: root/ext/dom/php_dom.c
diff options
context:
space:
mode:
authorJoe Watkins <krakjoe@php.net>2017-01-01 06:52:41 +0000
committerJoe Watkins <krakjoe@php.net>2017-01-01 06:52:41 +0000
commitdbfbe6261d9b1c0928f6bd8bcb6c7aabb807ffcb (patch)
tree1610bfc70e90381d965a49ad84b36a1f71f88f55 /ext/dom/php_dom.c
parent299e02c82a1d4626e209f978001bba6d66885c05 (diff)
downloadphp-git-dbfbe6261d9b1c0928f6bd8bcb6c7aabb807ffcb.tar.gz
Revert "Fix dom class can't be inherited by the internal class"
This reverts commit 705f60e481b891d009ec9bb4c88390545ff95880.
Diffstat (limited to 'ext/dom/php_dom.c')
-rw-r--r--ext/dom/php_dom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c
index a59e63a87c..9879d81c1c 100644
--- a/ext/dom/php_dom.c
+++ b/ext/dom/php_dom.c
@@ -1075,7 +1075,7 @@ static dom_object* dom_objects_set_class(zend_class_entry *class_type, zend_bool
dom_object *intern = ecalloc(1, sizeof(dom_object) + zend_object_properties_size(class_type));
zend_class_entry *base_class = class_type;
- while ((base_class->type != ZEND_INTERNAL_CLASS || base_class->info.internal.module != &dom_module_entry) && base_class->parent != NULL) {
+ while (base_class->type != ZEND_INTERNAL_CLASS && base_class->parent != NULL) {
base_class = base_class->parent;
}