From: Christoph M. Becker <cmbecker69@gmx.de>
Date: Mon, 23 Mar 2020 15:19:25 +0000 (+0100)
Subject: Fix test for Windows
X-Git-Tag: php-7.3.17RC1~10
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba404f21e4012ca2c5ffbffdcd5c0f214845a6fd;p=php

Fix test for Windows

Windows filenames may very well contain a colon, so we adjust the test
accordingly.
---

diff --git a/ext/mysqli/tests/mysqli_debug_mysqlnd_control_string.phpt b/ext/mysqli/tests/mysqli_debug_mysqlnd_control_string.phpt
index 9999d84395..3aa0f7cb89 100644
--- a/ext/mysqli/tests/mysqli_debug_mysqlnd_control_string.phpt
+++ b/ext/mysqli/tests/mysqli_debug_mysqlnd_control_string.phpt
@@ -89,7 +89,7 @@ if (!$IS_MYSQLND)
 	// F - file name
 	$trace = try_control_string($link, 't:O,' . $trace_file . ':F', $trace_file, 50);
 	// hopefully we'll never see a file name that's not covered by this regular expression...
-	if (!preg_match("@^\s*[/\w\\\\d\.\-]+\.[ch]@ismU", $trace))
+	if (!preg_match("@^\s*[/\w\\\\d\.:\-]+\.[ch]@ismU", $trace))
 		printf("[055] File names seem to be missing, first characters from trace are '%s'\n", substr($trace, 0, 80));
 
 	// -n - print function nesting depth