|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59897 Add support for APC built as extension
Submitted: 2011-08-18 06:34 UTC Modified: 2017-10-24 23:20 UTC
From: nick at ihighteam dot com Assigned:
Status: Suspended Package: mysqlnd_qc (PECL)
PHP Version: 5.3.6 OS: FreeBSD
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: nick at ihighteam dot com
New email:
PHP Version: OS:


 [2011-08-18 06:34 UTC] nick at ihighteam dot com
This is an excellent PHP extension!  I can get mysqlnd_qc to compile and install just fine with PECL (pecl install mysqlnd_qc).  However, to enable APC support, one has to compile it statically.  I've had a lot of compile issues with this, since it doesn't work with PHP 5.3.6 stable and my autoconf 2.68.  I've had to get the development version of PHP and downgrade autoconf to 2.13.  It would be great to allow the APC extension to work with the mysqlnd_qc plugin.  One workaround is to create a user-defined storage handler function in PHP that calls the APC functions.

Reproduce code:
PHP 5.3.6 doesn't quite work yet:

In file included from /usr/ports/distfiles/php-5.3.6/ext/mysqlnd/mysqlnd.h:57,
                 from /usr/ports/distfiles/php-5.3.6/ext/mysqlnd_qc/mysqlnd_qc.h:24,
                 from /usr/ports/distfiles/php-5.3.6/ext/mysqlnd_qc/php_mysqlnd_qc.c:31:
/usr/ports/distfiles/php-5.3.6/ext/mysqlnd/mysqlnd_portability.h:40:46: error: ext/mysqlnd/php_mysqlnd_config.h: No such file or directory
*** Error code 1


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-26 19:46 UTC] johannes at schlueters dot de
Hi, thanks for the feedback. An issue is that this plugin uses non public APC APIs which we can't reliably use from shared objects. Calling the userspace functions is not easy for different reasons including error handling. But we will look into it.
 [2013-03-20 12:57 UTC]
There's a strong tendency towards won't fix. APC is becoming more and more of a hack in mysqlnd_qc. It works BUT...
 [2017-10-24 23:20 UTC]
-Status: Open +Status: Suspended
 [2017-10-24 23:20 UTC]
The mysqlnd_qc package have not had a release for 4 years, so its safe to say that there is no longer any activity for this, if development picks back up then this report should be re-opened.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Dec 04 18:01:23 2020 UTC