Doc #66414 [Opn->Csd]: Wrong access mode

From: Date: Sun, 05 Jan 2014 07:06:11 +0000
Subject: Doc #66414 [Opn->Csd]: Wrong access mode
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10809@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66414&edit=1 ID: 66414 Updated by: krakjoe@php.net Reported by: wouter at wouterj dot nl Summary: Wrong access mode -Status: Open +Status: Closed Type: Documentation Problem Package: Directory function related Operating System: not windows PHP Version: Irrelevant -Assigned To: +Assigned To: krakjoe Block user comment: N Private report: N New Comment: The fix for this bug has been committed. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2014-01-05 07:05:49] krakjoe@php.net Automatic comment from SVN on behalf of krakjoe Revision: http://svn.php.net/viewvc/?view=revision&revision=332580 Log: fix #66414 bad mkdir example ------------------------------------------------------------------------ [2014-01-04 21:59:26] wouter at wouterj dot nl Description: ------------ --- From manual page: http://www.php.net/function.mkdir --- Example #2 sets the access mode to 0, which means nobody can access it. It should use the default value (0777). Test script: --------------- $structure = './depth1/depth2/depth3/'; mkdir($structure, 0, true); file_put_contents($structure.'/my-file.txt', 'hello world'); Expected result: ---------------- A file named 'my-file.txt' in './depth1/depth2/depth3/' with the content 'hello world' should be created Actual result: -------------- Warning: mkdir() [function.mkdir]: Permission denied in [...] ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66414&edit=1

« previous php.doc.bugs (#10809) next »