mirror of
https://github.com/php/php-src.git
synced 2024-12-11 10:54:47 +08:00
Fix test for Windows
Windows filenames may very well contain a colon, so we adjust the test accordingly.
This commit is contained in:
parent
32a2644305
commit
ba404f21e4
@ -89,7 +89,7 @@ if (!$IS_MYSQLND)
|
|||||||
// F - file name
|
// F - file name
|
||||||
$trace = try_control_string($link, 't:O,' . $trace_file . ':F', $trace_file, 50);
|
$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...
|
// 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));
|
printf("[055] File names seem to be missing, first characters from trace are '%s'\n", substr($trace, 0, 80));
|
||||||
|
|
||||||
// -n - print function nesting depth
|
// -n - print function nesting depth
|
||||||
|
Loading…
Reference in New Issue
Block a user