From: Derick Rethans Date: Sun, 28 Jul 2002 19:29:28 +0000 (+0000) Subject: - Copy and paste error -> unify error messages X-Git-Tag: dev~118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1630e1788f19c46b68b41cae0881076c6868bd10;p=php - Copy and paste error -> unify error messages --- diff --git a/ext/standard/md5.c b/ext/standard/md5.c index 9021506003..775daf3f27 100644 --- a/ext/standard/md5.c +++ b/ext/standard/md5.c @@ -90,7 +90,7 @@ PHP_NAMED_FUNCTION(php_if_md5_file) } if ((fp = VCWD_FOPEN(Z_STRVAL_PP(arg), "rb")) == NULL) { - php_error(E_WARNING, "md5_file(): Unable to open file"); + php_error(E_WARNING, "%s(): Unable to open file", get_active_function_name (TSRMLS_C)); RETURN_FALSE; } diff --git a/ext/standard/sha1.c b/ext/standard/sha1.c index c4ab0d72b0..6ae6ef40f5 100644 --- a/ext/standard/sha1.c +++ b/ext/standard/sha1.c @@ -88,7 +88,7 @@ PHP_FUNCTION(sha1_file) } if ((fp = VCWD_FOPEN(Z_STRVAL_PP(arg), "rb")) == NULL) { - php_error(E_WARNING, "md5_file(): Unable to open file"); + php_error(E_WARNING, "%s(): Unable to open file", get_active_function_name (TSRMLS_C)); RETURN_FALSE; }