|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-15 21:49 UTC] tony2001@php.net
[2006-05-16 11:38 UTC] n dot escuder at intra-links dot com
[2006-05-16 13:07 UTC] tony2001@php.net
[2007-01-10 16:27 UTC] n dot escuder at intra-links dot com
[2007-02-20 22:43 UTC] tony2001@php.net
[2007-02-21 13:19 UTC] n dot escuder at intra-links dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ fopen report no such file or directory when open in w mode. It's seem to be related with include path with symlink as you can see in sample if the include path is /tmp/php all work. but if the include path is /tmp/link ( sym link ) the script fail. Reproduce code: --------------- ini_set('include_path', "/tmp/link"); @mkdir("/tmp/php", 0777, true); touch("/tmp/php/one.php"); @symlink( "/tmp/php", "/tmp/link" ); require_once "one.php"; @mkdir("/tmp/essai"); chroot("/tmp/essai" ); @mkdir("/tmp/link/interfaces", 0777, true); $fd = fopen("/tmp/link/one.php", "wb"); Expected result: ---------------- No error and an file pointer in $fd Actual result: -------------- Warning: fopen(/tmp/link/one.php): failed to open stream: No such file or directory in /tmp/essai.php on line 16