com php-src: Merge branch 'PHP-5.5' into PHP-5.6: Zend/zend_c ompile.c

From: Date: Tue, 21 Apr 2015 14:37:00 +0000
Subject: com php-src: Merge branch 'PHP-5.5' into PHP-5.6: Zend/zend_c ompile.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86413@lists.php.net to get a copy of this message
Commit: 9d9ba493a2352c57f225ca96dec3c9b56a3b98c5 Author: Xinchen Hui <laruence@php.net> Tue, 21 Apr 2015 22:37:00 +0800 Parents: 160bf9c072f8db59c8412cfee9fa45faa1d7138e c667c26f616f91db5b890d39807c77c4720ba507 Branches: PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9d9ba493a2352c57f225ca96dec3c9b56a3b98c5 Log: Merge branch 'PHP-5.5' into PHP-5.6 Changed paths: MM Zend/zend_compile.c Diff: diff --cc Zend/zend_compile.c index 8f127d4,719f6e7..82cfb33 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@@ -4051,17 -3912,18 +4051,18 @@@ static void zend_add_trait_method(zend_ } zend_hash_quick_update(*overriden, arKey, nKeyLength, h, fn, sizeof(zend_function), (void**)&fn); return; - } else if (existing_fn->common.fn_flags & ZEND_ACC_ABSTRACT) { + } else if (existing_fn->common.fn_flags & ZEND_ACC_ABSTRACT && + (existing_fn->common.scope->ce_flags & ZEND_ACC_INTERFACE) == 0) { /* Make sure the trait method is compatible with previosly declared abstract method */ if (!zend_traits_method_compatibility_check(fn, existing_fn TSRMLS_CC)) { - zend_error(E_COMPILE_ERROR, "Declaration of %s must be compatible with %s", + zend_error_noreturn(E_COMPILE_ERROR, "Declaration of %s must be compatible with %s", zend_get_function_declaration(fn TSRMLS_CC), zend_get_function_declaration(existing_fn TSRMLS_CC)); } - } else if (fn->common.fn_flags & ZEND_ACC_ABSTRACT) { + } else if (fn->common.fn_flags & ZEND_ACC_ABSTRACT) { /* Make sure the abstract declaration is compatible with previous declaration */ if (!zend_traits_method_compatibility_check(existing_fn, fn TSRMLS_CC)) { - zend_error(E_COMPILE_ERROR, "Declaration of %s must be compatible with %s", + zend_error_noreturn(E_COMPILE_ERROR, "Declaration of %s must be compatible with %s", zend_get_function_declaration(fn TSRMLS_CC), zend_get_function_declaration(existing_fn TSRMLS_CC)); }

« previous php.cvs (#86413) next »