From: Christoph M. Becker Date: Mon, 11 Nov 2019 11:14:05 +0000 (+0100) Subject: Fix test cases which fail on Windows debug builds X-Git-Tag: php-7.3.15RC1~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6dea348318d78028a45c2f072a9170a60af4300;p=php Fix test cases which fail on Windows debug builds We use the portable {TMP} instead of the hard-coded /tmp, and skip mysqli_debug_append.phpt on Windows, because unlinking the trace file while the connection is still open won't work there. (cherry picked from commit 60081ca20d5701111de5f94ae64909b1cc265f1e) --- diff --git a/ext/mysqli/tests/mysqli_debug_append.phpt b/ext/mysqli/tests/mysqli_debug_append.phpt index 68e600772b..8c934eabac 100644 --- a/ext/mysqli/tests/mysqli_debug_append.phpt +++ b/ext/mysqli/tests/mysqli_debug_append.phpt @@ -17,6 +17,8 @@ if (defined('MYSQLI_DEBUG_TRACE_ENABLED') && !MYSQLI_DEBUG_TRACE_ENABLED) if (!$IS_MYSQLND) die("SKIP Libmysql feature not sufficiently spec'd in MySQL C API documentation"); + +if (substr(PHP_OS, 0, 3) == 'WIN') die("skip this test is not for Windows platforms"); ?> --FILE-- --INI-- -mysqlnd.debug=d:t:O,/tmp/mysqlnd.trace +mysqlnd.debug=d:t:O,{TMP}/mysqlnd.trace --FILE-- --INI-- -mysqlnd.debug=d:t:O,/tmp/mysqlnd.trace +mysqlnd.debug=d:t:O,{TMP}/mysqlnd.trace mysqlnd.net_read_buffer_size=1 mysqlnd.mempool_default_size=1 mysqlnd.fetch_data_copy=0