0
0
mirror of https://github.com/phpv8/v8js.git synced 2025-03-11 22:18:44 +00:00

Merge pull request #197 from phpv8/skip-win

skip extensions_error.phpt on Windows
This commit is contained in:
Stefan Siegl 2016-01-06 16:53:55 +01:00
commit 44c3ce7ffd

View File

@ -9,6 +9,12 @@ phpinfo(INFO_MODULES);
$minfo = ob_get_contents();
ob_end_clean();
if(strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {
// On Windows the "Fatal error" happens to appear before the error
// message output by V8 itself.
echo "skip Windows";
}
if(preg_match("/V8 Engine Linked Version => (.*)/", $minfo, $matches)) {
$version = explode('.', $matches[1]);
if($version[0] < 3 || ($version[0] == 3 && $version[1] < 30)) {