Index: ext/pdo/pdo_stmt.c =================================================================== RCS file: /repository/php-src/ext/pdo/pdo_stmt.c,v retrieving revision 1.118.2.38.2.24.2.37 diff -u -p -r1.118.2.38.2.24.2.37 pdo_stmt.c --- ext/pdo/pdo_stmt.c 17 Nov 2008 11:27:57 -0000 1.118.2.38.2.24.2.37 +++ ext/pdo/pdo_stmt.c 3 Dec 2008 10:02:30 -0000 @@ -2203,10 +2203,12 @@ static PHP_METHOD(PDOStatement, debugDum char *str; uint len; ulong num; + int res; - if (zend_hash_get_current_key_ex(stmt->bound_params, &str, &len, &num, 0, &pos) == HASH_KEY_IS_LONG) { + res = zend_hash_get_current_key_ex(stmt->bound_params, &str, &len, &num, 0, &pos); + if (res == HASH_KEY_IS_LONG) { php_stream_printf(out TSRMLS_CC, "Key: Position #%ld:\n", num); - } else { + } else if (res == HASH_KEY_IS_STRING) { php_stream_printf(out TSRMLS_CC, "Key: Name: [%d] %.*s\n", len, len, str); }