summaryrefslogtreecommitdiff
path: root/ext/sqlite/sqlite.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-09-13 10:31:06 +0000
committerMarcus Boerger <helly@php.net>2003-09-13 10:31:06 +0000
commit2a68d3c19ed8c11695105261e6363320d230fb16 (patch)
treeaacc8ce615bf4f5a8513ab1917429a59d8e42a51 /ext/sqlite/sqlite.c
parent5606fb215590144881a49530109a09aead9483af (diff)
downloadphp-git-2a68d3c19ed8c11695105261e6363320d230fb16.tar.gz
Make use of dedicated macro
Diffstat (limited to 'ext/sqlite/sqlite.c')
-rw-r--r--ext/sqlite/sqlite.c8
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();
}
/* }}} */