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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: appchess at yahoo dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-23 06:46 UTC] rasmus@php.net
CVS HEAD works with PHP5 now.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 18:01:32 2025 UTC