diff options
author | George Peter Banyard <girgias@php.net> | 2020-12-23 01:49:56 +0100 |
---|---|---|
committer | George Peter Banyard <girgias@php.net> | 2021-01-06 10:20:57 +0000 |
commit | 6728c1bd72f2ddb46528a0c61ac833b1036a12a2 (patch) | |
tree | c9be4bf024d5911bd6ed25819fac6c996caae5d4 /ext/pdo/php_pdo_driver.h | |
parent | ca5fcb83bfb54e930736f6fdf31ffbae6c479f78 (diff) | |
download | php-git-6728c1bd72f2ddb46528a0c61ac833b1036a12a2.tar.gz |
Formalize pdo_dbh_check_liveness_func() return type to zend_result
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 8345d7f81e..a8478cb3a6 100644 --- a/ext/pdo/php_pdo_driver.h +++ b/ext/pdo/php_pdo_driver.h @@ -265,7 +265,7 @@ typedef int (*pdo_dbh_get_attr_func)(pdo_dbh_t *dbh, zend_long attr, zval *val); /* checking/pinging persistent connections; return SUCCESS if the connection * is still alive and ready to be used, FAILURE otherwise. * You may set this handler to NULL, which is equivalent to returning SUCCESS. */ -typedef int (*pdo_dbh_check_liveness_func)(pdo_dbh_t *dbh); +typedef zend_result (*pdo_dbh_check_liveness_func)(pdo_dbh_t *dbh); /* called at request end for each persistent dbh; this gives the driver * the opportunity to safely release resources that only have per-request |