mirror of
https://github.com/php/php-src.git
synced 2026-04-23 07:58:20 +02:00
Fixed bug #44200 (A crash in PDO when no bound targets exists and yet
bound parameters are present)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user