diff options
author | Johannes Schlüter <johannes@php.net> | 2012-06-22 12:48:39 +0200 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2012-06-22 12:48:39 +0200 |
commit | 055ecbc62878e86287d742c7246c21606cee8183 (patch) | |
tree | bd3ccc2a6e7b9de3eb256ca5e892913966417555 /ext/pdo_sqlite | |
parent | d93892de7a56ef6312d923d63757c792e3acf522 (diff) | |
download | php-git-055ecbc62878e86287d742c7246c21606cee8183.tar.gz |
Improve check for :memory: pseudo-filename in SQlite
Diffstat (limited to 'ext/pdo_sqlite')
-rw-r--r-- | ext/pdo_sqlite/sqlite_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_sqlite/sqlite_driver.c b/ext/pdo_sqlite/sqlite_driver.c index 115b3e2da2..6d469d90c5 100644 --- a/ext/pdo_sqlite/sqlite_driver.c +++ b/ext/pdo_sqlite/sqlite_driver.c @@ -760,7 +760,7 @@ static struct pdo_dbh_methods sqlite_methods = { static char *make_filename_safe(const char *filename TSRMLS_DC) { - if (*filename && strncmp(filename, ":memory:", sizeof(":memory:")-1)) { + if (*filename && memcmp(filename, ":memory:", sizeof(":memory:"))) { char *fullpath = expand_filepath(filename, NULL TSRMLS_CC); if (!fullpath) { |