|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56200 --enable-mmap is useless when apc is static build into php
Submitted: 2004-09-26 07:53 UTC Modified: 2004-09-26 13:24 UTC
From: xuefer at 21cn dot com Assigned:
Status: Closed Package: APC (PECL)
PHP Version: Irrelevant OS: linux
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: xuefer at 21cn dot com
New email:
PHP Version: OS:


 [2004-09-26 07:53 UTC] xuefer at 21cn dot com
all options except --enable-apc is useless when apc is copied into ext/
by having a look at ext/mysql/php_mysql.c, i have the following patch for apc.h
$ cvs di apc.h
Index: apc.h
RCS file: /repository/pecl/apc/apc.h,v
retrieving revision 3.5
diff -u -r3.5 apc.h
--- apc.h       28 Jun 2004 08:54:15 -0000      3.5
+++ apc.h       26 Sep 2004 11:34:09 -0000
@@ -41,6 +41,8 @@
 #include "config.h"
+#include "php.h"
 /* log levels constants (see apc_log) */

this works great


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-26 11:13 UTC]
Not sure why you would want to compile it statically into PHP.  You don't gain anything by it performance-wise compared to a non-pic shared library build.  But I have committed this small patch anyway.

 [2004-09-26 13:24 UTC] xuefer at 21cn dot com
thanks, i was php under cygwin can't use dl (for test only)
IIRC, the lines above '#include "php.h"' was also fixed ages ago to compile apc statically into php
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Jan 30 19:03:42 2023 UTC