#38634 [Com]: include_once/require_once messes up with symlinks
| From: | pav at oook dot cz | Date: | Mon, 04 Jun 2007 16:28:37 +0000 |
| Subject: | #38634 [Com]: include_once/require_once messes up with symlinks | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-113357@lists.php.net to get a copy of this message | ||
ID: 38634
Comment by: pav at oook dot cz
Reported By: ls at dutchpipe dot org
Status: No Feedback
Bug Type: Scripting Engine problem
Operating System: FreeBSD
PHP Version: 5.1.5
New Comment:
Can't reproduce with php-5.2.2 on FreeBSD 6.2.
Previous Comments:
------------------------------------------------------------------------
[2006-09-06 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2006-08-29 10:04:51] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
Can't reproduce.
------------------------------------------------------------------------
[2006-08-28 22:15:46] ls at dutchpipe dot org
Description:
------------
With e.g. symlink /home --> /usr/home require_once will require it
again the second time.
Reproduce code:
---------------
symlink /home --> /usr/home
require_once('/home/foo_class.php');
print_r(get_included_files());
Array
(
[0] => /usr/home/foo_class.php
}
require_once('/home/foo_class.php');
Fatal error: Cannot redeclare class in /usr/home/foo_class.php on line
666
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38634&edit=1