|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-09-02 23:30 UTC] sk8boardkid at gmail dot com
[2006-09-04 08:28 UTC] tony2001@php.net
[2006-09-12 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 06:00:01 2025 UTC |
Description: ------------ The function "is_writable" does not work correctly: The attached script does not give the correct result when run from the command line or from apache the session.save_path is set to "/tmp" in php.ini which has the following permissions: drwxrwxrwt 25 root root 4096 Sep 2 23:30 tmp this is the normal file permissions for the linux /tmp directory. with these permissions any use can write into this directory, but the "is_writable" function returns "false" Reproduce code: --------------- <?php //checks if temp is writeable $sp=ini_get('session.save_path'); echo $sp . "<br/>"; if (is_writable($sp)) { echo 'The file is writable'; } else { echo 'The file is not writable'; } ?> Expected result: ---------------- /tmp<br/>The file is writable Actual result: -------------- /tmp<br/>The file is not writable