]> granicus.if.org Git - php/commitdiff
- Fix typos
authorFelipe Pena <felipe@php.net>
Thu, 6 May 2010 18:28:45 +0000 (18:28 +0000)
committerFelipe Pena <felipe@php.net>
Thu, 6 May 2010 18:28:45 +0000 (18:28 +0000)
Zend/zend_compile.c

index 715429bef5537b96a47250123d58aa7c497eca33..197551097ac3f66c565ccc744d48052cb80f173d 100644 (file)
@@ -3530,7 +3530,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 added aliased trait method (%s) to trait table. Propably 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 trait table. Probably there is already a trait method with same name", fn_copy.common.function_name);
                                        }
                                        /* aliases[i]->function = fn_copy; */
                                        efree(lcname);
@@ -3575,7 +3575,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 added aliased trait method (%s) to trait table. Propably 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 trait table. Probably there is already a trait method with same name", fn_copy2.common.function_name);
                                                }
                                                efree(lcname2);
                                        } else {
@@ -3591,9 +3591,8 @@ 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 added trait method (%s) to trait table. Propably 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 trait table. Probably there is already a trait method with same name", fn_copy.common.function_name);
                }
        }