From: Derick Rethans Date: Mon, 8 Jul 2002 11:52:57 +0000 (+0000) Subject: Unify error messages X-Git-Tag: dev~390 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd356fd0b99eb05d19b1dd4a616df90097baca88;p=php Unify error messages --- diff --git a/ext/standard/type.c b/ext/standard/type.c index 4527257c2e..06b830cc06 100644 --- a/ext/standard/type.c +++ b/ext/standard/type.c @@ -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;