summaryrefslogtreecommitdiff
path: root/ext/pdo/pdo_dbh.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pdo/pdo_dbh.c')
-rw-r--r--ext/pdo/pdo_dbh.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c
index 47cba0edb9..f3df485404 100644
--- a/ext/pdo/pdo_dbh.c
+++ b/ext/pdo/pdo_dbh.c
@@ -210,13 +210,11 @@ static PHP_METHOD(PDO, dbh_constructor)
int call_factory = 1;
zend_error_handling zeh;
- zend_replace_error_handling(EH_THROW, pdo_exception_ce, &zeh);
- if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "s|s!s!a!", &data_source, &data_source_len,
+ if (FAILURE == zend_parse_parameters_throw(ZEND_NUM_ARGS(),
+ "s|s!s!a!", &data_source, &data_source_len,
&username, &usernamelen, &password, &passwordlen, &options)) {
- zend_restore_error_handling(&zeh);
return;
}
- zend_restore_error_handling(&zeh);
/* parse the data source name */
colon = strchr(data_source, ':');