Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c143c2f

Browse files
committed
merged branch cordoval/fixclicgi (PR symfony#144)
Commits ------- d868bf7 * fixed run of web/check.php and app/check.php for cgi and cli Discussion ---------- * fixed run of web/check.php and app/check.php for cgi and cli --------------------------------------------------------------------------- by fabpot at 2011/07/15 01:03:22 -0700 Please, remove all the changes you made that does not change anything feature-wise and then squash all the commits. Thanks. --------------------------------------------------------------------------- by cordoval at 2011/07/15 06:37:49 -0700 gah sorry, I should not have clicked on phpstorm reformat code :) I will work on it and get it back to you --------------------------------------------------------------------------- by cordoval at 2011/07/15 22:38:09 -0700 @fabpot: it took me a lot of trials but i did the job, thanks for teaching me how to PR rightly I hope one day to be as smart as you are :)
2 parents cfc7e6b + d868bf7 commit c143c2f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

app/check.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,13 @@
5454
$reflector->info();
5555
$output = ob_get_clean();
5656

57-
preg_match('/^ICU version => (.*)$/m', $output, $matches);
58-
$version = $matches[1];
57+
if (preg_match('/^ICU version => (.*)$/m', $output, $matches)) {
58+
$version = $matches[1];
59+
} elseif ( preg_match('/^<tr><td class="e">ICU version <\/td><td class="v">(.*)<\/td><\/tr>$/m', $output, $matches) ) {
60+
$version = $matches[1];
61+
} else {
62+
$version = '';
63+
}
5964
}
6065

6166
check(version_compare($matches[1], '4.0', '>='), 'Checking that the intl ICU version is at least 4+', 'Upgrade your intl extension with a newer ICU version (4+)', false);

0 commit comments

Comments
 (0)