We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91b1bec commit 7dc4e24Copy full SHA for 7dc4e24
tests/Symfony/Tests/Component/Locale/TestCase.php
@@ -75,8 +75,14 @@ protected function getIntlExtensionIcuVersion()
75
throw new \RuntimeException('The intl extension is not available');
76
}
77
78
+ if (defined(INTL_ICU_VERSION)) {
79
+ return INTL_ICU_VERSION;
80
+ }
81
+
82
+ $reflector = new \ReflectionExtension('intl');
83
84
ob_start();
- phpinfo(INFO_MODULES);
85
+ $reflector->info();
86
$output = ob_get_clean();
87
88
preg_match('/^ICU version => (.*)$/m', $output, $matches);
0 commit comments