CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#12535] File Manager Unpack archive .tar.gz

avatar
Created By: Jean-Claude Etiemble (jce76350)
Date Submitted: Wed Apr 13 04:02:13 -0400 2022

Assigned To: tom (tomphantoo)
Version: 2.2.16
CMSMS Version: 2.2.16
Severity: Major
Resolution: Accepted
State: Open
Summary:
File Manager Unpack archive .tar.gz
Detailed Description:
- In PHP 7.4.x (end of life) there is a double message
"Warning: rawurlencode() expects parameter 1 to be string, array given in ..
/lib/classes/internal/module_support/modform.inc.php on line 663"
But the files are unpacked

- Under PHP 8.0.x there is a message
"Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either
`(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in
...modules/FileManager/easyarchives/EasyTar.class.php on line 148"
** But the files are NOT unpacked


History

Comments
avatar
Date: 2022-07-07 03:46
Posted By: Jean-Claude Etiemble (jce76350)

UP
      
avatar
Date: 2022-09-12 12:48
Posted By: Jean-Claude Etiemble (jce76350)

test after Révision 12804
not solved 
    - tar.gz
Deprecated: Invalid characters passed for attempted conversion, these have
been ignored in .../modules/FileManager/easyarchives/EasyTar.class.php on line
91
But the files are unpacked

for  -*.tar.bz2 
Fatal error: Uncaught Error: Call to undefined function bzopen()  ..
.../modules/FileManager/easyarchives/EasyBzip2.class.php on line 46
      
avatar
Date: 2022-09-30 20:39
Posted By: tom (tomphantoo)

PHP 7.4: Passing invalid characters to base_convert(), bindec(), octdec() and
hexdec() will now generate a deprecation notice. The result will still be
computed as if the invalid characters did not exist.
In the EasyTar case (in is_tar($str)), who knows what the now-invalid chars
might be ?
Just silence it? error_reporting(E_ALL ^ E_DEPRECATED);

Undefined function bzopen() is presumably due to lack of PHP's bz2 extension? In
which case, EasyArchive should not require EasyBzip2

EasyArchive is long past its use-by date

      
Updates

Updated: 2022-09-30 20:40
resolution_id: 5 => 6

Updated: 2022-09-12 12:48
resolution_id: => 5
assigned_to_id: 9917 => 15611