mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
22 lines
567 B
PHP
22 lines
567 B
PHP
--TEST--
|
|
PDO::ATTR_PREFETCH
|
|
--EXTENSIONS--
|
|
pdo_mysql
|
|
--SKIPIF--
|
|
<?php
|
|
require_once __DIR__ . '/inc/mysql_pdo_test.inc';
|
|
MySQLPDOTest::skip();
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
require_once __DIR__ . '/inc/mysql_pdo_test.inc';
|
|
$db = MySQLPDOTest::factory();
|
|
var_dump($db->getAttribute(PDO::ATTR_PREFETCH));
|
|
var_dump($db->setAttribute(PDO::ATTR_PREFETCH, true));
|
|
print "done!";
|
|
?>
|
|
--EXPECTF--
|
|
Warning: PDO::getAttribute(): SQLSTATE[IM001]: Driver does not support this function: driver does not support that attribute in %s on line %d
|
|
bool(false)
|
|
bool(false)
|
|
done!
|