summaryrefslogtreecommitdiff
path: root/ext/dba/dba_db4.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dba/dba_db4.c')
-rw-r--r--ext/dba/dba_db4.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/dba/dba_db4.c b/ext/dba/dba_db4.c
index 344515d820..a9d751269b 100644
--- a/ext/dba/dba_db4.c
+++ b/ext/dba/dba_db4.c
@@ -117,8 +117,7 @@ DBA_OPEN_FUNC(db4)
}
if (info->argc > 0) {
- convert_to_long_ex(&info->argv[0]);
- filemode = Z_LVAL(info->argv[0]);
+ filemode = zval_get_long(&info->argv[0]);
}
if ((err=db_create(&dbp, NULL, 0)) == 0) {