com php-src: Fix test cases which fail on Windows debug builds: ext/mysqli/tests/mysqli_debug_append.phpt ext/mysqli/te
sts/mysqli_store_result_buffered_c.phpt ext/mysqli/ tests/mysqli_store_result_copy.phpt

From: Date: Mon, 11 Nov 2019 11:14:38 +0000
Subject: com php-src: Fix test cases which fail on Windows debug builds: ext/mysqli/tests/mysqli_debug_append.phpt ext/mysqli/te
sts/mysqli_store_result_buffered_c.phpt ext/mysqli/ tests/mysqli_store_result_copy.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-109235@lists.php.net to get a copy of this message
Commit: 60081ca20d5701111de5f94ae64909b1cc265f1e Author: Christoph M. Becker <cmbecker69@gmx.de> Mon, 11 Nov 2019 12:14:05 +0100 Parents: ecd0c5b6ad68fb9255c07a96a25f0b7852e882ff Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=60081ca20d5701111de5f94ae64909b1cc265f1e Log: 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. Changed paths: M ext/mysqli/tests/mysqli_debug_append.phpt M ext/mysqli/tests/mysqli_store_result_buffered_c.phpt M ext/mysqli/tests/mysqli_store_result_copy.phpt Diff: diff --git a/ext/mysqli/tests/mysqli_debug_append.phpt b/ext/mysqli/tests/mysqli_debug_append.phpt index 68e600772b6..8c934eabacb 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-- <?php diff --git a/ext/mysqli/tests/mysqli_store_result_buffered_c.phpt b/ext/mysqli/tests/mysqli_store_result_buffered_c.phpt index 58d588ac493..cc776f01e2c 100644 --- a/ext/mysqli/tests/mysqli_store_result_buffered_c.phpt +++ b/ext/mysqli/tests/mysqli_store_result_buffered_c.phpt @@ -7,7 +7,7 @@ require_once('skipifemb.inc'); require_once('skipifconnectfailure.inc'); ?> --INI-- -mysqlnd.debug=d:t:O,/tmp/mysqlnd.trace +mysqlnd.debug=d:t:O,{TMP}/mysqlnd.trace --FILE-- <?php require_once("connect.inc"); diff --git a/ext/mysqli/tests/mysqli_store_result_copy.phpt b/ext/mysqli/tests/mysqli_store_result_copy.phpt index 3f82b8a8925..dbe5d2f9050 100644 --- a/ext/mysqli/tests/mysqli_store_result_copy.phpt +++ b/ext/mysqli/tests/mysqli_store_result_copy.phpt @@ -10,7 +10,7 @@ if (!$IS_MYSQLND) { } ?> --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

« previous php.cvs (#109235) next »