php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38634 include_once/require_once messes up with symlinks
Submitted: 2006-08-28 22:15 UTC Modified: 2006-09-06 01:00 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: ls at dutchpipe dot org Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.1.5 OS: FreeBSD
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-08-28 22:15 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-29 10:04 UTC] 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-09-06 01:00 UTC] 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".
 [2007-06-04 16:28 UTC] pav at oook dot cz
Can't reproduce with php-5.2.2 on FreeBSD 6.2.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jun 26 13:01:46 2024 UTC