php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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
Description:
------------
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))
+#endif
+
 #endif


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:
--------------
Crash.

/libexec/ld-elf.so.1: /usr/local/lib/php/20060613/amf.so: Undefined symbol "Z_REFCOUNT_P"


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-04-01 19:23 UTC] tpunt@php.net
-Status: Open +Status: Wont fix
 [2017-04-01 19:23 UTC] tpunt@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC