md5_file don't work in some conditions
| Bug #40092 | md5_file don't work in some conditions | ||||
|---|---|---|---|---|---|
| Submitted: | 2007-01-10 15:30 UTC | Modified: | 2007-01-22 09:33 UTC | ||
| From: | n dot escuder at intra-links dot com | Assigned: | dmitry (profile) | ||
| Status: | Closed | Package: | Filesystem function related | ||
| PHP Version: | 5.2.0 | OS: | Linux 2.6 | ||
| Private report: | No | CVE-ID: | None | ||
[2007-01-10 15:30 UTC] 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2007-01-10 15:35 UTC] tony2001@php.net
[2007-01-10 16:07 UTC] n dot escuder at intra-links dot com
[2007-01-14 21:22 UTC] n dot escuder at intra-links dot com
[2007-01-17 10:38 UTC] tony2001@php.net