|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-12-28 10:36 UTC] tony2001@php.net
[2007-01-05 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 12:00:01 2025 UTC |
Description: ------------ is_writable() has problems to handle certain proper unix paths like "/some/dir/../dir/file.suffix" Reproduce code: --------------- <?php $basedir = dirname(__FILE__); require_once($basedir.'/../dir/blah.php'); /* this works fine. */ if (!is_writable($basedir.'/../dir/blah.php')) { echo '1 - blah.php not writeable.'; } else { echo '1 - OK'; } if (!is_writable('../dir/blah.php')) { echo '2 - blah.php not writeable.'; } else { echo '2 - OK'; } ?> Expected result: ---------------- 1 - OK 2 - OK Actual result: -------------- 1 - blah.php not writeable. 2 - OK