php.net |  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.
Password:
Status:
Package:
Bug Type:
Summary:
From: xuefer at 21cn dot com
New email:
PHP Version: OS:

 

 [2004-09-26 07:53 UTC] xuefer at 21cn dot com
Description:
------------
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"
 #endif
 
+#include "php.h"
+
 /* log levels constants (see apc_log) */
 enum { APC_DEBUG, APC_NOTICE, APC_WARNING, APC_ERROR };
 



this works great


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-26 11:13 UTC] rasmus@php.net
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: Thu Apr 25 19:01:33 2024 UTC