mirror of
https://github.com/php/php-src.git
synced 2025-01-21 11:13:38 +08:00
parent
ffdd175918
commit
c6e852d7db
@ -636,7 +636,7 @@ static struct pdo_dbh_methods sqlite_methods = {
|
||||
|
||||
static char *make_filename_safe(const char *filename TSRMLS_DC)
|
||||
{
|
||||
if (strncmp(filename, ":memory:", sizeof(":memory:")-1)) {
|
||||
if (*filename && strncmp(filename, ":memory:", sizeof(":memory:")-1)) {
|
||||
char *fullpath = expand_filepath(filename, NULL TSRMLS_CC);
|
||||
|
||||
if (!fullpath) {
|
||||
|
@ -515,7 +515,7 @@ static struct pdo_dbh_methods sqlite2_methods = {
|
||||
|
||||
static char *make_filename_safe(const char *filename TSRMLS_DC)
|
||||
{
|
||||
if (strncmp(filename, ":memory:", sizeof(":memory:")-1)) {
|
||||
if (*filename && strncmp(filename, ":memory:", sizeof(":memory:")-1)) {
|
||||
char *fullpath = expand_filepath(filename, NULL TSRMLS_CC);
|
||||
|
||||
if (!fullpath) {
|
||||
|
Loading…
Reference in New Issue
Block a user