|  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
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: 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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 24 20:01:29 2024 UTC