1--TEST--
2MySQL PDO phpinfo() output
3--SKIPIF--
4<?php
5require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
6require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
7MySQLPDOTest::skip();
8$db = MySQLPDOTest::factory();
9?>
10--FILE--
11<?php
12    require_once(__DIR__ . DIRECTORY_SEPARATOR . '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