Skip to content

Commit f7d82d0

Browse files
committed
Fixed bug #52010 (open_basedir restrictions mismatch on vacuum command).
1 parent 0d4720a commit f7d82d0

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ PHP NEWS
6767
requests (Fixes CVE-2010-0397, bug #51288). (Raphael Geissert)
6868
- Fixed 64-bit integer overflow in mhash_keygen_s2k(). (Clément LECIGNE, Stas)
6969

70+
- Fixed bug #52010 (open_basedir restrictions mismatch on vacuum command).
71+
(Ilia)
7072
- Fixed bug #51991 (spl_autoload and *nix support with namespace). (Felipe)
7173
- Fixed bug #51911 (ReflectionParameter::getDefaultValue() memory leaks with
7274
constant array). (Felipe)

ext/sqlite3/sqlite3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1788,7 +1788,7 @@ static int php_sqlite3_authorizer(void *autharg, int access_type, const char *ar
17881788
switch (access_type) {
17891789
case SQLITE_ATTACH:
17901790
{
1791-
if (strncmp(arg3, ":memory:", sizeof(":memory:")-1)) {
1791+
if (strncmp(arg3, ":memory:", sizeof(":memory:")-1) && *arg3) {
17921792
TSRMLS_FETCH();
17931793

17941794
#if PHP_API_VERSION < 20100412

0 commit comments

Comments
 (0)