summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2008-02-24 16:09:05 +0000
committerIlia Alshanetsky <iliaa@php.net>2008-02-24 16:09:05 +0000
commitc2805b88e57c27a5810d106942e8ebbc827478b0 (patch)
tree47e51404e47725e0b296c7bbc94ee93712c9c84e /ext
parent8241ee2226a6083442f554c430537cc0d89b863c (diff)
downloadphp-git-c2805b88e57c27a5810d106942e8ebbc827478b0.tar.gz
MFB: Fixed bug #44200 (A crash in PDO when no bound targets exists and yet
bound parameters are present)
Diffstat (limited to 'ext')
-rwxr-xr-xext/pdo/pdo_stmt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c
index eac65790cf..0022631669 100755
--- a/ext/pdo/pdo_stmt.c
+++ b/ext/pdo/pdo_stmt.c
@@ -166,6 +166,10 @@ static int dispatch_param_event(pdo_stmt_t *stmt, enum pdo_param_event event_typ
ht = stmt->bound_params;
+ if (ht && !stmt->bound_param_map) {
+ return 0;
+ }
+
iterate:
if (ht) {
zend_hash_internal_pointer_reset(ht);