Skip to content

Commit 1630e17

Browse files
author
Derick Rethans
committed
- Copy and paste error -> unify error messages
1 parent bffe4cf commit 1630e17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/standard/md5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ PHP_NAMED_FUNCTION(php_if_md5_file)
9090
}
9191

9292
if ((fp = VCWD_FOPEN(Z_STRVAL_PP(arg), "rb")) == NULL) {
93-
php_error(E_WARNING, "md5_file(): Unable to open file");
93+
php_error(E_WARNING, "%s(): Unable to open file", get_active_function_name (TSRMLS_C));
9494
RETURN_FALSE;
9595
}
9696

ext/standard/sha1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ PHP_FUNCTION(sha1_file)
8888
}
8989

9090
if ((fp = VCWD_FOPEN(Z_STRVAL_PP(arg), "rb")) == NULL) {
91-
php_error(E_WARNING, "md5_file(): Unable to open file");
91+
php_error(E_WARNING, "%s(): Unable to open file", get_active_function_name (TSRMLS_C));
9292
RETURN_FALSE;
9393
}
9494

0 commit comments

Comments
 (0)