|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61515 Cached script shows different result from uncached
Submitted: 2012-03-26 16:45 UTC Modified: 2012-07-20 21:56 UTC
From: jayce53 at yahoo dot com Assigned: ab (profile)
Status: Closed Package: APC (PECL)
PHP Version: 5.4.0 OS: CentOS 6 64bit
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: jayce53 at yahoo dot com
New email:
PHP Version: OS:


 [2012-03-26 16:45 UTC] jayce53 at yahoo dot com
When running with APC 3.1.9, this code produces an error. Without APC it runs as expected.  Works as expected with APC 3.1.9 on PHP 5.3.9.

APC settings:

extension =

Test script:
abstract class Dog {
    public abstract function bark();
abstract class SmallDog extends Dog {
class Charlie extends SmallDog {
    function bark() {
        echo "woof!";
$charlie = new Charlie();

Expected result:

Actual result:
Fatal error: Class Charlie contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Dog::bark) in Unknown on line 0

If the code is changed so that Charlie extends Dog directly AND the SmallDog class is commented out, the error is:

Fatal error: Call to undefined method Charlie::bark() in /disk1/webs/mydomain/www/test.php on line 13


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-17 10:15 UTC]
-Status: Open +Status: Feedback
 [2012-07-17 10:15 UTC]
Can you still reproduce this with current 5.4 and APC versions? I can't.
 [2012-07-20 21:56 UTC]
-Status: Feedback +Status: Closed -Assigned To: +Assigned To: ab
 [2012-07-20 21:56 UTC]
This seems to be fixed with the release 3.1.11.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 13:01:29 2024 UTC