]> granicus.if.org Git - php/commitdiff
- Fix error message wording (Kalle)
authorFelipe Pena <felipe@php.net>
Fri, 7 May 2010 17:18:49 +0000 (17:18 +0000)
committerFelipe Pena <felipe@php.net>
Fri, 7 May 2010 17:18:49 +0000 (17:18 +0000)
Zend/tests/traits/error_015.phpt
Zend/zend_compile.c

index 6d21c51bf94021199795a5b30f76bd3c33e697e0..32e2fd42a4f1dfc253f7ceb19a4ad48a8bcbcd69 100644 (file)
@@ -22,4 +22,4 @@ var_dump($x->test());
 
 ?>
 --EXPECTF--
-Fatal error: Failed to add aliased trait method (zzz) to trait table. Probably there is already a trait method with same name in %s on line %d
+Fatal error: Failed to add aliased trait method (zzz) to the trait table. There is probably already a trait method with same name in %s on line %d
index 20b75ad09be9dbe68b808a5e716c1f58b22a8e1f..18cd5e4b3904344201ad423a49351ab36addb208 100644 (file)
@@ -3534,7 +3534,7 @@ static int zend_traits_copy_functions(zend_function *fn TSRMLS_DC, int num_args,
                                        lcname = zend_str_tolower_dup(aliases[i]->alias, lcname_len);
 
                                        if (zend_hash_add(target, lcname, lcname_len+1, &fn_copy, sizeof(zend_function), NULL)==FAILURE) {
-                                               zend_error(E_ERROR, "Failed to add aliased trait method (%s) to trait table. Probably there is already a trait method with same name", fn_copy.common.function_name);
+                                               zend_error(E_ERROR, "Failed to add aliased trait method (%s) to the trait table. There is probably already a trait method with same name", fn_copy.common.function_name);
                                        }
                                        /* aliases[i]->function = fn_copy; */
                                        efree(lcname);
@@ -3579,7 +3579,7 @@ static int zend_traits_copy_functions(zend_function *fn TSRMLS_DC, int num_args,
                                                lcname2 = zend_str_tolower_dup(aliases[i]->alias, lcname2_len);
 
                                                if (zend_hash_add(target, lcname2, lcname2_len+1, &fn_copy2, sizeof(zend_function), NULL)==FAILURE) {
-                                                       zend_error(E_ERROR, "Failed to add aliased trait method (%s) to trait table. Probably there is already a trait method with same name", fn_copy2.common.function_name);
+                                                       zend_error(E_ERROR, "Failed to add aliased trait method (%s) to the trait table. There is probably already a trait method with same name", fn_copy2.common.function_name);
                                                }
                                                efree(lcname2);
                                        } else {
@@ -3596,7 +3596,7 @@ static int zend_traits_copy_functions(zend_function *fn TSRMLS_DC, int num_args,
                }
 
                if (zend_hash_add(target, lcname, fnname_len+1, &fn_copy, sizeof(zend_function), NULL)==FAILURE) {
-                       zend_error(E_ERROR, "Failed to add trait method (%s) to trait table. Probably there is already a trait method with same name", fn_copy.common.function_name);
+                       zend_error(E_ERROR, "Failed to add trait method (%s) to the trait table. There is probably already a trait method with same name", fn_copy.common.function_name);
                }
        }