From: Ilia Alshanetsky Date: Sun, 24 Feb 2008 16:09:13 +0000 (+0000) Subject: MFB: Fixed bug #44200 (A crash in PDO when no bound targets exists and yet X-Git-Tag: RELEASE_2_0_0a1~347 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0548595b6f1efd32618b74d7b4164c4e423aadf;p=php MFB: Fixed bug #44200 (A crash in PDO when no bound targets exists and yet bound parameters are present) --- diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 2b9ff4f26d..827cc6f27c 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -142,6 +142,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);