Hi, It does not seem to happen in Linux. I had similar issue with Netware. The issue was with my script. The issue can be, In A.php you might have require_once("common.php"); In A.php you might have require_once("Common.Php"); For windows file system 'common.php', 'Common.php', 'CoMmOn.PhP' and all such combinations are same. But for PHP each one are different so it would try to load many times and hence the fatal error.
With regards Kamesh Jayachandran On Tue, 2004-05-04 at 10:55, Tumurbaatar S. wrote: > 'common.php' contains some class definition and PHP5 fails with > 'PHP Fatal error: Cannot redeclare class ... in common.php...' when > script C.php starts. The file including map is: > > A.php: require_once(common.php) > B.php: require_once(common.php) > C.php: > require_once(A.php) > require_once(B.php) > > That is bug? When only one file is included (A or B), > the contents of 'common.php' is available, i.e. nested require > works. Only fails when nested and multiple require. > > P.S. I use PHP5 RC2 running as CGI on WinXP/IIS. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php