From bd356fd0b99eb05d19b1dd4a616df90097baca88 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Mon, 8 Jul 2002 11:52:57 +0000 Subject: [PATCH] Unify error messages --- ext/standard/type.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.40.0