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

Pull Requests

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: Sat Dec 21 17:01:58 2024 UTC