|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75274 Compilation fails on PHP 5.6 with 2.0.0 of ibm_db2
Submitted: 2017-09-28 11:26 UTC Modified: 2017-10-17 16:55 UTC
From: james at asgrim dot com Assigned: vnkbabu (profile)
Status: Closed Package: ibm_db2 (PECL)
PHP Version: 5.6.31 OS: Ubuntu 14.04.5 LTS
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.
Bug Type:
From: james at asgrim dot com
New email:
PHP Version: OS:


 [2017-09-28 11:26 UTC] james at asgrim dot com
Trying to install ibm_db2 on PHP 5.6 fails as of 2.0.0.

Using `pecl install ibm_db2`

Build log here:

I believe the commit that broke was:;a=commit;h=df913feb4dff56366ac4656b0bb6b39200794bde


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-09-28 11:31 UTC] james at asgrim dot com
Further platform info:

$ php --version
PHP 5.6.31 (cli) (built: Jul 22 2017 11:52:17) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans

If it helps, we're using a Travis box on Trusty distro. I've pinned our build to 1.9.9 for now as a workaround.
 [2017-09-29 12:54 UTC]
It looks like this error is initiated because of some zend issue. We are contacting zend community to get clarification on this issue.

/home/travis/.phpenv/versions/5.6.31/include/php/Zend/../TSRM/TSRM.h:164:57: error: ‘tsrm_ls’ undeclared (first use in this function)

 #define TSRMG(id, type, element) (((type) (*((void ***) tsrm_ls))[TSRM_UNSHUFFLE_RSRC_ID(id)])->element)

PS: I tried compiling in my linux machine it compiled properly.
 [2017-10-13 13:31 UTC]
We have released a new version which fixed the compilation issue.
 [2017-10-16 14:44 UTC] james at asgrim dot com
Can confirm that 2.0.1 compiles as expected. Thanks for the quick fix!
 [2017-10-17 16:55 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: vnkbabu
 [2017-10-17 16:55 UTC]
Venkatesh, you can configure with --enable-maintainer-zts on Linux to catch
those issues.

Anyhow, closing since the bug has been fixed.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Sep 23 16:03:36 2021 UTC