1--TEST--
2MySQL PDO phpinfo() output
3--EXTENSIONS--
4pdo_mysql
5--SKIPIF--
6<?php
7require_once __DIR__ . '/inc/mysql_pdo_test.inc';
8MySQLPDOTest::skip();
9?>
10--FILE--
11<?php
12    require_once __DIR__ . '/inc/mysql_pdo_test.inc';
13    $db = MySQLPDOTest::factory();
14
15    ob_start();
16    phpinfo();
17    $tmp = ob_get_contents();
18    ob_end_clean();
19
20    /*	PDO Driver for MySQL, client library version => 6.0.3-alpha	*/
21    $reg = 'Client API version.*' . preg_quote($db->getAttribute(PDO::ATTR_CLIENT_VERSION), '/');
22
23    if (!preg_match("/$reg/", $tmp)) {
24        printf("[001] Cannot find MySQL PDO driver line in phpinfo() output\n");
25    }
26
27    print "done!";
28?>
29--EXPECT--
30done!
31