Skip to content

Commit 7625a3b

Browse files
committed
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: spelling
2 parents 016f3c8 + 7e26296 commit 7625a3b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Zend/tests/traits/language018.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ class C1 {
1212
}
1313
?>
1414
--EXPECTF--
15-
Fatal error: Cannot use 'abstarct' as method modifier in %s on line %d
15+
Fatal error: Cannot use 'abstract' as method modifier in %s on line %d

Zend/zend_compile.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3835,7 +3835,7 @@ static void zend_add_trait_method(zend_class_entry *ce, const char *name, const
38353835
if (*overriden) {
38363836
if (zend_hash_quick_find(*overriden, arKey, nKeyLength, h, (void**) &existing_fn) == SUCCESS) {
38373837
if (existing_fn->common.fn_flags & ZEND_ACC_ABSTRACT) {
3838-
/* Make sure the trait method is compatible with previosly declared abstarct method */
3838+
/* Make sure the trait method is compatible with previosly declared abstract method */
38393839
if (!zend_traits_method_compatibility_check(fn, existing_fn TSRMLS_CC)) {
38403840
zend_error(E_COMPILE_ERROR, "Declaration of %s must be compatible with %s",
38413841
zend_get_function_declaration(fn TSRMLS_CC),
@@ -3858,7 +3858,7 @@ static void zend_add_trait_method(zend_class_entry *ce, const char *name, const
38583858
zend_hash_quick_update(*overriden, arKey, nKeyLength, h, fn, sizeof(zend_function), (void**)&fn);
38593859
return;
38603860
} else if (existing_fn->common.fn_flags & ZEND_ACC_ABSTRACT) {
3861-
/* Make sure the trait method is compatible with previosly declared abstarct method */
3861+
/* Make sure the trait method is compatible with previosly declared abstract method */
38623862
if (!zend_traits_method_compatibility_check(fn, existing_fn TSRMLS_CC)) {
38633863
zend_error(E_COMPILE_ERROR, "Declaration of %s must be compatible with %s",
38643864
zend_get_function_declaration(fn TSRMLS_CC),
@@ -3873,7 +3873,7 @@ static void zend_add_trait_method(zend_class_entry *ce, const char *name, const
38733873
}
38743874
return;
38753875
} else if ((existing_fn->common.scope->ce_flags & ZEND_ACC_TRAIT) == ZEND_ACC_TRAIT) {
3876-
/* two trais can't define the same non-abstarct method */
3876+
/* two trais can't define the same non-abstract method */
38773877
#if 1
38783878
zend_error(E_COMPILE_ERROR, "Trait method %s has not been applied, because there are collisions with other trait methods on %s",
38793879
name, ce->name);
@@ -4438,7 +4438,7 @@ void zend_add_trait_alias(znode *method_reference, znode *modifiers, znode *alia
44384438
zend_error(E_COMPILE_ERROR, "Cannot use 'static' as method modifier");
44394439
return;
44404440
} else if (Z_LVAL(modifiers->u.constant) == ZEND_ACC_ABSTRACT) {
4441-
zend_error(E_COMPILE_ERROR, "Cannot use 'abstarct' as method modifier");
4441+
zend_error(E_COMPILE_ERROR, "Cannot use 'abstract' as method modifier");
44424442
return;
44434443
} else if (Z_LVAL(modifiers->u.constant) == ZEND_ACC_FINAL) {
44444444
zend_error(E_COMPILE_ERROR, "Cannot use 'final' as method modifier");

0 commit comments

Comments
 (0)