Skip to content

Commit ba404f2

Browse files
committed
Fix test for Windows
Windows filenames may very well contain a colon, so we adjust the test accordingly.
1 parent 32a2644 commit ba404f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mysqli/tests/mysqli_debug_mysqlnd_control_string.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ if (!$IS_MYSQLND)
8989
// F - file name
9090
$trace = try_control_string($link, 't:O,' . $trace_file . ':F', $trace_file, 50);
9191
// hopefully we'll never see a file name that's not covered by this regular expression...
92-
if (!preg_match("@^\s*[/\w\\\\d\.\-]+\.[ch]@ismU", $trace))
92+
if (!preg_match("@^\s*[/\w\\\\d\.:\-]+\.[ch]@ismU", $trace))
9393
printf("[055] File names seem to be missing, first characters from trace are '%s'\n", substr($trace, 0, 80));
9494

9595
// -n - print function nesting depth

0 commit comments

Comments
 (0)