ID: 24470 Updated by: [EMAIL PROTECTED] Reported By: lucian at moongate dot ro -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows 2000 PRO SP3 -PHP Version: Irrelevant +PHP Version: 4.3.0RC4 New Comment:
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Exactly WHAT version? It's definately NOT irrelevant! And give a complete, standalone, self-contained, etc. example script which can be used to reproduce this problem. (and PHP 4.3.2 was released long time ago..) Previous Comments: ------------------------------------------------------------------------ [2003-07-02 20:41:07] lucian at moongate dot ro Description: ------------ I'm using the ISAPI module. My class (and other includes) names are stored in an array like: 'Class_name'=>'Class_file.php' each time I need to include a file I do this: $_incReq=array('Include_1','Include_2'); include($_incMgr); where $_incMgr is a script that checks whether that file has already been included and also includes files required by my include. When the include manager first runs it includes the class file and doesn't get to the class definition but receives and array of required includes. After it resolves those it includes the file again and this time, when it gets to the class definition, I get the error: Cannot redeclare class ... I would like to point out that an identical class (with just some names changed works fine in another project). Also, I encounter this problem with just one class. And I'm sure that the class hasn't been included before because: 1. the Include Manager would not include it twice. 2. I've checked exaclty how many times it gets to the class declaration part and it's 1. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24470&edit=1