#27891 [NoF->Opn]: Bad behavior of require() function
| From: | faraco dot phpbugs at mailnull dot com | Date: | Wed, 14 Apr 2004 13:11:58 +0000 |
| Subject: | #27891 [NoF->Opn]: Bad behavior of require() function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-58109@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: No Feedback
+Status: Open
Bug Type: Zend Engine 2 problem
Operating System: Windows NT4 SP6
PHP Version: 5.0.0RC1
New Comment:
The problem persists.
Previous Comments:
------------------------------------------------------------------------
[2004-04-13 12:44:30] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2004-04-09 12:55:19] 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
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
[2004-04-06 15:10:20] faraco dot phpbugs at mailnull dot com
The same script runs perfectly on PHP 4.3.4.
------------------------------------------------------------------------
[2004-04-06 14:55:53] faraco dot phpbugs at mailnull dot com
Sorry. I mistyped the Actual Result. The correct message is:
PHP Fatal error: Cannot redeclare anyfunction() (previously declared
in
E:\docroot\lib\functions.php:4) in E:\docroot\lib\functions.php on
line 7
------------------------------------------------------------------------
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