File tree Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -956,27 +956,26 @@ static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, int persistent)
956
956
int flags = fcntl (info -> fd , F_GETFL );
957
957
fcntl (info -> fd , F_SETFL , flags & ~O_APPEND );
958
958
#elif defined(PHP_WIN32)
959
- } else if (modenr == DBA_CREAT && need_creation && !restarted ) {
960
- zend_bool close_both ;
959
+ } else if (modenr == DBA_CREAT && need_creation && !restarted ) {
960
+ zend_bool close_both ;
961
961
962
- close_both = (info -> fp != info -> lock .fp );
963
- php_stream_close (info -> lock .fp );
964
- if (close_both ) {
965
- php_stream_close (info -> fp );
966
- }
967
- info -> fp = NULL ;
968
- info -> lock .fp = NULL ;
969
- info -> fd = -1 ;
962
+ close_both = (info -> fp != info -> lock .fp );
963
+ php_stream_close (info -> lock .fp );
964
+ if (close_both ) {
965
+ php_stream_close (info -> fp );
966
+ }
967
+ info -> fp = NULL ;
968
+ info -> lock .fp = NULL ;
969
+ info -> fd = -1 ;
970
970
971
- pefree (info -> lock .name , persistent );
971
+ pefree (info -> lock .name , persistent );
972
972
973
- lock_file_mode = "r+b" ;
973
+ lock_file_mode = "r+b" ;
974
974
975
- restarted = 1 ;
976
- goto restart ;
975
+ restarted = 1 ;
976
+ goto restart ;
977
977
#endif
978
978
}
979
-
980
979
}
981
980
}
982
981
You can’t perform that action at this time.
0 commit comments