]> granicus.if.org Git - php/commit
Make various failure conditions in PDO unconditional errors
authorGeorge Peter Banyard <girgias@php.net>
Thu, 24 Sep 2020 23:41:21 +0000 (00:41 +0100)
committerGeorge Peter Banyard <girgias@php.net>
Mon, 28 Sep 2020 17:51:36 +0000 (18:51 +0100)
commita5cf82802d097f7c327ee7e4eafe2224a5c9f78b
treea1072b3c40f6bc9cfb66324850701a0c4944bb36
parent24e2ba26b457da2c93aae75c7193c519b5a0aed9
Make various failure conditions in PDO unconditional errors

This includes TypeErrors, ValueErrors, Error for uninitialized objects
and invalid user classes/callable instanciation

Closes GH-6212
18 files changed:
ext/pdo/pdo_dbh.c
ext/pdo/pdo_stmt.c
ext/pdo/pdo_stmt.stub.php
ext/pdo/pdo_stmt_arginfo.h
ext/pdo/php_pdo.h
ext/pdo/php_pdo_int.h
ext/pdo/tests/bug_44159.phpt
ext/pdo/tests/bug_44173.phpt
ext/pdo/tests/pdo_038.phpt
ext/pdo/tests/pdo_quote_empty_string.phpt [new file with mode: 0644]
ext/pdo_mysql/tests/pdo_mysql_attr_errmode.phpt
ext/pdo_mysql/tests/pdo_mysql_attr_oracle_nulls.phpt
ext/pdo_mysql/tests/pdo_mysql_attr_statement_class.phpt
ext/pdo_mysql/tests/pdo_mysql_prepare_emulated.phpt
ext/pdo_mysql/tests/pdo_mysql_prepare_native.phpt
ext/pdo_mysql/tests/pdo_mysql_stmt_getcolumnmeta.phpt
ext/pdo_sqlite/tests/bug_44159_sqlite_version.phpt [new file with mode: 0644]
ext/pdo_sqlite/tests/pdo_fetch_func_001.phpt