summaryrefslogtreecommitdiff
path: root/ext/sqlite3/sqlite3.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2010-06-09 16:04:54 +0000
committerIlia Alshanetsky <iliaa@php.net>2010-06-09 16:04:54 +0000
commitf7d82d0e0d864ab2b7a712d35efde5bdbe1b08c8 (patch)
tree013f626b68bf5eb7fecae4b6acabe2dca80ca96b /ext/sqlite3/sqlite3.c
parent0d4720a61b92ee334d9c6798f4b2cd8960c17bf1 (diff)
downloadphp-git-f7d82d0e0d864ab2b7a712d35efde5bdbe1b08c8.tar.gz
Fixed bug #52010 (open_basedir restrictions mismatch on vacuum command).
Diffstat (limited to 'ext/sqlite3/sqlite3.c')
-rw-r--r--ext/sqlite3/sqlite3.c2
1 files changed, 1 insertions, 1 deletions
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