Doc #78998 [Ver->Csd]: Fatal error: Undefined class constant 'EM_AES_256'
| From: | salathe@php.net | Date: | Thu, 19 Dec 2019 17:35:09 +0000 |
| Subject: | Doc #78998 [Ver->Csd]: Fatal error: Undefined class constant 'EM_AES_256' | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-17152@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78998&edit=1
ID: 78998
Updated by: salathe@php.net
Reported by: shariefjamiel at gmail dot com
Summary: Fatal error: Undefined class constant 'EM_AES_256'
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: Zip Related
Operating System: ubuntu 18.04 - php 7.2.15
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=74de81ca6c488b103f4995106209798754e425fd
Log: Fix #78998: Fatal error: Undefined class constant 'EM_AES_256'
Previous Comments:
------------------------------------------------------------------------
[2019-12-19 17:34:55] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=348590
Log: Fix #78998: Fatal error: Undefined class constant 'EM_AES_256'
------------------------------------------------------------------------
[2019-12-19 17:07:14] cmb@php.net
> [â¦] but you need >= 1.2.0[1].
Oops! That should have been "but you need libzip >= 1.2.0".
Ubuntu 18.04 has only libzip 1.1.2-1.1 by default.
------------------------------------------------------------------------
[2019-12-19 11:48:49] shariefjamiel at gmail dot com
This is from TravisCI as well
$ php --version
PHP 7.2.15 (cli) (built: Feb 11 2019 23:22:17) ( ZTS )
Error: Undefined class constant 'ZipArchive::EM_NONE'
------------------------------------------------------------------------
[2019-12-19 11:45:17] shariefjamiel at gmail dot com
Sorry I am not following you, neither on Docker ubuntu 18.04 nor Travis CI ubuntu 14 maybe, when I
use PHP 7.2 this does not work. Only when I switch to PHP 7.3 does it work.
------------------------------------------------------------------------
[2019-12-19 11:23:47] cmb@php.net
It can work on PHP 7.2, but you need >= 1.2.0[1].
[1] <https://libzip.org/documentation/zip_file_set_encryption.html>
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=78998
--
Edit this bug report at https://bugs.php.net/bug.php?id=78998&edit=1