summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2006-08-14 15:07:52 +0000
committerPierre Joye <pajoye@php.net>2006-08-14 15:07:52 +0000
commit4b7358e4e5adfa0eb48892143026c80e41c8dc50 (patch)
treecfef0e7b8aa21deb7d85f8e0dc116ab1b8e39000 /ext/zip/php_zip.c
parentf42e9f5e15507a121669a8d78cbe03a7e2b8ae7a (diff)
downloadphp-git-4b7358e4e5adfa0eb48892143026c80e41c8dc50.tar.gz
- nuke unused parameter (not present in old versions)
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r--ext/zip/php_zip.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c
index 0e46345f7a..fa414e4071 100644
--- a/ext/zip/php_zip.c
+++ b/ext/zip/php_zip.c
@@ -657,17 +657,16 @@ PHP_FUNCTION(zip_close)
}
/* }}} */
-/* {{{ proto resource zip_read(resource zip [, int flags])
+/* {{{ proto resource zip_read(resource zip)
Returns the next file in the archive */
PHP_FUNCTION(zip_read)
{
zval *zip_dp;
zip_read_rsrc *zr_rsrc;
int ret;
- long flags = 0;
zip_rsrc *rsrc_int;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|l", &zip_dp, flags) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &zip_dp) == FAILURE) {
return;
}
ZEND_FETCH_RESOURCE(rsrc_int, zip_rsrc *, &zip_dp, -1, le_zip_dir_name, le_zip_dir);
@@ -679,7 +678,7 @@ PHP_FUNCTION(zip_read)
zr_rsrc = emalloc(sizeof(zip_read_rsrc));
- ret = zip_stat_index(rsrc_int->za, rsrc_int->index_current, flags, &zr_rsrc->sb);
+ ret = zip_stat_index(rsrc_int->za, rsrc_int->index_current, 0, &zr_rsrc->sb);
if (ret != 0) {
efree(zr_rsrc);
@@ -745,17 +744,17 @@ PHP_FUNCTION(zip_entry_close)
}
/* }}} */
-/* {{{ proto mixed zip_entry_read(resource zip_entry [, int len [, int mode]])
+/* {{{ proto mixed zip_entry_read(resource zip_entry [, int len])
Read from an open directory entry */
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;
}