diff options
Diffstat (limited to 'ext/pdo/php_pdo_driver.h')
-rw-r--r-- | ext/pdo/php_pdo_driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo/php_pdo_driver.h b/ext/pdo/php_pdo_driver.h index d17b168c2d..d057857fa6 100644 --- a/ext/pdo/php_pdo_driver.h +++ b/ext/pdo/php_pdo_driver.h @@ -215,7 +215,7 @@ static inline zend_string *pdo_attr_strval(zval *options, enum pdo_attribute_typ zval *v; if (options && (v = zend_hash_index_find(Z_ARRVAL_P(options), option_name))) { - return zval_get_string(v); + return zval_try_get_string(v); } return defval ? zend_string_copy(defval) : NULL; } |