PHP  
 PHP_7_3
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Skip Report for ext/pdo_mysql/tests/pdo_mysql_connect_attr.phpt

Script

<?php
require_once(__DIR__ DIRECTORY_SEPARATOR 'skipif.inc');
require_once(
__DIR__ DIRECTORY_SEPARATOR 'mysql_pdo_test.inc');
MySQLPDOTest::skip();
if (!
MySQLPDOTest::isPDOMySQLnd()) die('skip only for mysqlnd');

$pdo MySQLPDOTest::factory();

$stmt $pdo->query("select count(*) from information_schema.tables where table_schema='performance_schema' and table_name='session_connect_attrs'");
if (!
$stmt || !$stmt->fetchColumn()) {
    die(
"skip mysql does not support session_connect_attrs table yet");
}

$stmt $pdo->query("show variables like 'performance_schema'");
if (!
$stmt || $stmt->fetchColumn(1) !== 'ON') {
    die(
"skip performance_schema is OFF");
}

?>

Reason

mysql does not support session_connect_attrs table yet

 

Generated at Fri, 26 Nov 2021 01:14:57 +0000 (7 days ago)

Copyright © 2005-2021 The PHP Group
All rights reserved.