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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Sun Feb 25 03:01:28 2024 UTC