[php-src] PR #13625: Fix mysqli tests for MariaDB/MySQL versions exceeding 25 characters

From: Date: Fri, 08 Mar 2024 06:41:49 +0000
Subject: [php-src] PR #13625: Fix mysqli tests for MariaDB/MySQL versions exceeding 25 characters
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-25297@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/13625 Author: grooverdan Due to an error, MariaDB Docker Official Images containers and MariaDB released Debian/Ubuntu packages ended up with a long version number: ``` select length(version()),version()' +-------------------+-----------------------------------------+ | length(version()) | version() | +-------------------+-----------------------------------------+ | 39 | 10.5.23-MariaDB-1:10.5.23+maria~ubu2004 | ``` https://jira.mariadb.org/browse/MDEV-33631 Even fixing this upstream down to 10.11.23-MariaDB-1~ubu2004 is 27 characters resulting in a truncate to NULL in the changed tests resulting in a test failure. Example failure changing mysql to mariadb container in [test run](https://github.com/grooverdan/php-src/actions/runs/8183927946/job/22377535403) ``` ========DIFF======== 001+ [012] Cannot execute CALL, [1406] Data too long for column 'ver_param' at row 1 002+ [013] Cannot execute CALL, [1406] Data too long for column 'ver_param' at row 1 003+ [018] Results seem wrong, got , [0] 004+ [021] Cannot execute CALL, [1406] Data too long for column 'ver_param' at row 1 005+ [026] Results seem wrong, got , [0] done! ========DONE======== FAIL mysqli_stmt_execute() - Stored Procedures [ext/mysqli/tests/mysqli_stmt_execute_stored_proc.phpt] ========DIFF======== -- string(1) "b" } } 084+ [024] Expecting array [0] 085+ array(1) { 086+ ["p_version"]=> 087+ NULL 088+ } done! ========DONE======== FAIL mysqli_store_result() [ext/mysqli/tests/mysqli_store_result_copy.phpt] ===================================================================== ```

« previous php.git-pulls (#25297) next »