1--TEST--
2MySQL PDO phpinfo() output
3--SKIPIF--
4<?php
5require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'skipif.inc');
6require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
7MySQLPDOTest::skip();
8$db = MySQLPDOTest::factory();
9?>
10--FILE--
11<?php
12	require_once(dirname(__FILE__) . 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	$expected = sprintf('Client API version => %s',
22		$db->getAttribute(PDO::ATTR_CLIENT_VERSION));
23
24	if (false === stristr($tmp, $expected)) {
25		printf("[001] Cannot find MySQL PDO driver line in phpinfo() output\n");
26	}
27
28	print "done!";
29?>
30--EXPECT--
31done!
32