go to bug id or search bugs for
WTF - how is one supposed to write a replacement for "PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Archive_Zip has a deprecated constructor in /usr/share/pear/Archive/Zip.php on line 101" which is anyways laughable since __construct() exists for a decade
Warning: zip_open() expects exactly 1 parameter, 2 given in /mnt/data/www/thelounge.net/contentlounge/cms/api_misc.php on line 1800
$zip_handle = zip_open($zip_filename, ZipArchive::CREATE);
The mode to use to open the archive.
Add a Patch
Add a Pull Request
are you kidding me?
procedural and object usage hebave different?
$zip = new ZipArchive();
$zip_handle = $zip->open($zip_filename, ZipArchive::CREATE);
> Archive_Zip has a deprecated constructor
| This package is not maintained anymore and has been superseded.
| Package has moved to channel pecl.php.net, package zip.
> procedural and object usage hebave different?
Yes, as it is documented. So, this is not a bug.