php.net |  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: -
Votes:1
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:
Status: Open Package: gnupg (PECL)
PHP Version: 8.0.0 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: shop1 at mokraemer dot de
New email:
PHP Version: OS:

 

 [2020-12-02 10:15 UTC] shop1 at mokraemer dot de
Description:
------------
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'
  131 |  GNUPG_GET_ITERATOR();



Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jun 25 08:01:23 2021 UTC