diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2008-02-24 16:09:05 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2008-02-24 16:09:05 +0000 |
| commit | c2805b88e57c27a5810d106942e8ebbc827478b0 (patch) | |
| tree | 47e51404e47725e0b296c7bbc94ee93712c9c84e /ext | |
| parent | 8241ee2226a6083442f554c430537cc0d89b863c (diff) | |
| download | php-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-x | ext/pdo/pdo_stmt.c | 4 |
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); |
