mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
"What helly said"
This commit is contained in:
parent
3b37e3a80d
commit
69afbc1099
@ -1348,6 +1348,9 @@ static void phar_convert_to_other(phar_archive_data *source, int convert, php_ui
|
||||
phar_archive_data phar = {0};
|
||||
long offset = 0;
|
||||
char *error, *opened_path = NULL;
|
||||
#if HAVE_PHAR_ZIP
|
||||
int fd, ziperror;
|
||||
#endif
|
||||
|
||||
/* set whole-archive compression from parameter */
|
||||
phar.flags = flags;
|
||||
@ -1358,8 +1361,6 @@ static void phar_convert_to_other(phar_archive_data *source, int convert, php_ui
|
||||
case 2 :
|
||||
phar.is_zip = 1;
|
||||
#if HAVE_PHAR_ZIP
|
||||
int fd, ziperror;
|
||||
|
||||
if (!((fd = php_open_temporary_fd(NULL, "pharzip", &opened_path TSRMLS_CC)) >= 0)) {
|
||||
zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC,
|
||||
"Cannot convert phar archive \"%s\", unable to open temporary zip archive", source->fname);
|
||||
|
Loading…
Reference in New Issue
Block a user