ID: 37395
Updated by: [EMAIL PROTECTED]
Reported By: n dot escuder at intra-links dot com
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Linux
PHP Version: 5.1.4
New Comment:
Remove all those @ and you'll see the very expected error messages.
Previous Comments:
------------------------------------------------------------------------
[2006-05-10 11:41:23] n dot escuder at intra-links dot com
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37395&edit=1