diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2010-06-09 16:04:54 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2010-06-09 16:04:54 +0000 |
| commit | b643e123eec467df5d1acf1f75cdbffad48110ad (patch) | |
| tree | 5765a23189d677b74285572e33e4feadf4e883fe /ext/sqlite3/sqlite3.c | |
| parent | 400769fd2a4052552894e7c767d9622639b762e9 (diff) | |
| download | php-git-b643e123eec467df5d1acf1f75cdbffad48110ad.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c index 643e1a07bc..6cbb754f3c 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 |
