php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58759 ndefined symbol: READY_TO_DESTROY
Submitted: 2009-07-11 04:03 UTC Modified: 2009-10-01 03:46 UTC
From: wwccss at gmail dot com Assigned: jluedke (profile)
Status: Closed Package: gearman (PECL)
PHP Version: 5.1.6 OS: CentOS
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: wwccss at gmail dot com
New email:
PHP Version: OS:

 

 [2009-07-11 04:03 UTC] wwccss at gmail dot com
Description:
------------
Hello:

Thanks for your work of the extension of gearman for php. I tested it on my
centos machine but there are some errors:

*PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/lib64/php/modules/gearman.so' - /usr/lib64/php/modules/gearman.so:
undefined symbol: READY_TO_DESTROY in Unknown on line 0
*
*the os info:

*  uname -a
  Linux sno3 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 11:57:43 EST 2008 x86_64
x86_64 x86_64 GNU/Linux

   CentOS release 5 (Final)

*and the php verison:*

PHP 5.1.6 (cli) (built: Apr  7 2009 08:00:18)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

What should I do? Thanks a lot.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-29 20:19 UTC] andrewduhan at gmail dot com
I am having the same problem.  Any word?
 [2009-07-29 20:56 UTC] andrewduhan at gmail dot com
I spoke with eday in the irc channel.  Apparently this is an issue with the older (5.1.x) version of php.  They suggested replacing the line:

if (READY_TO_DESTROY(__zval)) { \

with 

if ((__zval)->refcount == 1) { \

in php_gearman.c around line 1000.  Search for READY_TO_DESTROY

This allowed gearman.so to load correctly for me, but I have not tested it.
This
 [2009-10-01 03:46 UTC] contact at jamesluedke dot com
fixed in svn.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Aug 06 14:01:25 2020 UTC