summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-09-03 14:50:35 +0300
committerDmitry Stogov <dmitry@zend.com>2018-09-03 14:50:35 +0300
commit887e126240acc71359429c79f485959d5c9a4a86 (patch)
treea70f8f382616216f641bbea3210318f752ad8aa6
parentf543476e899d5b1f0df5aac15758c4e0db18cb17 (diff)
downloadphp-git-887e126240acc71359429c79f485959d5c9a4a86.tar.gz
Fixed condition
-rw-r--r--Zend/zend_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 45e154cbe9..5831f6605c 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -6346,7 +6346,7 @@ void zend_compile_class_decl(zend_ast *ast, zend_bool toplevel) /* {{{ */
zend_class_entry *parent_ce = zend_lookup_class_ex(ce->parent_name, NULL, 0);
if (parent_ce
- && ((parent_ce->type != ZEND_INTERNAL_CLASS) || (CG(compiler_options) & ZEND_COMPILE_IGNORE_INTERNAL_CLASSES))
+ && ((parent_ce->type != ZEND_INTERNAL_CLASS) || !(CG(compiler_options) & ZEND_COMPILE_IGNORE_INTERNAL_CLASSES))
&& ((parent_ce->type != ZEND_USER_CLASS) || !(CG(compiler_options) & ZEND_COMPILE_IGNORE_OTHER_FILES) || (parent_ce->info.user.filename == ce->info.user.filename))
) {
if (EXPECTED(zend_hash_add_ptr(CG(class_table), lcname, ce) != NULL)) {