mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
Patch from Daniel Beckham, fetch the entry resource id, not the directory
resource id and fix prototype.
This commit is contained in:
parent
ea90497f67
commit
aa281a0771
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue