ID:               39970
 Updated by:       [EMAIL PROTECTED]
 Reported By:      karibu at gmx dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         Filesystem function related
 Operating System: Mac OS X 10.3.9
 PHP Version:      4.4.4
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Cannot reproduce.


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

[2006-12-28 00:50:09] karibu at gmx dot net

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


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


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

Reply via email to