From: Ilia Alshanetsky Date: Sun, 24 Feb 2008 16:08:32 +0000 (+0000) Subject: Fixed bug #44200 (A crash in PDO when no bound targets exists and yet X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~750 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0388c554954bafc9c637bc6d42bf560e4603b4e;p=php 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 45b1b6c0e3..7b64cc4877 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);