0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 18:41:52 +00:00

extensions_error.phpt runs fine on Windows

This commit is contained in:
Jan-E 2018-07-07 05:18:31 +02:00
parent 4166dd3b83
commit 61f98e2a4a

View File

@ -9,12 +9,6 @@ phpinfo(INFO_MODULES);
$minfo = ob_get_contents(); $minfo = ob_get_contents();
ob_end_clean(); 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)) { if(preg_match("/V8 Engine Linked Version => (.*)/", $minfo, $matches)) {
$version = explode('.', $matches[1]); $version = explode('.', $matches[1]);
if($version[0] < 5 || ($version[0] == 5 && $version[1] < 7)) { if($version[0] < 5 || ($version[0] == 5 && $version[1] < 7)) {