#27891 [Fbk->Opn]: Bad behavior of require() function
| From: | faraco dot phpbugs at mailnull dot com | Date: | Tue, 17 May 2005 20:54:54 +0000 |
| Subject: | #27891 [Fbk->Opn]: Bad behavior of require() function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-79113@lists.php.net to get a copy of this message | ||
ID: 27891
User updated by: faraco dot phpbugs at mailnull dot com
Reported By: faraco dot phpbugs at mailnull dot com
-Status: Feedback
+Status: Open
Bug Type: Zend Engine 2 problem
Operating System: Windows NT4 SP6
-PHP Version: 5.0.4
+PHP Version: 5.1.0-dev
New Comment:
The problem persists.
Previous Comments:
------------------------------------------------------------------------
[2005-05-17 16:46:44] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-05-16 22:34:47] faraco dot phpbugs at mailnull dot com
Another way to explain the problem...
Following de example above:
1. when I require 'lib/functions.php', the file is first looked in my
domain document root ['docroot/lib/'] and then in my actual path
['subroot/lib'] because if I delete the first directory, the same
script finds the second directory;
2. Yes, my 'include_path' is set to '.';
3. Again, ISAPI Caching is disabled.
------------------------------------------------------------------------
[2005-05-16 22:07:13] faraco dot phpbugs at mailnull dot com
I've disabled ISAPI cache and the problem persists.
------------------------------------------------------------------------
[2004-09-24 18:35:46] kj at legalizer dot dk
What if you turn off ISAPI caching?
------------------------------------------------------------------------
[2004-04-06 15:21:29] faraco dot phpbugs at mailnull dot com
Here is the confirmation of the bug. Changing index.php to:
<?
echo realpath("../lib/functions.php")."<br>";
echo realpath("lib/functions.php");
?>
Expected result is:
E:\docroot\lib\functions.php
E:\docroot\subroot\lib\functions.php
While actual result is:
E:\docroot\lib\functions.php
E:\docroot\lib\functions.php
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/27891
--
Edit this bug report at http://bugs.php.net/?id=27891&edit=1