From f7d82d0e0d864ab2b7a712d35efde5bdbe1b08c8 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 9 Jun 2010 16:04:54 +0000 Subject: [PATCH] Fixed bug #52010 (open_basedir restrictions mismatch on vacuum command). --- NEWS | 2 ++ ext/sqlite3/sqlite3.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 6d94560dcb..dfbb46cd90 100644 --- a/NEWS +++ b/NEWS @@ -67,6 +67,8 @@ PHP NEWS requests (Fixes CVE-2010-0397, bug #51288). (Raphael Geissert) - Fixed 64-bit integer overflow in mhash_keygen_s2k(). (Clément LECIGNE, Stas) +- Fixed bug #52010 (open_basedir restrictions mismatch on vacuum command). + (Ilia) - Fixed bug #51991 (spl_autoload and *nix support with namespace). (Felipe) - Fixed bug #51911 (ReflectionParameter::getDefaultValue() memory leaks with constant array). (Felipe) diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c index 00364b0dd4..10bd32024b 100644 --- a/ext/sqlite3/sqlite3.c +++ b/ext/sqlite3/sqlite3.c @@ -1788,7 +1788,7 @@ static int php_sqlite3_authorizer(void *autharg, int access_type, const char *ar switch (access_type) { case SQLITE_ATTACH: { - if (strncmp(arg3, ":memory:", sizeof(":memory:")-1)) { + if (strncmp(arg3, ":memory:", sizeof(":memory:")-1) && *arg3) { TSRMLS_FETCH(); #if PHP_API_VERSION < 20100412 -- 2.40.0