diff options
author | Pierre Joye <pajoye@php.net> | 2006-09-06 13:03:55 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2006-09-06 13:03:55 +0000 |
commit | ad58ad265b42723b032e63d392b557544a4b0d45 (patch) | |
tree | 773daf838b1326e5a3511bdfed25c9e930eb3089 /ext/zip/php_zip.c | |
parent | 37635d93e6861b8dedb30c39a563ac93515dc19c (diff) | |
download | php-git-ad58ad265b42723b032e63d392b557544a4b0d45.tar.gz |
- MFH: zip_open takes only one parameter (Thx Nuno L.)
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r-- | ext/zip/php_zip.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 1151b431e6..2a5390982b 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -608,17 +608,16 @@ 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", &filename, &filename_len) == FAILURE) { return; } if (SAFEMODE_CHECKFILE(filename)) { @@ -627,7 +626,7 @@ PHP_FUNCTION(zip_open) 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); |