diff options
author | Marcus Boerger <helly@php.net> | 2003-09-13 10:31:06 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-09-13 10:31:06 +0000 |
commit | 2a68d3c19ed8c11695105261e6363320d230fb16 (patch) | |
tree | aacc8ce615bf4f5a8513ab1917429a59d8e42a51 /ext/sqlite/sqlite.c | |
parent | 5606fb215590144881a49530109a09aead9483af (diff) | |
download | php-git-2a68d3c19ed8c11695105261e6363320d230fb16.tar.gz |
Make use of dedicated macro
Diffstat (limited to 'ext/sqlite/sqlite.c')
-rw-r--r-- | ext/sqlite/sqlite.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c index beddf346db..06b72eb2e1 100644 --- a/ext/sqlite/sqlite.c +++ b/ext/sqlite/sqlite.c @@ -1112,7 +1112,7 @@ PHP_FUNCTION(sqlite_open) php_set_error_handling(object ? EH_THROW : EH_NORMAL, sqlite_ce_exception TSRMLS_CC); if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lz/", &filename, &filename_len, &mode, &errmsg)) { - php_set_error_handling(EH_NORMAL, NULL TSRMLS_CC); + php_std_error_handling(); return; } if (errmsg) { @@ -1124,7 +1124,7 @@ PHP_FUNCTION(sqlite_open) fullpath = expand_filepath(filename, NULL TSRMLS_CC); if (PG(safe_mode) && (!php_checkuid(fullpath, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { - php_set_error_handling(EH_NORMAL, NULL TSRMLS_CC); + php_std_error_handling(); efree(fullpath); if (object) { RETURN_NULL(); @@ -1134,7 +1134,7 @@ PHP_FUNCTION(sqlite_open) } if (php_check_open_basedir(fullpath TSRMLS_CC)) { - php_set_error_handling(EH_NORMAL, NULL TSRMLS_CC); + php_std_error_handling(); efree(fullpath); if (object) { RETURN_NULL(); @@ -1149,7 +1149,7 @@ PHP_FUNCTION(sqlite_open) if (fullpath) { efree(fullpath); } - php_set_error_handling(EH_NORMAL, NULL TSRMLS_CC); + php_std_error_handling(); } /* }}} */ |