From 20d85e4f0214035e41e6f2c33dd11ffb5c37e8ca Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sat, 13 Jun 2015 10:56:30 +0800 Subject: [PATCH] typo --- Zend/zend_compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index c6e6ff85c7..7e25c89781 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -4999,7 +4999,7 @@ void zend_compile_class_decl(zend_ast *ast) /* {{{ */ zend_class_entry *original_ce = CG(active_class_entry); znode original_implementing_class = FC(implementing_class); - if (EXPECTED(decl->flags & ZEND_ACC_ANON_CLASS) == 0) { + if (EXPECTED((decl->flags & ZEND_ACC_ANON_CLASS) == 0)) { if (CG(active_class_entry)) { zend_error_noreturn(E_COMPILE_ERROR, "Class declarations may not be nested"); } @@ -5043,7 +5043,7 @@ void zend_compile_class_decl(zend_ast *ast) /* {{{ */ ce->info.user.doc_comment = zend_string_copy(decl->doc_comment); } - if (UNEXPECTED(decl->flags & ZEND_ACC_ANON_CLASS)) { + if (UNEXPECTED((decl->flags & ZEND_ACC_ANON_CLASS))) { /* Serialization is not supported for anonymous classes */ ce->serialize = zend_class_serialize_deny; ce->unserialize = zend_class_unserialize_deny; -- 2.50.1