diff options
Diffstat (limited to 'ext/pdo_firebird/firebird_driver.c')
-rw-r--r-- | ext/pdo_firebird/firebird_driver.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/pdo_firebird/firebird_driver.c b/ext/pdo_firebird/firebird_driver.c index a4ff7e5c5a..53ffbdc7c6 100644 --- a/ext/pdo_firebird/firebird_driver.c +++ b/ext/pdo_firebird/firebird_driver.c @@ -465,8 +465,8 @@ static int firebird_handle_set_attribute(pdo_dbh_t *dbh, zend_long attr, zval *v case PDO_FB_ATTR_DATE_FORMAT: { - zend_string *str = zval_get_string(val); - if (EG(exception)) { + zend_string *str = zval_try_get_string(val); + if (UNEXPECTED(!str)) { return 0; } if (H->date_format) { @@ -479,8 +479,8 @@ static int firebird_handle_set_attribute(pdo_dbh_t *dbh, zend_long attr, zval *v case PDO_FB_ATTR_TIME_FORMAT: { - zend_string *str = zval_get_string(val); - if (EG(exception)) { + zend_string *str = zval_try_get_string(val); + if (UNEXPECTED(!str)) { return 0; } if (H->time_format) { @@ -493,8 +493,8 @@ static int firebird_handle_set_attribute(pdo_dbh_t *dbh, zend_long attr, zval *v case PDO_FB_ATTR_TIMESTAMP_FORMAT: { - zend_string *str = zval_get_string(val); - if (EG(exception)) { + zend_string *str = zval_try_get_string(val); + if (UNEXPECTED(!str)) { return 0; } if (H->timestamp_format) { |