|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80470 compile issue with PHP 8
Submitted: 2020-12-02 10:15 UTC Modified: 2021-09-19 04:22 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: shop1 at mokraemer dot de Assigned: cmb (profile)
Status: No Feedback Package: gnupg (PECL)
PHP Version: 8.0.0 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2020-12-02 10:15 UTC] shop1 at mokraemer dot de
this one does not compile with php8:

gnupg_keylistiterator.c: In function '_gnupg_keylistiterator_init':
gnupg_keylistiterator.c:113:57: error: expected ')' before 'TSRMLS_CC'
  113 |  zend_class_implements(gnupg_keylistiterator_class_entry TSRMLS_CC, 1, zend_ce_iterator);
      |                                                         ^~~~~~~~~~
      |                                                         )
gnupg_keylistiterator.c:113:2: error: too few arguments to function 'zend_class_implements'
  113 |  zend_class_implements(gnupg_keylistiterator_class_entry TSRMLS_CC, 1, zend_ce_iterator);
      |  ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/main/php.h:35,
                 from gnupg_keylistiterator.c:21:
/usr/include/php/Zend/zend_API.h:335:15: note: declared here
  335 | ZEND_API void zend_class_implements(zend_class_entry *class_entry, int num_interfaces, ...);
      |               ^~~~~~~~~~~~~~~~~~~~~
gnupg_keylistiterator.c: In function 'zim_gnupg_keylistiterator___construct':
gnupg_keylistiterator.c:44:27: error: expected ')' before 'TSRMLS_CC'
   44 |     php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid or unitialized gnupg object"); \
      |                           ^~~~~~~~~
gnupg_keylistiterator.c:131:2: note: in expansion of macro 'GNUPG_GET_ITERATOR'


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-09-10 12:19 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-09-10 12:19 UTC]
PHP 8.0 is supposed to be supported as of gnupg 1.5.0.  Or do you
still experience the build error?
 [2021-09-19 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 20 10:01:31 2024 UTC