|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78276 Weakref does not compile on newer GCC
Submitted: 2019-07-11 21:07 UTC Modified: 2021-06-02 13:18 UTC
From: hellvis69 at gmail dot com Assigned: colder (profile)
Status: Wont fix Package: Weakref (PECL)
PHP Version: 7.3.7 OS: Alpine Linux 3.9+, Debian 9
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: hellvis69 at gmail dot com
New email:
PHP Version: OS:


 [2019-07-11 21:07 UTC] hellvis69 at gmail dot com

/tmp/pear/temp/Weakref/wr_weakref.c: In function 'wr_weakref_ref_acquire':
/tmp/pear/temp/Weakref/wr_weakref.c:47:30: error: lvalue required as increment operand
Makefile:197: recipe for target 'wr_weakref.lo' failed
make: *** [wr_weakref.lo] Error 1
ERROR: `make' failed


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-07-13 10:22 UTC]
-Assigned To: +Assigned To: colder
 [2019-07-13 10:22 UTC]
I don't think it makes much sense to fix the compile error, since
the extension can't work with PHP 7.3+ anyway[1].  As of PHP
7.4.0, there is a built-in WeakReference class[2] which partially
can serve as replacement.

Anyhow, assigning to maintainer.

[1] <>
[2] <>
 [2019-07-15 07:13 UTC] hellvis69 at gmail dot com
Ah, thanks for the info.. didn't notice these changes.

I was upgrading a legacy project using PHP 7.0 and we rely on WeakRef heavily.

I will stick to PHP 7.2 for the moment until.
 [2021-06-02 13:18 UTC]
-Status: Assigned +Status: Wont fix
 [2021-06-02 13:18 UTC]
Since PECL/Weakref is no longer maintained, I'm closing this.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 20:01:34 2024 UTC