[svn:PHP-Sandwich] r1450 - in PHP-Sandwich/trunk: . t
[email protected] 2 Aug 2005 18:25:15 -0000
| Newsgroups | perl.php.sandwich.dev |
|---|---|
| Message-ID | <[email protected]> |
Author: theory
Date: Tue Aug 2 11:25:15 2005
New Revision: 1450
Modified:
PHP-Sandwich/trunk/PHP.xs
PHP-Sandwich/trunk/t/13.t
PHP-Sandwich/trunk/t/20.t
Log:
Speling.
Modified: PHP-Sandwich/trunk/PHP.xs
==============================================================================
--- PHP-Sandwich/trunk/PHP.xs (original)
+++ PHP-Sandwich/trunk/PHP.xs Tue Aug 2 11:25:15 2005
@@ -595,7 +595,7 @@ SV *SAND_call(interp, method_name, ...)
zval_dtor(&method);
if(retval == NULL) {
INTERP_CTX_LEAVE();
- croakstr = "A PHP error occured\n";
+ croakstr = "A PHP error occurred\n";
} else {
RETVAL = newSVzval(retval, interp);
}
@@ -708,7 +708,7 @@ SV* SAND_instantiate(interp, class, ...)
ZVAL_STRING(&method, constructor->common.function_name, 1);
fci.function_name = &method;
if(zend_call_function(&fci, NULL TSRMLS_CC) == FAILURE) {
- croakstr = "an error occured in object constructor";
+ croakstr = "an error occurred in object constructor";
}
zval_dtor(&method);
}
@@ -962,12 +962,12 @@ SV *PHP_V_C__AUTOLOAD(self, method_name,
fci.retval_ptr_ptr = &retval;
/*
if(call_user_function_ex(EG(function_table), NULL, &calling_obj, &retval, param_count, ¶ms, 0, NULL TSRMLS_CC) != SUCCESS) {
- fprintf(stderr, "an error occured calling %s\n", method_name);
+ fprintf(stderr, "an error occurred calling %s\n", method_name);
RETVAL = &PL_sv_undef;
}
*/
if(zend_call_function(&fci, NULL TSRMLS_CC) == FAILURE) {
- croakstr = "an error occured while calling your method";
+ croakstr = "an error occurred while calling your method";
}
else {
switch(retval->type) {
Modified: PHP-Sandwich/trunk/t/13.t
==============================================================================
--- PHP-Sandwich/trunk/t/13.t (original)
+++ PHP-Sandwich/trunk/t/13.t Tue Aug 2 11:25:15 2005
@@ -12,4 +12,4 @@ $p->eval('function callme() { foo(); }')
eval {
$p->callme();
};
-like $@, qr/A PHP error occured/, "Fatal PHP errors can be caught";
+like $@, qr/A PHP error occurred/, "Fatal PHP errors can be caught";
Modified: PHP-Sandwich/trunk/t/20.t
==============================================================================
--- PHP-Sandwich/trunk/t/20.t (original)
+++ PHP-Sandwich/trunk/t/20.t Tue Aug 2 11:25:15 2005
@@ -11,7 +11,7 @@ ok $foo->addInterp, "Add an intepreter t
eval {
$foo->upper();
};
-is $@, "A PHP error occured\n", "Invalid code causes a croak()";
+is $@, "A PHP error occurred\n", "Invalid code causes a croak()";
package Foo;