Skip to content

Commit 2af2980

Browse files
committed
Remove /e flag in preg_match_all
This flag hasn't been supported since PHP 7, but more importantly it doesn't even apply to preg_match_all in the first place.
1 parent 47d80e3 commit 2af2980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PEAR/Command/Common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function getHelp($command)
193193
$help = $this->commands[$command]['summary'];
194194
}
195195

196-
if (preg_match_all('/{config\s+([^\}]+)}/e', $help, $matches)) {
196+
if (preg_match_all('/{config\s+([^\}]+)}/', $help, $matches)) {
197197
foreach($matches[0] as $k => $v) {
198198
$help = preg_replace("/$v/", $config->get($matches[1][$k]), $help);
199199
}

0 commit comments

Comments
 (0)