diff --git a/NEWS b/NEWS index 4f2f1bb678c..b2156e33a7b 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ (marci at balabit dot hu, Tony) - Removed current working directory from the php.ini search path for CLI and readded it for other SAPIs (restore to pre 5.1.x behaviour). (Edin) +- Fixed bug #38759 (PDO sqlite2 empty query causes segfault). (Tony) - Fixed bug #38700 (SoapClient::__getTypes never returns). (Dmitry) - Fixed bug #38693 (curl_multi_add_handle() set curl handle to null). (Ilia) - Fixed bug #38661 (mixed-case URL breaks url-wrappers). (Ilia) diff --git a/ext/sqlite/libsqlite/src/vdbe.c b/ext/sqlite/libsqlite/src/vdbe.c index 7ea05c9acd2..cdbea0ed6bc 100644 --- a/ext/sqlite/libsqlite/src/vdbe.c +++ b/ext/sqlite/libsqlite/src/vdbe.c @@ -114,7 +114,7 @@ int sqlite_step( sqlite *db; int rc; - if( p->magic!=VDBE_MAGIC_RUN ){ + if( !p || p->magic!=VDBE_MAGIC_RUN ){ return SQLITE_MISUSE; } db = p->db;