在我正在处理的项目中,我们遇到了an issue 与不同版本的Java的类不兼容有关。
建议的修复是应用cross-compilation:我们不仅应该为编译器指定<?php
public function testToggleFileFileDoesNotExist()
{
$testProcess = \Mockery::mock('\Symfony\Component\Process\Process');
$testProcess->shouldReceive('isSuccessful')->andReturn(false); // (a)
$testProcess->shouldReceive('run');
$touchProcess = \Mockery::mock('\Symfony\Component\Process\Process');
$touchProcess->shouldReceive('isSuccessful')->andReturn(false); // (b)
$touchProcess->shouldReceive('run');
$builder = \Mockery::mock('\Symfony\Component\Process\ProcessBuilder');
$builder->shouldReceive('setPrefix("test")->getProcess')->andReturn($testProcess); // (c) Doesn't work!
$builder->shouldReceive('setPrefix("touch")->getProcess')->andReturn($touchProcess); // (c) Doesn't work!
$toggler = new Toggler();
$this->assertTrue($toggler->toggleFile($builder)); // see (b)
}
和<?php
session_start();
//Permission groups allowed on page
$access = array(1, 2, 3, 4);
if (!isset($_SESSION['user']))
header("Location: login.php");
}
if(in_array($_SESSION['AuthLevel'], $access) == false){
//Redirect to universally accessed page
header("Location: index.php");
}
?>
参数,还应该明确定义正确的bootstrap类路径和扩展目录
我的问题:这比仅使用旧版JDK中的编译器有什么好处?
答案 0 :(得分:1)
我认为主要有两个原因/好处
除此之外,我认为没有理由不使用旧的编译器。