php.net |  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: mfischer@php.net Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.1.4 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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mfischer@php.net
New email:
PHP Version: OS:

 

 [2006-10-04 05:25 UTC] mfischer@php.net
Description:
------------
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.


Patches

Pull Requests

History

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) 

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

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

print_r(get_declared_classes());
?>

get using 

http://server/test-8848.php?a
http://server/test-8848.php?b
 [2006-11-07 15:40 UTC] gopalv82 at yahoo dot com
Fixed.

http://news.php.net/php.pecl.cvs/6605

Thanks for the bug report.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 01:01:33 2025 UTC