mirror of
https://github.com/php/php-src.git
synced 2026-04-28 18:53:33 +02:00
rename is_zip parameter of phar_parse_metadata to more accurately reflect what it is
This commit is contained in:
+3
-3
@@ -495,16 +495,16 @@ int phar_open_loaded(char *fname, int fname_len, char *alias, int alias_len, int
|
||||
*
|
||||
* data is the serialized zval
|
||||
*/
|
||||
int phar_parse_metadata(char **buffer, zval **metadata, int is_zip TSRMLS_DC) /* {{{ */
|
||||
int phar_parse_metadata(char **buffer, zval **metadata, int zip_metadata_len TSRMLS_DC) /* {{{ */
|
||||
{
|
||||
const unsigned char *p;
|
||||
php_uint32 buf_len;
|
||||
php_unserialize_data_t var_hash;
|
||||
|
||||
if (!is_zip) {
|
||||
if (!zip_metadata_len) {
|
||||
PHAR_GET_32(*buffer, buf_len);
|
||||
} else {
|
||||
buf_len = is_zip;
|
||||
buf_len = zip_metadata_len;
|
||||
}
|
||||
|
||||
if (buf_len) {
|
||||
|
||||
@@ -402,7 +402,7 @@ char *phar_find_in_include_path(char *file, int file_len, phar_archive_data **pp
|
||||
char *phar_fix_filepath(char *path, int *new_len, int use_cwd TSRMLS_DC);
|
||||
phar_entry_info * phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, php_stream *fp,
|
||||
char **error, int for_write TSRMLS_DC);
|
||||
int phar_parse_metadata(char **buffer, zval **metadata, int is_zip TSRMLS_DC);
|
||||
int phar_parse_metadata(char **buffer, zval **metadata, int zip_metadata_len TSRMLS_DC);
|
||||
void destroy_phar_manifest_entry(void *pDest);
|
||||
int phar_seek_efp(phar_entry_info *entry, off_t offset, int whence, off_t position TSRMLS_DC);
|
||||
php_stream *phar_get_efp(phar_entry_info *entry TSRMLS_DC);
|
||||
|
||||
Reference in New Issue
Block a user