diff options
Diffstat (limited to 'ext/sqlite/sqlite.c')
-rw-r--r-- | ext/sqlite/sqlite.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c index c9673e868b..b5035efd0b 100644 --- a/ext/sqlite/sqlite.c +++ b/ext/sqlite/sqlite.c @@ -1641,8 +1641,10 @@ PHP_FUNCTION(sqlite_open) } if (strlen(filename) != filename_len) { + zend_restore_error_handling(&error_handling TSRMLS_CC); RETURN_FALSE; } + if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) { /* resolve the fully-qualified path name to use as the hash key */ if (!(fullpath = expand_filepath(filename, NULL TSRMLS_CC))) { @@ -1697,6 +1699,7 @@ PHP_FUNCTION(sqlite_factory) } if (strlen(filename) != filename_len) { + zend_restore_error_handling(&error_handling TSRMLS_CC); RETURN_FALSE; } |