diff options
author | Sterling Hughes <sterling@php.net> | 2001-06-02 05:25:36 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2001-06-02 05:25:36 +0000 |
commit | c0779b6db9c2fb7094f25ea64f5792b73a77dd89 (patch) | |
tree | 9b980c26b5140b8e02f3b398012c5f3a2aea040d /ext/zip | |
parent | aa281a07713ed719740deebd44dd4b6daaa024b0 (diff) | |
download | php-git-c0779b6db9c2fb7094f25ea64f5792b73a77dd89.tar.gz |
Leftovers from master Beckham's patch.
Diffstat (limited to 'ext/zip')
-rw-r--r-- | ext/zip/zip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zip/zip.c b/ext/zip/zip.c index 29819c66a0..edfbe16b30 100644 --- a/ext/zip/zip.c +++ b/ext/zip/zip.c @@ -234,8 +234,8 @@ PHP_FUNCTION(zip_entry_open) ZZIP_DIR *archive_p = NULL; php_zzip_dirent *entry = NULL; - if (ZEND_NUM_ARGS() != 2 || - zend_get_parameters_ex(3, &zzip_dp, &zzip_ent, &mode) == FAILURE) { + if (ZEND_NUM_ARGS() < 2 || ZEND_NUM_ARGS() > 3 || + zend_get_parameters_ex(ZEND_NUM_ARGS(), &zzip_dp, &zzip_ent, &mode) == FAILURE) { WRONG_PARAM_COUNT; } |