note 49245 added to function.require-once
| From: | thomas dot revell at uwe dot ac dot uk | Date: | Fri, 21 Jan 2005 10:00:33 +0000 |
| Subject: | note 49245 added to function.require-once | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-83722@lists.php.net to get a copy of this message | ||
Regarding the case insensitivity problems on Windows, it looks to me as though it is a problem in
PHP5 as well (at least in some cases).
The following gave me problems:
From file URLSwitcher.php
<?php
require_once 'slimError/slimError.php';
require_once 'Navigator_Cache.php';
....
?>
From file Navigator_Cache.php
<?php
require_once 'slimError/slimerror.php';
...
?>
From file slimerror.php
<?php
class SLIMError {
...
}
?>
The above setup gave me an error : "Cannot redeclare class SLIMError"
If I change the require_once in URLSwitcher.php to match the one in Navigator_Cache.php, there
isn't a problem, but if I do this the other way round, the same problem occurs.
----
Manual Page -- http://www.php.net/manual/en/function.require-once.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49245
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49245&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49245&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49245&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49245&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49245&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49245&report=yes
Search -- http://master.php.net/manage/user-notes.php