From: Sterling Hughes Date: Mon, 13 Aug 2001 22:01:39 +0000 (+0000) Subject: remove "i" X-Git-Tag: php-4.0.7RC1~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a24e3174a038990c1394329ba6c9c0d8d6f654d4;p=php remove "i" --- 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; }