From: lucian at moongate dot ro Operating system: Windows 2000 PRO SP3 PHP version: Irrelevant PHP Bug Type: Scripting Engine problem Bug description: Crash with message 'Cannot redeclare class' in 4.3.0.RC4
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 bug report at http://bugs.php.net/?id=24470&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24470&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24470&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24470&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24470&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24470&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24470&r=support Expected behavior: http://bugs.php.net/fix.php?id=24470&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24470&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24470&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24470&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24470&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24470&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24470&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24470&r=gnused