Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php sqlite3: are the database files closed automatically?

Tags:

php

sqlite

Simple question that i couldn't find in the SQLite3::close() of the PHP manual: does PHP close sqlite databases when the script ends or do we need to call $db->close() ourselves all the time?

like image 493
Marius Avatar asked Nov 15 '25 11:11

Marius


1 Answers

A simple answer: yes the file is closed at the end of the script. No need to do a close.

like image 193
JvdBerg Avatar answered Nov 18 '25 05:11

JvdBerg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!