Fixed bug #52010 (open_basedir restrictions mismatch on vacuum command).

This commit is contained in:
Ilia Alshanetsky 2010-06-09 16:04:54 +00:00
parent 400769fd2a
commit b643e123ee

View File

@ -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