summaryrefslogtreecommitdiff
path: root/ext/zip/zip.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zip/zip.c')
-rw-r--r--ext/zip/zip.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/zip/zip.c b/ext/zip/zip.c
index df36225471..0ae0454ba6 100644
--- a/ext/zip/zip.c
+++ b/ext/zip/zip.c
@@ -142,8 +142,7 @@ PHP_FUNCTION(zip_open)
archive_p = zzip_opendir(filename);
if (archive_p == NULL) {
- php_error(E_WARNING, "%s() Cannot open zip archive %s",
- get_active_function_name(TSRMLS_C), filename);
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot open zip archive %s", filename);
RETURN_FALSE;
}