]> granicus.if.org Git - php/commitdiff
- Copy and paste error -> unify error messages
authorDerick Rethans <derick@php.net>
Sun, 28 Jul 2002 19:29:28 +0000 (19:29 +0000)
committerDerick Rethans <derick@php.net>
Sun, 28 Jul 2002 19:29:28 +0000 (19:29 +0000)
ext/standard/md5.c
ext/standard/sha1.c

index 90215060032bed18e80b4c21d6564a343a508f74..775daf3f27c864dc4bc9f695697480e636ad7a9c 100644 (file)
@@ -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;
        }
 
index c4ab0d72b085881da9f736bd208f8c43a753722a..6ae6ef40f55f5f5e9278043233254325e59623dc 100644 (file)
@@ -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;
        }