|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57277 Fatal error: Cannot delete class xyz
Submitted: 2006-10-04 05:25 UTC Modified: 2006-11-07 15:40 UTC
From: Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.1.4 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
21 - 10 = ?
Subscribe to this entry?

 [2006-10-04 05:25 UTC]
Running APC 3.0.12p2 from time to time on page loads we get the server message

Fatal error: Cannot delete class someclass in /some/php/file.php on line 17

It is not really reproduceable and doesn't happen after the next refresh of the page.

The server is a development environment and not very stressed when this error happens.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-11 08:04 UTC] gopalv82 at yahoo dot com
Please turn on 

apc.report_autofilter = 1

in your apc.ini and see if any files are being filtered out.
 [2006-11-01 04:17 UTC] saschagros at bluewin dot ch
Getting the same Error with APC and MDB2..

apc.autofilter produces this output, line 3 is require_once 'MDB2.php'
Warning: Dynamic inheritance detected for class mdb2_error in /xxx/bhbfinder.php on line 3

Warning: Autofiltering /usr/share/php/MDB2.php in /xxx/bhbfinder.php on line 3

Fatal error: Cannot delete class mdb2_error in /xxx/bhbfinder.php on line 3

The error occurs only once, after a refresh it is gone
 [2006-11-01 04:18 UTC] saschagros at bluewin dot ch
Sorry, actually, only the fatal error is gone.. the two Warnings are still there.
 [2006-11-07 13:55 UTC] gopalv82 at yahoo dot com
To reproduce (just for the sake of documentation) 

if(isset($_REQUEST['a'])) {
    include 'PEAR.php';
    require_once 'MDB2.php';

if(isset($_REQUEST['b'])) {
    require_once 'MDB2.php';


get using 

 [2006-11-07 15:40 UTC] gopalv82 at yahoo dot com

Thanks for the bug report.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Nov 29 02:03:14 2021 UTC