Browse Source

MFH

experimental/5.3-FPM
Antony Dovgal 18 years ago
parent
commit
b9653b8358
  1. 6
      ext/pdo/pdo_stmt.c

6
ext/pdo/pdo_stmt.c

@ -2203,10 +2203,12 @@ static PHP_METHOD(PDOStatement, debugDumpParams)
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);
}

Loading…
Cancel
Save