]> granicus.if.org Git - php/commitdiff
Fixed bug #44200 (A crash in PDO when no bound targets exists and yet
authorIlia Alshanetsky <iliaa@php.net>
Sun, 24 Feb 2008 16:08:32 +0000 (16:08 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 24 Feb 2008 16:08:32 +0000 (16:08 +0000)
bound parameters are present)

ext/pdo/pdo_stmt.c

index 45b1b6c0e357c095b700ad839946a08611120524..7b64cc4877bb9a7ba37984a4a724e5007326d44e 100755 (executable)
@@ -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);