php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #214 mode for chmod is in decimal instead of octal
Submitted: 1998-03-30 16:51 UTC Modified: 1998-03-30 17:25 UTC
From: leon dot atkinson at clearink dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0 Latest CVS OS: Solaris
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: leon dot atkinson at clearink dot com
New email:
PHP Version: OS:

 

 [1998-03-30 16:51 UTC] leon dot atkinson at clearink dot com
chmod("foo", 777) treats 777 as a decimal number, which
forces you to do octal-decimal conversion.

It's doing it with mkdir() as well.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-03-30 17:25 UTC] jim
This is the correct behavior. If you want it

to operate on an octal number, give it an

octal number:



chmod("foo", 0777);


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 15 16:01:28 2024 UTC