|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-06-02 11:04 UTC] jacques dot moati at happyend dot fr
Description: ------------ Hello, This bug is present into all 5.3 php version. I test it in the ubuntu package, php 5.3 stable and snap version with --disable-all for ./config compilation. When you include a file in a relative (eg ../) symbolic link directory, PHP don't include it and do a FATAL error. files_existes and is_readable return true ... If the symbolic link of the diectory is absolute, the include work correctly ... PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 21:00:02 2025 UTC |
I see this problem also. Assume the following files: /mylib/css.php /mylib/needs/supportfile.php and the contents of css.php are something like as follows: <?php require_once('needs/supportfile.php'); class css { static function get() { return "#col { color: red; }"; } } ?> Then assume an application that uses the css.php library cd /anApplication ln -s /mylib css then create the file /anApplication/test.php with the following contents <?php include_once('css/css.php'); print css::get(); ?> This fails as the require_once in css.php does not find the needs/supportfile.php file