1--TEST--
2PDO MySQL PECL Bug #5200 (Describe table gives unexpected result mysql and type enum)
3--EXTENSIONS--
4pdo
5pdo_mysql
6--SKIPIF--
7<?php
8require __DIR__ . '/config.inc';
9require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc';
10PDOTest::skip();
11?>
12--FILE--
13<?php
14require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc';
15$db = PDOTest::test_factory(__DIR__. '/common.phpt');
16
17$db->exec("CREATE TABLE test (bar INT NOT NULL, phase enum('please_select', 'I', 'II', 'IIa', 'IIb', 'III', 'IV'))");
18
19foreach ($db->query('DESCRIBE test phase')->fetchAll(PDO::FETCH_ASSOC) as $row) {
20    print_r($row);
21}
22?>
23--CLEAN--
24<?php
25require __DIR__ . '/mysql_pdo_test.inc';
26$db = MySQLPDOTest::factory();
27$db->exec('DROP TABLE IF EXISTS test');
28?>
29--EXPECT--
30Array
31(
32    [field] => phase
33    [type] => enum('please_select','I','II','IIa','IIb','III','IV')
34    [null] => YES
35    [key] =>
36    [default] =>
37    [extra] =>
38)
39