We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4a8c2d commit 5995d3cCopy full SHA for 5995d3c
ext/dba/dba.c
@@ -660,27 +660,12 @@ static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, bool persistent)
660
* when the lib opens the file it is already created
661
*/
662
file_mode = "r+b"; /* read & write, seek 0 */
663
-#ifdef PHP_WIN32
664
- if (!need_creation) {
665
- lock_file_mode = "r+b";
666
- } else
667
-#endif
668
lock_file_mode = "a+b"; /* append */
669
} else {
670
671
672
- file_mode = "r+b";
673
674
675
file_mode = "a+b"; /* append */
676
lock_file_mode = "w+b"; /* create/truncate */
677
}
678
679
680
681
682
683
684
file_mode = "a+b";
685
686
/* In case of the 'a+b' append mode, the handler is responsible
0 commit comments