]> granicus.if.org Git - php/commitdiff
* use macros in error messages
authorStig Bakken <ssb@php.net>
Sun, 9 Dec 2001 22:39:24 +0000 (22:39 +0000)
committerStig Bakken <ssb@php.net>
Sun, 9 Dec 2001 22:39:24 +0000 (22:39 +0000)
ext/overload/overload.c

index a26715e1b66af702ce46eae22ef34b1b711a883a..8388ce80c6e391604ef1c93d1e4ec15bb2a9db59 100644 (file)
@@ -171,7 +171,7 @@ static int call_get_handler(zval *object, zval *prop_name, zval **prop_value TSR
        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 @@ int call_set_handler(zval *object, zval *prop_name, zval *value TSRMLS_DC)
        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 @@ static void overload_call_method(INTERNAL_FUNCTION_PARAMETERS, zend_property_ref
 
                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 {