sqlite_popen uses the persistent_list global hash table (executor) to store the connection resource. This hash table is not part of the php "instance" that executes your script, but from the php "runtime", which means that it is not cleared / deleted after the script is executed, but stored in memory until php.so/.dll /fastcgi.exe.
You cannot access the EG (persistent_list) from a php script, but any php module / extension can.
source share