ID:               40092
 User updated by:  n dot escuder at intra-links dot com
-Summary:          md5_file don't always work when chroot
 Reported By:      n dot escuder at intra-links dot com
 Status:           Bogus
 Bug Type:         Filesystem function related
 Operating System: Linux 2.6
 PHP Version:      5.2.0
 New Comment:

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


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

[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