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
 [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 25 14:01:31 2024 UTC