|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-06-14 19:46 UTC] iliaa@php.net
[2004-06-16 09:12 UTC] aldo at pepperstream dot nl
[2004-06-18 19:04 UTC] imprestavel at gameguru dot com dot br
[2004-06-22 15:51 UTC] aldo at pepperstream dot nl
[2004-06-22 17:09 UTC] jochem at pepperstream dot nl
[2004-06-28 11:49 UTC] rasmus@php.net
[2004-06-28 11:59 UTC] aldo at pepperstream dot nl
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Mar 26 23:00:01 2026 UTC |
Description: ------------ I hope this bug has not already been reported but I have the following directory structure: root \_ src |_ plugins \_ [nameplugin] \_ src (so a src directory in both root and in a plugin two directories further up) In a file in the root I refer to: require_once('src/library.php'); and I do the same in the root/plugins/[nameplugin] directory: require_once('src/library.php'); Now the second library.php refuses to be included. It referes to two different files, but the include looks similar due to the relative path's being used. When I renamed the second library.php to library2.php a test all my functions and also some test code started working. Reproduce code: --------------- root/index.php require_once('src/library.php'); root/plugins/[nameplugin]/[nameplugin].php require_once('src/library.php'); Expected result: ---------------- I expected both library.php's who exist on different path's to work and not just the one to be included, as both files are actually different, only their names and the relative path to differ. Actual result: -------------- second library.php was not included.