#38634 [Opn->Fbk]: include_once/require_once messes up with symlinks
| From: | tony2001@php.net | Date: | Tue, 29 Aug 2006 10:04:52 +0000 |
| Subject: | #38634 [Opn->Fbk]: include_once/require_once messes up with symlinks | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-101477@lists.php.net to get a copy of this message | ||
ID: 38634
Updated by: tony2001@php.net
Reported By: ls at dutchpipe dot org
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: FreeBSD
PHP Version: 5.1.5
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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