From 3717342c9f6c08005cf3c32c721c81611a21d268 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Mon, 14 Aug 2006 15:39:28 +0000 Subject: [PATCH] - MFB: nuke unused parameter (not present in old versions) --- ext/zip/php_zip.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 6b18bc9e07..9fb12d5578 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -588,23 +588,22 @@ zend_module_entry zip_module_entry = { ZEND_GET_MODULE(zip) #endif -/* {{{ proto resource zip_open(string filename [,flags]) +/* {{{ proto resource zip_open(string filename) Create new zip using source uri for output */ PHP_FUNCTION(zip_open) { char *filename; int filename_len; zip_rsrc *rsrc_int; - long mode = 0; int err = 0; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &filename, &filename_len, &mode) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &filename, &filename_len) == FAILURE) { return; } rsrc_int = (zip_rsrc *)emalloc(sizeof(zip_rsrc)); - rsrc_int->za = zip_open(filename, mode, &err); + rsrc_int->za = zip_open(filename, 0, &err); if (rsrc_int->za == NULL) { efree(rsrc_int); RETURN_LONG((long)err); @@ -727,12 +726,12 @@ PHP_FUNCTION(zip_entry_close) PHP_FUNCTION(zip_entry_read) { zval * zip_entry; - long len = 0, mode = 0; + long len = 0; zip_read_rsrc * zr_rsrc; char *buffer; int n = 0; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|ll", &zip_entry, &len, &mode) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|l", &zip_entry, &len) == FAILURE) { return; } -- 2.50.1