#27790 [Opn]: PHP chmod's totaly wrong

From: Date: Wed, 31 Mar 2004 06:31:59 +0000
Subject: #27790 [Opn]: PHP chmod's totaly wrong
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57182@lists.php.net to get a copy of this message
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

« previous php.bugs (#57182) next »