On Tue, Dec 25, 2012 at 1:21 PM, Dmitry Stogov <dmi...@php.net> wrote:
> Commit: 7e2629635b09e0d0a546e475dca81b05a6ada65a > Author: Dmitry Stogov <dmi...@zend.com> Tue, 25 Dec 2012 > 16:21:25 +0400 > Parents: f0b459b7c41b392c0958f0f8149980a95bce69fb > Branches: PHP-5.4 PHP-5.5 master > > Link: > http://git.php.net/?p=php-src.git;a=commitdiff;h=7e2629635b09e0d0a546e475dca81b05a6ada65a > > Log: > spelling > > Changed paths: > M Zend/tests/traits/language018.phpt > M Zend/zend_compile.c > > > Diff: > diff --git a/Zend/tests/traits/language018.phpt > b/Zend/tests/traits/language018.phpt > index ac36698..169cb50 100644 > --- a/Zend/tests/traits/language018.phpt > +++ b/Zend/tests/traits/language018.phpt > @@ -12,4 +12,4 @@ class C1 { > } > ?> > --EXPECTF-- > -Fatal error: Cannot use 'abstarct' as method modifier in %s on line %d > +Fatal error: Cannot use 'abstract' as method modifier in %s on line %d > diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c > index 0a3850c..8f251ac 100644 > --- a/Zend/zend_compile.c > +++ b/Zend/zend_compile.c > @@ -3693,7 +3693,7 @@ static void zend_add_trait_method(zend_class_entry > *ce, const char *name, const > if (*overriden) { > if (zend_hash_quick_find(*overriden, > arKey, nKeyLength, h, (void**) &existing_fn) == SUCCESS) { > if (existing_fn->common.fn_flags & > ZEND_ACC_ABSTRACT) { > - /* Make sure the trait > method is compatible with previosly declared abstarct method */ > + /* 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_get_function_declaration(fn TSRMLS_CC), > @@ -3716,7 +3716,7 @@ static void zend_add_trait_method(zend_class_entry > *ce, const char *name, const > 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) { > - /* Make sure the trait method is compatible with > previosly declared abstarct method */ > + /* 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_get_function_declaration(fn > TSRMLS_CC), > @@ -3731,7 +3731,7 @@ static void zend_add_trait_method(zend_class_entry > *ce, const char *name, const > } > return; > } else if ((existing_fn->common.scope->ce_flags & > ZEND_ACC_TRAIT) == ZEND_ACC_TRAIT) { > - /* two trais can't define the same non-abstarct > method */ > + /* two trais can't define the same non-abstract > method */ > #if 1 > zend_error(E_COMPILE_ERROR, "Trait method %s has > not been applied, because there are collisions with other trait methods on > %s", > name, ce->name); > @@ -4296,7 +4296,7 @@ void zend_add_trait_alias(znode *method_reference, > znode *modifiers, znode *alia > zend_error(E_COMPILE_ERROR, "Cannot use 'static' as method > modifier"); > return; > } else if (Z_LVAL(modifiers->u.constant) == ZEND_ACC_ABSTRACT) { > - zend_error(E_COMPILE_ERROR, "Cannot use 'abstarct' as > method modifier"); > + zend_error(E_COMPILE_ERROR, "Cannot use 'abstract' as > method modifier"); > return; > } else if (Z_LVAL(modifiers->u.constant) == ZEND_ACC_FINAL) { > zend_error(E_COMPILE_ERROR, "Cannot use 'final' as method > modifier"); > Hey Dmitry! Could you please also fix the spelling of the "overriden" HT? Should be "overridden" :) Thanks, Nikita