Commit f4a9646a by Carsten Brandt

more on HHVM compatibility

parent 62e7c3e9
...@@ -103,7 +103,9 @@ Configuring Web Servers <a name="configuring-web-servers"></a> ...@@ -103,7 +103,9 @@ Configuring Web Servers <a name="configuring-web-servers"></a>
The application installed according to the above instructions should work out of box with either The application installed according to the above instructions should work out of box with either
an [Apache HTTP server](http://httpd.apache.org/) or an [Nginx HTTP server](http://nginx.org/), on an [Apache HTTP server](http://httpd.apache.org/) or an [Nginx HTTP server](http://nginx.org/), on
Windows, Mac OS X, or Linux. Windows, Mac OS X, or Linux running PHP 5.4 or higher. Yii 2.0 is also compatible the facebooks
[HHVM](http://hhvm.com/) however there are some edge cases where HHVM behaves different than native
PHP so you have to take some extra care when using HHVM.
On a production server, you may want to configure your Web server so that the application can be accessed On a production server, you may want to configure your Web server so that the application can be accessed
via the URL `http://www.example.com/index.php` instead of `http://www.example.com/basic/web/index.php`. Such configuration via the URL `http://www.example.com/index.php` instead of `http://www.example.com/basic/web/index.php`. Such configuration
......
...@@ -23,6 +23,9 @@ use yii\helpers\VarDumper; ...@@ -23,6 +23,9 @@ use yii\helpers\VarDumper;
* (for example, the authorization data for a personal blog system). * (for example, the authorization data for a personal blog system).
* Use [[DbManager]] for more complex authorization data. * Use [[DbManager]] for more complex authorization data.
* *
* Note that PhpManager is not compatible with facebooks [HHVM](http://hhvm.com/) because
* it relies on writing php files and including them afterwards which is not supported by HHVM.
*
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @author Alexander Kochetov <creocoder@gmail.com> * @author Alexander Kochetov <creocoder@gmail.com>
* @author Christophe Boulain <christophe.boulain@gmail.com> * @author Christophe Boulain <christophe.boulain@gmail.com>
......
...@@ -17,6 +17,11 @@ class POMessageControllerTest extends BaseMessageControllerTest ...@@ -17,6 +17,11 @@ class POMessageControllerTest extends BaseMessageControllerTest
public function setUp() public function setUp()
{ {
parent::setUp(); parent::setUp();
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('POMessageControllerTest can not run on HHVM because it relies on saving and re-including PHP files which is not supported by HHVM.');
}
$this->messagePath = Yii::getAlias('@yiiunit/runtime/test_messages'); $this->messagePath = Yii::getAlias('@yiiunit/runtime/test_messages');
FileHelper::createDirectory($this->messagePath, 0777); FileHelper::createDirectory($this->messagePath, 0777);
} }
......
...@@ -72,6 +72,11 @@ class PhpManagerTest extends ManagerTestCase ...@@ -72,6 +72,11 @@ class PhpManagerTest extends ManagerTestCase
static::$filemtime = null; static::$filemtime = null;
static::$time = null; static::$time = null;
parent::setUp(); parent::setUp();
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('PhpManager is not compatible with HHVM.');
}
$this->mockApplication(); $this->mockApplication();
$this->removeDataFiles(); $this->removeDataFiles();
$this->auth = $this->createManager(); $this->auth = $this->createManager();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment