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

ext/pdo/pdo_stmt.c

index 2b9ff4f26d8c51fae7e4ecb7ddba3b24f887991a..827cc6f27c13fe71c5c55723abfdf965dac3f1c1 100755 (executable)
@@ -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);