mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
- Fix warning
This commit is contained in:
parent
ec6c58ca94
commit
d4fb3cb4d3
@ -300,19 +300,18 @@ static int phar_set_compression(void *pDest, void *argument TSRMLS_DC) /* {{{ */
|
||||
static int phar_test_compression(void *pDest, void *argument TSRMLS_DC) /* {{{ */
|
||||
{
|
||||
phar_entry_info *entry = (phar_entry_info *)pDest;
|
||||
int *result = (int *) argument;
|
||||
|
||||
if (entry->is_deleted) {
|
||||
return ZEND_HASH_APPLY_KEEP;
|
||||
}
|
||||
#if !HAVE_BZ2
|
||||
if (entry->flags & PHAR_ENT_COMPRESSED_BZ2) {
|
||||
*result = 0;
|
||||
*(int *) argument = 0;
|
||||
}
|
||||
#endif
|
||||
#if !HAVE_ZLIB
|
||||
if (entry->flags & PHAR_ENT_COMPRESSED_GZ) {
|
||||
*result = 0;
|
||||
*(int *) argument = 0;
|
||||
}
|
||||
#endif
|
||||
return ZEND_HASH_APPLY_KEEP;
|
||||
|
Loading…
Reference in New Issue
Block a user