|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-08-30 15:45 UTC] pajoye@php.net
[2009-08-30 15:56 UTC] info at libertydesign dot de
[2009-08-30 16:03 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 23:00:01 2025 UTC |
Description: ------------ Symbolic links under Windows Vista doesnt work as expected anymore when using PHP 5.3 in combination with Apache 2.2.12. See Code below. Resolving to Base.php works. But using BASE_DIR in Base.php itself causes Warning: require_once(C:\localhost\htdocs\page/lib/base/Database.class.php) [function.require-once]: failed to open stream: No such file or directory in C:\localhost\htdocs\page/lib/base/Base.php on line 7 Fatal error: require_once() [function.require]: Failed opening required 'C:\localhost\htdocs\page/lib/base/Database.class.php' (include_path='.;C:\localhost\php\pear\') in C:\localhost\htdocs\page\lib\base\Base.php on line 7 but sometimes it works, than i reload and it doesn't work again. I don't know why. With PHP 5.2.9 it works as expected. Reproduce code: --------------- /* in C:\localhost\page/index.php */ // something like C:\localhost\page/ define('BASE_DIR', dirname(__FILE__).'/'); // the base dir is a symbolic link to C:\localhost\_base/ require_once(BASE_DIR.'lib/base/Base.php'); /* in C:\localhost\_base/Base.php */ require_once(BASE_DIR.'lib/base/Database.php');