Finally manage to resolve (most!) of this by using the following configuration file:
Eval {
Jit = true
JitWarmupRequests = 1
}
Log {
Level = Info
Header = true
UseLogFile = true
File = /var/log/hhvm_error.log
Access {
* {
File = /var/log/hhvm_access.log
}
}
}
Server {
IP = 127.0.0.1
Port = 9000
ThreadCount = 77
# Change to match your local root
SourceRoot = /opt/lampp/htdocs/
MaxPostSize = 65 # in MB
}
VirtualHost {
* {
Pattern = .*
RewriteRules {
* {
pattern = .?
# change to app.php for production use
to = app_dev.php
# append the original query string
qsa = true
}
}
}
}
Stats {
Web = true
Memory = true
SQL = true
}
Http {
DefaultTimeout = 5
SlowQueryThreshold = 5000
}
This is based on a config for HHVM 2.* which I found here: http://labs.qandidate.com/blog/2013/10/21/running-symfony-standard-on-hhvm/
In addition, if you are using Doctrine, you will have to modify your dependencies in order to get it working properly with HHVM due to a previous bug: Symfony2 and HHVM Declaration of Doctrine\DBAL\Driver\PDOConnection::prepare() must be compatible