cvs: php4 /ext/overload overload.c
| From: | Stig Bakken | Date: | Sun, 09 Dec 2001 22:39:26 +0000 |
| Subject: | cvs: php4 /ext/overload overload.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-8540@lists.php.net to get a copy of this message | ||
ssb Sun Dec 9 17:39:26 2001 EDT
Modified files:
/php4/ext/overload overload.c
Log:
* use macros in error messages
Index: php4/ext/overload/overload.c
diff -u php4/ext/overload/overload.c:1.8 php4/ext/overload/overload.c:1.9
--- php4/ext/overload/overload.c:1.8 Sat Dec 8 23:28:23 2001
+++ php4/ext/overload/overload.c Sun Dec 9 17:39:24 2001
@@ -171,7 +171,7 @@
Z_OBJCE_P(object) = orig_ce;
if (call_result == FAILURE || !retval) {
- php_error(E_WARNING, "unable to call %s::__get() handler", orig_ce->name);
+ php_error(E_WARNING, "unable to call %s::" GET_HANDLER "() handler",
orig_ce->name);
return 0;
}
@@ -234,7 +234,7 @@
Z_OBJCE_P(object) = orig_ce;
if (call_result == FAILURE || !retval) {
- php_error(E_WARNING, "unable to call %s::__set() handler", orig_ce->name);
+ php_error(E_WARNING, "unable to call %s::" SET_HANDLER "() handler",
orig_ce->name);
return 0;
}
@@ -486,7 +486,7 @@
if (call_result == FAILURE || !retval) {
efree(args);
- php_error(E_WARNING, "unable to call %s::__call() handler",
Z_OBJCE_P(object)->name);
+ php_error(E_WARNING, "unable to call %s::" CALL_HANDLER "() handler",
Z_OBJCE_P(object)->name);
return;
}
} else {