php-zip icon indicating copy to clipboard operation
php-zip copied to clipboard

error adding file

Open naja7host opened this issue 6 years ago • 0 comments

adding a single file return a error

array_diff(): at least 2 parameters are required, 1 given on line 503 in vendor/php-zip/src/Zip.php

i add the file using the fallowing command

	$zip = new Zip();
	$zip->zip_start($path_to_zip);
	$zip->zip_add($path_to_file_name); // adding a file
	$zip->zip_end();

naja7host avatar Jun 25 '18 00:06 naja7host