ID:               33632
 Updated by:       [EMAIL PROTECTED]
 Reported By:      akorthaus at web dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Linux 2.4.31 (gentoo)
 PHP Version:      5.1.0b2
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

There is an _interface_ "Subject" in SPL. 


Previous Comments:
------------------------------------------------------------------------

[2005-07-10 18:51:58] akorthaus at web dot de

Description:
------------
I have a class called "Subject" which I use for a long time now, but
when I tried to use the code with 5.1b2 I got:

Fatal error: Cannot redeclare class subject...

Simple renaming the class to MailSubject fixes the problem. But I did
not redeclare this class, I did a search like "grep -ir subject *"

I tried some test-scrips:

<?php
var_dump(class_exists('Subject'));
?>

bool(false)


<?php
Test {}
class Subject {
}
?>
Fatal error: Cannot redeclare class subject in
/var/www/localhost/htdocs/subject.php on line 3


<?php
Test {}
class Subject extends Test {
}
?>

Fatal error: Cannot redeclare class subject in
/var/www/localhost/htdocs/subject.php on line 4


(If I extend, error is found in line 4, not 3 ?!). I'm using
Apache-sapi with Apache 1.3.33.

Reproduce code:
---------------
<?php
class Subject {}
?>

Expected result:
----------------
empty page

Actual result:
--------------
Fatal error: Cannot redeclare class subject in
/var/www/localhost/htdocs/subject.php on line 2


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=33632&edit=1

Reply via email to