php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #167 Chmod doc glitch
Submitted: 1998-03-13 12:08 UTC Modified: 1998-03-17 23:36 UTC
From: glauche at plum dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: 3.0b4 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: glauche at plum dot de
New email:
PHP Version: OS:

 

 [1998-03-13 12:08 UTC] glauche at plum dot de
Hi,

  not really a bug, but you should state
clearly that you need to specify a decimal 
value of the rights to chmod.
so chmod(<file>,0755) (using octal) like in PHP 2.0
does not work anymore. 

In what form do you edit your help pages ?
I use php quite frequent, and wanna write
down my "experiences" somtimes .. :)

regards,
   Michael Glauche

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-03-17 23:36 UTC] jim
chmod($file, 0755) works perfectly.

chmod($file, "0755") doesn't automatically convert to
octal as happened in PHP/FI. You need to do
chmod($file, octdec("0755")). (Note that any input coming
from an SQL database or form is encoded as a string.)


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 17:01:28 2024 UTC