diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2011-06-01 13:23:25 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2011-06-01 13:23:25 +0000 |
commit | a8b8fe1f7ff86dc74c88a9e286795d2a88735f39 (patch) | |
tree | 678d6fb6085a56d9b07bb1b491dd32d5f7070eb3 | |
parent | a7dfb3155777e3e367d125e8b0c73d3e577678a2 (diff) | |
download | php-git-a8b8fe1f7ff86dc74c88a9e286795d2a88735f39.tar.gz |
Fixed bug #52104 (bindColumn creates Warning regardless of ATTR_ERRMODE settings).
-rwxr-xr-x | ext/pdo/pdo_stmt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 6caf8d6b88..4a86da967b 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -349,7 +349,10 @@ static int really_register_bound_param(struct pdo_bound_param_data *param, pdo_s /* if you prepare and then execute passing an array of params keyed by names, * then this will trigger, and we don't want that */ if (param->paramno == -1) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Did not found column name '%s' in the defined columns; it will not be bound", param->name); + char *tmp; + spprintf(&tmp, 0, "Did not find column name '%s' in the defined columns; it will not be bound", param->name); + pdo_raise_impl_error(stmt->dbh, stmt, "HY000", tmp TSRMLS_CC); + efree(tmp); } } |