note 69339 added to function.require-once
| From: | rejjn at mail dot nu | Date: | Fri, 01 Sep 2006 09:28:58 +0000 |
| Subject: | note 69339 added to function.require-once | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116579@lists.php.net to get a copy of this message | ||
The following only applies to case insensitive systems like Windows.
Even though the documentation sais that "the path is normalized" that doesn't seem to
be true in all cases.
If you are using the magic __autoload() function (or if the framework you're using is using it)
and it includes the requested class file with complete path or if you override the include path in
mid execution, you may have some very strange behavior. The most subtle problem is that the *_once
functions seem to differentiate between c:\.... and C:\....
So to avoid any strange problems and painfull debugging make sure ALL paths you use within the
system have the same case everywhere, and that they correspond with the actual case of the
filesystem. That includes include paths set in webserver config/php.ini, auto load config, runtime
include path settings or anywhere else.
----
Server IP: 193.27.201.10 (proxied: 193.27.201.10 1.0 www1.shellkonto.se:3128 (squid/2.5.STABLE4))
Probable Submitter: 212.112.184.254
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.require-once.php
Edit -- https://master.php.net/note/edit/69339
Del: integrated -- https://master.php.net/note/delete/69339/integrated
Del: useless -- https://master.php.net/note/delete/69339/useless
Del: bad code -- https://master.php.net/note/delete/69339/bad+code
Del: spam -- https://master.php.net/note/delete/69339/spam
Del: non-english -- https://master.php.net/note/delete/69339/non-english
Del: in docs -- https://master.php.net/note/delete/69339/in+docs
Del: other reasons-- https://master.php.net/note/delete/69339
Reject -- https://master.php.net/note/reject/69339
Search -- https://master.php.net/manage/user-notes.php