Skip to content

Commit 76fdec6

Browse files
committed
PHPC-2132: Fix pattern for matching phpinfo() values
1 parent 044666f commit 76fdec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/utils/tools.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function get_module_info($row)
8383
phpinfo(INFO_MODULES);
8484
$info = ob_get_clean();
8585

86-
$pattern = sprintf('/^%s([\w ]+)$/m', preg_quote($row . ' => '));
86+
$pattern = sprintf('/^%s(.*)$/m', preg_quote($row . ' => '));
8787

8888
if (preg_match($pattern, $info, $matches) !== 1) {
8989
return null;

0 commit comments

Comments
 (0)