I am attempting to create an encrypted, password protected ZIP file using PHP 7.2.7. However, I am getting the following error message:
Attempted to call an undefined method named "setEncryptionName" of class "ZipArchive".
http://php.net/manual/en/ziparchive.setencryptionname.php
If I remove $zip->setEncryptionName()
then everything works 100%, except that the ZIP file is then not password protected.
I have done a Google & Forum search and cannot find anybody that has experienced a similar problem, probably because the PHP version and functionality is still so new.