summaryrefslogtreecommitdiff
path: root/ext/dbase/dbase.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dbase/dbase.c')
-rw-r--r--ext/dbase/dbase.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dbase/dbase.c b/ext/dbase/dbase.c
index 9cb8325b74..63312f47b6 100644
--- a/ext/dbase/dbase.c
+++ b/ext/dbase/dbase.c
@@ -598,7 +598,7 @@ PHP_FUNCTION(dbase_create) {
RETURN_FALSE;
}
- if ((fd = V_OPEN((Z_STRVAL_P(filename), O_BINARY|O_RDWR|O_CREAT, 0644))) < 0) {
+ if ((fd = VCWD_OPEN((Z_STRVAL_P(filename), O_BINARY|O_RDWR|O_CREAT, 0644))) < 0) {
php_error(E_WARNING, "Unable to create database (%d): %s", errno, strerror(errno));
RETURN_FALSE;
}