|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-04-22 08:23 UTC] alberty at neptunelabs dot de
Hi, dba_open() ignores the umask settings if you create a new database. I think dba_open should also respect the umask settings, as well as fopen(). Regards, Steve PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 16:00:02 2025 UTC |
I can confirm this bug and provide an example (Gentoo with PHP 5.2.6_rc4 here): $oldUmask = umask(0117); $dbm = dba_popen("/some/file.dbm", "c"); umask($oldUmask); For some handlers (tested: gdbm, qdbm), the file permissions always are 0640 or -rw-r----- no matter what umask is set. Regards, Ronino