]> granicus.if.org Git - php/commitdiff
Unify error messages
authorDerick Rethans <derick@php.net>
Mon, 8 Jul 2002 11:52:57 +0000 (11:52 +0000)
committerDerick Rethans <derick@php.net>
Mon, 8 Jul 2002 11:52:57 +0000 (11:52 +0000)
ext/standard/type.c

index 4527257c2ef1cc0560e8a81cce3a89aa62f00833..06b830cc06367ff2d8680a0319c2b0e2d4485fb6 100644 (file)
@@ -115,10 +115,10 @@ PHP_FUNCTION(settype)
        } else if (!strcasecmp(new_type, "null")) {
                convert_to_null(*var);
        } else if (!strcasecmp(new_type, "resource")) {
-               php_error(E_WARNING, "settype: cannot convert to resource type");
+               php_error(E_WARNING, "%s(): Cannot convert to resource type", get_active_function_name (TSRMLS_C));
                RETURN_FALSE;
        } else {
-               php_error(E_WARNING, "settype: invalid type");
+               php_error(E_WARNING, "%s(): Invalid type", get_active_function_name (TSRMLS_C));
                RETURN_FALSE;
        }
        RETVAL_TRUE;