summaryrefslogtreecommitdiff
path: root/ext/dba/dba_db1.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2014-05-21 11:40:19 +0800
committerXinchen Hui <laruence@php.net>2014-05-21 11:40:19 +0800
commit6d12d3bae12682e66cc45de56b3bb6d07c038575 (patch)
tree2b6443dd14bf87f5f03883e7fd5883b4259fd013 /ext/dba/dba_db1.c
parent5d4f9dfff40b3abc8c3b638541852ac1b602c308 (diff)
downloadphp-git-6d12d3bae12682e66cc45de56b3bb6d07c038575.tar.gz
Refactored ext/dba (tests passes, but segfaults need to be fixed)
Diffstat (limited to 'ext/dba/dba_db1.c')
-rw-r--r--ext/dba/dba_db1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dba/dba_db1.c b/ext/dba/dba_db1.c
index a8221b9562..8ee5d95f22 100644
--- a/ext/dba/dba_db1.c
+++ b/ext/dba/dba_db1.c
@@ -51,8 +51,8 @@ DBA_OPEN_FUNC(db1)
int filemode = 0644;
if (info->argc > 0) {
- convert_to_long_ex(info->argv[0]);
- filemode = Z_LVAL_PP(info->argv[0]);
+ convert_to_long_ex(&info->argv[0]);
+ filemode = Z_LVAL(info->argv[0]);
}
gmode = 0;