php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68190 Fatal error: Cannot redeclare class
Submitted: 2014-10-08 20:17 UTC Modified: 2014-12-30 10:42 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: mhm6626 at gmail dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.5.17 OS: Linux
Private report: No CVE-ID: None
 [2014-10-08 20:17 UTC] mhm6626 at gmail dot com
Description:
------------
<?php

//  Fatal error: Cannot redeclare class A ...

class A extends B
{

}

class B 
{

}


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-10-08 20:37 UTC] requinix@php.net
-Status: Open +Status: Feedback -Package: PHP Language Specification +Package: *General Issues
 [2014-10-08 20:37 UTC] requinix@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

http://3v4l.org/71lK6
 [2014-10-08 21:52 UTC] stas@php.net
Could you explain what you meant by this report? It doesn't produce error and shouldn't.
 [2014-12-30 10:42 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 08:01:32 2025 UTC