summaryrefslogtreecommitdiff
path: root/ext/zip/zip.c
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2001-08-13 22:01:39 +0000
committerSterling Hughes <sterling@php.net>2001-08-13 22:01:39 +0000
commita24e3174a038990c1394329ba6c9c0d8d6f654d4 (patch)
tree29e866b7cc1ce4eb576f6c1b26fb4f59830a3904 /ext/zip/zip.c
parente09ed038e707165d776abe5bc29c5b62bf61ea62 (diff)
downloadphp-git-a24e3174a038990c1394329ba6c9c0d8d6f654d4.tar.gz
remove "i"
Diffstat (limited to 'ext/zip/zip.c')
-rw-r--r--ext/zip/zip.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/zip/zip.c b/ext/zip/zip.c
index dc40a7f422..e691588b96 100644
--- a/ext/zip/zip.c
+++ b/ext/zip/zip.c
@@ -252,9 +252,8 @@ PHP_FUNCTION(zip_entry_open)
php_zzip_dirent *entry = NULL;
int mode;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rr|i", &zzip_dp, &zzip_ent, &mode) == FAILURE) {
- return;
- }
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rr|s", &zzip_dp, &zzip_ent, &mode) == FAILURE)
+ return;
ZEND_FETCH_RESOURCE(archive_p, ZZIP_DIR *, zzip_dp, -1, le_zip_dir_name, le_zip_dir);
ZEND_FETCH_RESOURCE(entry, php_zzip_dirent *, zzip_ent, -1, le_zip_entry_name, le_zip_entry);
@@ -278,7 +277,7 @@ PHP_FUNCTION(zip_entry_read)
int len = 1024;
int ret = 0;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|i", &zzip_ent, &len) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|l", &zzip_ent, &len) == FAILURE) {
return;
}