diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index c6e4b481a5b..830e0525424 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -91,7 +91,10 @@ static inline int rewrite_name_to_position(pdo_stmt_t *stmt, struct pdo_bound_pa /* this is not an error here */ return 1; } - + if (!param->name) { + return 1; + } + zend_hash_internal_pointer_reset(stmt->bound_param_map); while (SUCCESS == zend_hash_get_current_data(stmt->bound_param_map, (void**)&name)) { if (strcmp(name, param->name)) {