summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-03-23 16:19:25 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2020-03-23 16:22:45 +0100
commitba404f21e4012ca2c5ffbffdcd5c0f214845a6fd (patch)
tree4dba3c685bd1b3cc9c0ae8cd0b99c2f18a03d184
parent32a26443052a734f7c24434497a0c9a2210607eb (diff)
downloadphp-git-ba404f21e4012ca2c5ffbffdcd5c0f214845a6fd.tar.gz
Fix test for Windows
Windows filenames may very well contain a colon, so we adjust the test accordingly.
-rw-r--r--ext/mysqli/tests/mysqli_debug_mysqlnd_control_string.phpt2
1 files changed, 1 insertions, 1 deletions
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