diff options
author | Sterling Hughes <sterling@php.net> | 2001-06-02 05:12:44 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2001-06-02 05:12:44 +0000 |
commit | aa281a07713ed719740deebd44dd4b6daaa024b0 (patch) | |
tree | 05d8e72269b92e1c7d9be39d46cb2c9b6497d498 /ext/zip/zip.c | |
parent | ea90497f67b449c05e8d20049128632bf6f09b73 (diff) | |
download | php-git-aa281a07713ed719740deebd44dd4b6daaa024b0.tar.gz |
Patch from Daniel Beckham, fetch the entry resource id, not the directory
resource id and fix prototype.
Diffstat (limited to 'ext/zip/zip.c')
-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 dbc013b8c2..29819c66a0 100644 --- a/ext/zip/zip.c +++ b/ext/zip/zip.c @@ -226,7 +226,7 @@ PHP_FUNCTION(zip_entry_compressionmethod) } /* }}} */ -/* {{{ proto bool zip_open(resource zip_dp, resource zip_entry, string mode) +/* {{{ proto bool zip_entry_open(resource zip_dp, resource zip_entry, string mode) Open a Zip File, pointed by the resource entry */ PHP_FUNCTION(zip_entry_open) { @@ -240,7 +240,7 @@ PHP_FUNCTION(zip_entry_open) } 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_dp, -1, le_zip_entry_name, le_zip_entry); + ZEND_FETCH_RESOURCE(entry, php_zzip_dirent *, zzip_ent, -1, le_zip_entry_name, le_zip_entry); entry->fp = zzip_file_open(archive_p, entry->dirent.d_name, O_RDONLY | O_BINARY); |