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
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: 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: Sat Dec 21 16:01:28 2024 UTC