ID:               40092
 Updated by:       [EMAIL PROTECTED]
 Reported By:      n dot escuder at intra-links dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         Filesystem function related
 Operating System: Linux 2.6
 PHP Version:      5.2.0
-Assigned To:      
+Assigned To:      dmitry
 New Comment:

Dmitry, I guess we need to clear realpath_cache on chroot().


Previous Comments:
------------------------------------------------------------------------

[2007-01-14 21:22:36] n dot escuder at intra-links dot com

The bug and the number 37395 are related to the php_stream_open_wrapper
C function. I don't known which bug i must stay open so close one of
them.

For more informations please mail me.

------------------------------------------------------------------------

[2007-01-10 16:07:37] n dot escuder at intra-links dot com

I don't understand why you say this because before i have found an bug
that seem to be the same and i twas corrected by you
http://bugs.php.net/bug.php?id=37395

For me it's an md5/chroot bug.

So i don't understand.

Can i have more explanation please ?
Or a mailing list for asking ?

Please.

Nicolas

------------------------------------------------------------------------

[2007-01-10 15:35:43] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.



------------------------------------------------------------------------

[2007-01-10 15:30:41] n dot escuder at intra-links dot com

Description:
------------
When executing md5_file on a chroot fs it say no such file and it's
false.

Reproduce code:
---------------
<?
mkdir( "/tmp/php/include", 0777, true );
touch( "/tmp/php/include/one.php" );
symlink( "/tmp/php/include", "/tmp/php/link" );
ini_set( "include_path", "/tmp/php/link" );
require_once "one.php";
mkdir( "/tmp/chroot" );
chroot( "/tmp/chroot" );
mkdir( "/tmp/php/link", 0777, true );
touch( "/tmp/php/link/one.php" );
md5_file( "/tmp/php/link/one.php" );
?>

Expected result:
----------------
the md5 of the file.

Actual result:
--------------
Warning: md5_file(/tmp/php/link/one.php): failed to open stream: No
such file or directory


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40092&edit=1

Reply via email to