Closed nottellyou closed 1 year ago
Hi. look at this function https://github.com/Gemorroj/Archive7z/blob/5.5.0/src/Archive7zTrait.php#L47 An plz, show me the example of your code.
Hi, @Gemorroj : These are my code:
if(strcasecmp(PHP_OS, 'WINNT') == 0) {
$obj = new Archive7z($filename, $exepath);
}else{
$obj = new Archive7z($filename);//-- Here will cause the error
}
$count = count($obj->getEntries());
I try to use $obj = new Archive7z($filename, '/usr/bin/7z');
, but the error still shows.
I have no idea.
Oh, I know the problem is open_dir
.
But I found another problem, gibberish
?????????rarzip
hosts 772.31KB
??????????.jpg 4.37KB
snipaste20230511_144615.jpg 33.85KB
0_cleanup.jpg 28.82KB
The test file: http://50.116.14.233/171829s6ygqmhhh9jgycch.rar
@nottellyou yes, it's known problem. see https://github.com/Gemorroj/Archive7z/issues/15 or https://github.com/Gemorroj/Archive7z/issues/31
Hello, what is the problem causing this error?
Debian11.6, php7.4.33