php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56424 APC-2.0.4 does not compile at all
Submitted: 2005-06-23 00:00 UTC Modified: 2005-06-23 06:46 UTC
From: appchess at yahoo dot com Assigned: rasmus (profile)
Status: Closed Package: APC (PECL)
PHP Version: 5.0.3 OS: Linux (Fedora Core 4)
Private report: No CVE-ID: None
 [2005-06-23 00:00 UTC] appchess at yahoo dot com
Description:
------------
Compilation of APC-2.0.4 fails with:

apc_cache.c:176: error: subscripted value is neither array nor pointer

The line in question accesses the refcount[0] field of a zend_class_entry.  I checked zend.h and refcount is a simple integer.  According to

http://bonsai.php.net/bonsai/cvsblame.cgi?file=ZendEngine2/zend.h&rev=&root=/repository

refcount used to be a pointer to an allocated structure, and has now been changed into a simple integer.

So I replaced refcount[0] with refcount on line 176 and it compiled that file again ... but joy didn't last long -- when getting to apc_compile.c, all sorts of compilation errors appear -- starting with

apc_compile.c:140: error: 'ZEND_DECLARE_FUNCTION_OR_CLASS' undeclared (first use in this function)

that define is not in my php-5.0.4 headers so I'm not sure how easy it is to fix.  I can investigate but I'm starting to wonder if I'm going to end up with unstable software ...

... it looks like APC was never ported to php5 ?

I really like APC --, it's a real pity if it doesn't work with php5.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-23 06:46 UTC] rasmus@php.net
CVS HEAD works with PHP5 now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC