Skip to content

Commit bf7d3e0

Browse files
committed
Merge branch 'PHP-5.6'
* PHP-5.6: Fixed typo
2 parents fa348dc + ec0b888 commit bf7d3e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/dba/dba.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, int persistent)
921921
RETURN_FALSE;
922922
#ifdef F_SETFL
923923
} else if (modenr == DBA_CREAT) {
924-
int flags = fcntl(info->fd, F_SETFL);
924+
int flags = fcntl(info->fd, F_GETFL);
925925
fcntl(info->fd, F_SETFL, flags & ~O_APPEND);
926926
#endif
927927
}

0 commit comments

Comments
 (0)