we now have fcntl
authorMichael Wallner <mike@php.net>
Tue, 26 Jan 2016 10:58:32 +0000 (11:58 +0100)
committerMichael Wallner <mike@php.net>
Tue, 26 Jan 2016 10:58:32 +0000 (11:58 +0100)
tests/ndbm/ndbm001.phpt

index e14f3f1..27012be 100644 (file)
@@ -13,7 +13,7 @@ function_exists("psi\\dbm_open") or die("skip - need nbdm support");
 class db {
        private $db;
        
-       function __construct($file = "ndbm001.db", $o = 0102, $m = 0640) {
+       function __construct($file = "ndbm001.db", $o = psi\O_CREAT|psi\O_RDWR, $m = 0640) {
                if (!$this->db = psi\dbm_open($file, $o, $m)) {
                        throw new Exception(psi\strerror(psi\errno()));
                }