summaryrefslogtreecommitdiff
path: root/ext/pdo_sqlite/sqlite_driver.c
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2012-06-22 12:50:30 +0200
committerJohannes Schlüter <johannes@php.net>2012-06-22 12:50:30 +0200
commitaf516750ff32f69c1df10155fa8ec0c9cc5b70ff (patch)
tree5e663b048773da88b2b3ba24b507a06e61e43269 /ext/pdo_sqlite/sqlite_driver.c
parent041dd77135c89af821b483a3c1f485bfaf6cfb50 (diff)
parent055ecbc62878e86287d742c7246c21606cee8183 (diff)
downloadphp-git-af516750ff32f69c1df10155fa8ec0c9cc5b70ff.tar.gz
Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3: Improve check for :memory: pseudo-filename in SQlite Conflicts: ext/sqlite3/sqlite3.c
Diffstat (limited to 'ext/pdo_sqlite/sqlite_driver.c')
-rw-r--r--ext/pdo_sqlite/sqlite_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_sqlite/sqlite_driver.c b/ext/pdo_sqlite/sqlite_driver.c
index f81cf9b1ed..480c728d15 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) {