ID:               27790
 User updated by:  postmaster at rrnet dot se
 Reported By:      postmaster at rrnet dot se
 Status:           Open
 Bug Type:         Filesystem function related
 Operating System: Slackware 9.1
 PHP Version:      4.3.4
 New Comment:

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.


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

[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

Reply via email to