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/mysqli/tests/mysqli_connect_attr.phpt

Script

<?php
require_once('skipif.inc');
require_once(
'skipifconnectfailure.inc');

if (!
$IS_MYSQLND)
    die(
"skip: test applies only to mysqlnd");

if (!
$link my_mysqli_connect($host$user$passwd$db$port$socket))
    die(
"skip Cannot connect to the server");

/* skip test if the server version does not have session_connect_attrs table yet*/
if (!$res mysqli_query($link"select count(*) as count from information_schema.tables where table_schema='performance_schema' and table_name='session_connect_attrs';"))
    die(
"skip select from information_schema.tables for session_connect_attrs  query failed");

$tmp mysqli_fetch_assoc($res);
mysqli_free_result($res);
if(
$tmp['count'] == "0") {
    
mysqli_close($link);
    die(
"skip mysql does not support session_connect_attrs table yet");
}

/* skip test if performance_schema is OFF*/
if (!$res mysqli_query($link"show variables like 'performance_schema';"))
    die(
"skip show variables like 'performance_schema' failed");

$tmp mysqli_fetch_assoc($res);
mysqli_free_result($res);
if(
$tmp['Value'] == "OFF") {
    
mysqli_close($link);
    die(
"skip performance_schema is OFF");
}

mysqli_close($link);
?>

Reason

mysql does not support session_connect_attrs table yet

 

Generated at Fri, 03 Dec 2021 18:13:45 +0000 (2 days ago)

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