php-src/ext/sqlite3
Niels Dossche 07a9d2fb32 Fix GH-11878: SQLite3 callback functions cause a memory leak with a callable array
In this test file, the free_obj handler is called with a refcount of 2,
caused by the fact we do a GC_ADDREF() to increase its refcount while
its refcount is still 1 because the Foo object hasn't been destroyed yet
(due to the cycle caused by the sqlite function callback).
Solve this by introducing a get_gc handler.

Closes GH-11881.
2023-09-09 15:33:50 +02:00
..
tests Fix GH-11878: SQLite3 callback functions cause a memory leak with a callable array 2023-09-09 15:33:50 +02:00
config0.m4 Require sqlite >= 3.7.7 for URI in DSN (#7347) 2021-08-11 10:31:28 +02:00
config.w32 sqlite3 linkage issue on some systems/package combination fix. 2020-08-21 15:45:51 +02:00
CREDITS Good patch from Brad Dewar that adds missing createCollation() 2012-01-29 03:57:29 +00:00
php_sqlite3_structs.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_sqlite3.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
sqlite3_arginfo.h Use single line phpdoc in stubs where possible 2021-07-20 13:16:56 +02:00
sqlite3.c Fix GH-11878: SQLite3 callback functions cause a memory leak with a callable array 2023-09-09 15:33:50 +02:00
sqlite3.stub.php Use single line phpdoc in stubs where possible 2021-07-20 13:16:56 +02:00