|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-02 21:46 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 15:00:02 2025 UTC |
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.