diff options
author | George Peter Banyard <girgias@php.net> | 2020-12-24 01:16:29 +0100 |
---|---|---|
committer | George Peter Banyard <girgias@php.net> | 2021-01-06 10:20:57 +0000 |
commit | 60a61afd3c40f029c6bb679754d13f71d63e3283 (patch) | |
tree | cff2f0c32ff76bebc7cf735588c9fdf2efc29041 /ext/pdo | |
parent | 53ba72ec03b05800de94c3e4f3f8c96aae70185d (diff) | |
download | php-git-60a61afd3c40f029c6bb679754d13f71d63e3283.tar.gz |
Boolify PDO's preparer handler
Diffstat (limited to 'ext/pdo')
-rw-r--r-- | ext/pdo/php_pdo_driver.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/pdo/php_pdo_driver.h b/ext/pdo/php_pdo_driver.h index 044761a134..a0e85b589e 100644 --- a/ext/pdo/php_pdo_driver.h +++ b/ext/pdo/php_pdo_driver.h @@ -228,8 +228,9 @@ typedef struct { /* close or otherwise disconnect the database */ typedef void (*pdo_dbh_close_func)(pdo_dbh_t *dbh); -/* prepare a statement and stash driver specific portion into stmt */ -typedef int (*pdo_dbh_prepare_func)(pdo_dbh_t *dbh, zend_string *sql, pdo_stmt_t *stmt, zval *driver_options); +/* prepare a statement and stash driver specific portion into stmt + * return true on success, false otherwise */ +typedef bool (*pdo_dbh_prepare_func)(pdo_dbh_t *dbh, zend_string *sql, pdo_stmt_t *stmt, zval *driver_options); /* execute a statement (that does not return a result set) */ typedef zend_long (*pdo_dbh_do_func)(pdo_dbh_t *dbh, const char *sql, size_t sql_len); |