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