Bug #11046 Updated: mkdir doesnt sets permissions

From: Date: Wed, 27 Jun 2001 06:24:05 +0000
Subject: Bug #11046 Updated: mkdir doesnt sets permissions
Groups: php.dev 
Request: Send a blank email to php-dev+get-58156@lists.php.net to get a copy of this message
ID: 11046 Updated by: danbeck Reported By: javieracastro@hotmail.com Status: Analyzed Old-Bug Type: Documentation problem Bug Type: Filesystem function related Operating system: PHP Version: 4.0.4pl1 Assigned To: Comments: This is not a documentation problem. Previous Comments: --------------------------------------------------------------------------- [2001-05-23 05:32:07] sniper@php.net Your umask setting is most likely the cause. Please try this instead: <?php $oldumask = umask(0); mkdir('mydir', 0777); umask($oldumask); ?> --------------------------------------------------------------------------- [2001-05-23 05:19:07] javieracastro@hotmail.com mkdir("test",0777) the directory is dwrx-rx-rx, not dwrxwrxwrx :) why? or it is my server with some rare php config? --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11046&edit=2

« previous php.dev (#58156) next »