php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30284 chmod function NOT work
Submitted: 2004-09-30 04:56 UTC Modified: 2004-09-30 10:00 UTC
From: ipiranha at gmail dot com Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.3.9 OS: FreeBSD 5.2.1-RELEASE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ipiranha at gmail dot com
New email:
PHP Version: OS:

 

 [2004-09-30 04:56 UTC] ipiranha at gmail dot com
Description:
------------
my freebsd box php chmod function not work.

chmod ("$upload_file_name", "0777");
NOT work. 

# ls -al
-rw-r--r--  1 nobody   nobody     159744 Sep 30 11:42 test1.txt

So I was modify my source code 

ex)
exec("chmod 0777 $upload_file_name");

# ls -al 
-rwxrwxrwx  1 nobody   nobody     159744 Sep 30 11:44 test2.txt

GOOD work.

So Oops.

chmod ("$upload_file_name", 0777); -> not work.
chmod ($upload_file_name, 0777);   -> GOOD work.


why ?

check this. ^^/




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-30 10:00 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 12:01:36 2025 UTC