summaryrefslogtreecommitdiff
path: root/ext/dbase
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dbase')
-rw-r--r--ext/dbase/dbase.c2
-rw-r--r--ext/dbase/dbf_head.c4
2 files changed, 3 insertions, 3 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;
}
diff --git a/ext/dbase/dbf_head.c b/ext/dbase/dbf_head.c
index c92a29ba3a..b99c1a1acd 100644
--- a/ext/dbase/dbf_head.c
+++ b/ext/dbase/dbf_head.c
@@ -227,10 +227,10 @@ dbhead_t *dbf_open(char *dp, int o_flags)
dbhead_t *dbh;
cp = dp;
- if ((fd = V_OPEN((cp, o_flags|O_BINARY))) < 0) {
+ if ((fd = VCWD_OPEN((cp, o_flags|O_BINARY))) < 0) {
cp = (char *)malloc(256);
strcpy(cp, dp); strcat(cp, ".dbf");
- if ((fd = V_OPEN((cp, o_flags))) < 0) {
+ if ((fd = VCWD_OPEN((cp, o_flags))) < 0) {
perror("open");
return NULL;
}