|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59268 Undefined symbol
Submitted: 2010-06-16 19:32 UTC Modified: 2017-04-01 19:23 UTC
From: sergio at gruposinternet dot com dot br Assigned:
Status: Wont fix Package: amfext (PECL)
PHP Version: 5.2.13 OS: FreeBSD 7.1
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: sergio at gruposinternet dot com dot br
New email:
PHP Version: OS:


 [2010-06-16 19:32 UTC] sergio at gruposinternet dot com dot br
The extension crashes with undefined symbol.

Suggested patch:

--- amfext-0.9.2/php_amf.h	2008-03-31 06:23:48.000000000 -0300
+++ amfext-0.9.2b/php_amf.h	2010-06-16 19:56:22.000000000 -0300
@@ -27,4 +27,11 @@
 extern zend_module_entry amf_module_entry;
 #define phpext_amf_ptr &amf_module_entry
+// Define Z_REFCOUNT_P for PHP 5.3.x compatibility
+// Original code stole from apc_zend.h (APC caching extension)
+#if PHP_VERSION_ID < 50300
+#define Z_REFCOUNT_P(pz)              (pz)->refcount
+#define Z_REFCOUNT_PP(ppz)            Z_REFCOUNT_P(*(ppz))

Reproduce code:
Compile the stock extension from ports (/usr/ports/www/pecl-amfext), install and try to use it.

Expected result:
Working extension.

Actual result:

/libexec/ /usr/local/lib/php/20060613/ Undefined symbol "Z_REFCOUNT_P"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-04-01 19:23 UTC]
-Status: Open +Status: Wont fix
 [2017-04-01 19:23 UTC]
Due to this extension not seeing any activity since 2010, this issue will not be fixed. We are therefore closing this now.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Mar 07 03:01:23 2021 UTC