1--TEST-- 2GH-7972 (MariaDB version prefix not always stripped) 3--SKIPIF-- 4<?php 5require_once 'skipif.inc'; 6require_once 'skipifconnectfailure.inc'; 7?> 8--FILE-- 9<?php 10require_once "connect.inc"; 11 12mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); 13$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket); 14 15// It seems we can only test the happy path... 16if (str_starts_with($mysqli->server_info, '5.5.5-')) { 17 print("Expecting stripped prefix. Found: " . $mysqli->server_info . "\n"); 18} 19?> 20--EXPECT-- 21