php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2602 mkdir (filename,0777) but it can't change the attrib,only change to rwxr-xr-w
Submitted: 1999-10-26 01:03 UTC Modified: 1999-11-16 00:22 UTC
From: temple at 126 dot com Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0.12 OS: linux redhat6.0
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: temple at 126 dot com
New email:
PHP Version: OS:

 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-16 00:22 UTC] joey at cvs dot php dot net
You have to do

<?

umask(0);
mkdir($name, 0777);

?>
the 0777 is &'d into umask (usually 002, or something like)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 26 12:01:29 2024 UTC