|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4707 Cannot redeclare class ...
Submitted: 2000-05-30 22:24 UTC Modified: 2000-10-03 04:40 UTC
From: crm0922 at rocketmail dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.0 Release OS: WinNT 4.0 SP6 IIS4
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: crm0922 at rocketmail dot com
New email:
PHP Version: OS:


 [2000-05-30 22:24 UTC] crm0922 at rocketmail dot com
Apparently the release version of PHP4 under Windows suffers from the same old "Cannot redeclare class ... in whatever.php" problem seen elsewhere in this database.  

Adding the the define('CLASS', 1) stuff doesn't help, then the error just becomes one about the function not existing in file whatever2.php.  It only happens after 1-2 reloads on the page, and is REALLY annoying when a refresh via javascript makes the error occur.  I am going to have to add error handlers to continually reload the page as a temporary fix I guess.  Any news on this?



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-09 05:44 UTC] zeev at cvs dot php dot net
Use the CGI binary instead.  Apparently this is a bug in the ISAPI version only.
 [2000-07-11 17:16 UTC] crm0922 at rocketmail dot com
Is this corrected in the newer PHP 4.0.1 releases?  I don't wanna use the CGI binary! ;-)  Thanks for all your hard work on this project guys, PHP is truly an excellent piece of software.

 [2000-08-02 00:23 UTC]
Please verify that it?s still happening using the latest version of PHP (release 4.0.1pl2 or CVS).
 [2000-08-02 00:35 UTC]
I fear it still appear, just found dups 4593,5686

 [2000-08-02 09:16 UTC] crm0922 at rocketmail dot com
Just to clarify, I am running both Linux/Apace and NT/IIS Servers on the same PHP files (shared via Samba to the IIS box) and it does NOT happen EVER on the Linux web server using mod_php.  I do a lot of development on this server and it serves multiple page reloads hundreds of times without error.

I have recently moved the entire site to the Linux box in the meantime so I haven't a way to check whether it is working with 4.0.1pl2 under NT without redoing our system again.  Thanks again,

 [2000-09-03 05:41 UTC]
Could you please check if it still happens on 4.0.2 and if it does, describe when and in which conditions does it happen?
 [2000-10-02 19:15 UTC]
No feedback.
 [2000-10-03 04:40 UTC] crm0922 at rocketmail dot com
I'm afraid I've moved our devel site off of NT so I am no longer able to try to duplicate the problem.  Perhaps those who submitted 4593 or 5686 can help?


PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Mar 04 13:01:25 2021 UTC