go to bug id or search bugs for
When executing md5_file on a chroot fs it say no such file and it's false.
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" );
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" );
the md5 of the file.
Warning: md5_file(/tmp/php/link/one.php): failed to open stream: No such file or directory
Add a Patch
Add a Pull Request
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
Thank you for your interest in PHP.
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 ?
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.
Dmitry, I guess we need to clear realpath_cache on chroot().
Fixed in CVS HEAD and PHP_5_2.