#27790 [Opn->Bgs]: PHP chmod's totaly wrong
| From: | alan_k@php.net | Date: | Wed, 31 Mar 2004 06:38:33 +0000 |
| Subject: | #27790 [Opn->Bgs]: PHP chmod's totaly wrong | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-57183@lists.php.net to get a copy of this message | ||
ID: 27790
Updated by: alan_k@php.net
Reported By: postmaster at rrnet dot se
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Slackware 9.1
PHP Version: 4.3.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
the mode is octel: eg. 0644 - not a string '644'
Previous Comments:
------------------------------------------------------------------------
[2004-03-31 01:31:59] postmaster at rrnet dot se
Sorry, forgot to say that it gets everything from an uploadscript, and
then sets the right chmod to be able to delete the file later if
needed.
------------------------------------------------------------------------
[2004-03-31 01:29:40] postmaster at rrnet dot se
Description:
------------
PHP have some strange problem, to set file-permissions on my machine
(Slackware 9.1).
It sets them totaly wrong.
Software is PHP 4.3.4 on Apache 1.3.29.
Filesystem is ext3.
PHP is NOT in safe_mode.
Nothing more specific to report.
Reproduce code:
---------------
$file = "/home/dream/public_html/Upic/1/2.jpg";
chmod($file,'0644');
the same result happened with chmod($file,'644');
Expected result:
----------------
-rw-r--r-- 1 nobody nobody 28739 Mar 31 08:30 2.jpg
Actual result:
--------------
--w----r-T 1 nobody nobody 28739 Mar 31 08:30 2.jpg
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27790&edit=1