|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-04-06 12:31 UTC] markonen@php.net
[2002-04-09 07:12 UTC] michael at janneck dot de
[2002-05-17 05:24 UTC] preston dot bannister at cox dot net
[2002-08-22 12:32 UTC] iliaa@php.net
[2014-07-03 17:56 UTC] thinsoldier at thinsoldier dot com
[2015-05-26 16:49 UTC] btomasik at telkonet dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 00:00:01 2025 UTC |
There is a bug with include_once including a file twice, if it is referenced once with a fully qualified path and once with only the filename (and the file being in the include path). This script illustrates what I mean: include_once('x.php'); include_once('/home/janneck/public_html/x.php'); On my Mac OS X 10.1.3, Apache 1.3.22, PHP 4.1.2 (also: 4.0.6) system, this results in x.php getting included twice. (It works as expected on RedHat 7.1, Apache 1.3.22, PHP 4.0.6.) doing "var_dump(get_included_files());" shows the following: array(2) { [0]=> string(6) "/x.php" [1]=> string(40) "/home/janneck/public_html/x.php" } This might be related to a problem with the "realpath()" function which does not work correctly but returns "" all the time.