hhvm

Symfony2 and HHVM Declaration of Doctrine\DBAL\Driver\PDOConnection::prepare() must be compatible

心不动则不痛 提交于 2019-12-07 17:07:45
问题 i am trying to set up a symfony2 project on a HHVM machine, The HHVM is running on FastCGI as explained in the hhvm tutorial, thus running behind an apache2 server on Debian. I have created everything but when i try to run my application i am getting the following error: ContextErrorException: 16777217: Declaration of Doctrine\DBAL\Driver\PDOConnection::prepare() must be compatible with that of Doctrine\DBAL\Driver\Connection::prepare() in /LOCATION/shared/vendor/doctrine/dbal/lib/Doctrine

nginx - laravel - hhvm-Fastcgi get error 500

霸气de小男生 提交于 2019-12-07 05:17:41
问题 I install a LEMP server in ubuntu 12.04 LTS 64 whit HHVM Fastcgi Service and i install laravel via laravel.phar ( and test via composer too ) when in get my site in brwoser do not display any error but in chrome developer console get error 500 i can't see any error in error.log file ( laravel - hhvm , nginx ) the storage directory Permissions is 777 and my nginx.conf and vhosts file have basic configuration when i use PHP CLI or hhvm command it's worked good thanks for help me :) my location

Debugging in HHVM?

守給你的承諾、 提交于 2019-12-06 17:54:17
问题 When running my PHP scripts in HHVM I see that I can pass a debug-host and debug-port arguments, but I can't seem to work out exactly what it does and how to use it. Are those arguments for debugging HHVM itself (or maybe the compiled PHP itself) or is it for debugging the PHP script? That is to say, is it for debugging the way that HHVM works, or is it for debugging as I would normally do with XDebug, say? At first I tried to connect it to my IDE that is set up for XDebug, but that doesn't

Automatically restarting HHVM when it stops responding but process not dead

情到浓时终转凉″ 提交于 2019-12-06 11:15:18
I'm having a problem where every 12-24 hours, HHVM crashes but it seems to leave the process running. It seems most providers just use php5-fpm as a failover within nginx for stability. However, this won't restart the non-responsive hhvm instance. Since the process is left running, most server monitoring solutions will see it as a live daemon, and not restart it. HTTP monitoring can be slow to react. Is it possible to trigger the hhvm restart on failover? If not, what would be the best solution to ensure a listening daemon that's non responsive is restarted. kristapsk posted a solution on

hhvm-fastcgi is not showing warnings

一笑奈何 提交于 2019-12-05 18:27:45
I'm using HHVM 3.1.0 (rel) with Nginx, and fastcgi is not showing warnings, but running hhvm on console it shows. Is it normal? My php.ini: error_reporting = E_ALL display_errors = 1 hhvm.error_handling.call_user_handler_on_fatals = false hhvm.error_handling.max_loop_count = 0 hhvm.error_handling.no_infinite_recursion_detection = false hhvm.error_handling.throw_bad_type_exceptions = true hhvm.error_handling.throw_too_many_arguments = true hhvm.error_handling.warn_too_many_arguments = true hhvm.error_handling.throw_missing_arguments = true hhvm.error_handling.throw_invalid_arguments = true hhvm

Installing composer using vagrant, hhvm, and Ubuntu 14.04

自作多情 提交于 2019-12-05 13:37:30
At the end of my vagrant provisioning script I attempt to install composer using the following : sudo curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer However when this is executed I get the following errors : SlowTimer [5612ms] at curl: https://getcomposer.org/composer.phar Download failed: Failed to open https://getcomposer.org/composer.phar (Resolving timed out after 5613 milliseconds) The download failed repeatedly, aborting. If I have php installed rather than hhvm and run the same commands on my vagrant vm the install is successful which

nginx - laravel - hhvm-Fastcgi get error 500

拥有回忆 提交于 2019-12-05 11:44:40
I install a LEMP server in ubuntu 12.04 LTS 64 whit HHVM Fastcgi Service and i install laravel via laravel.phar ( and test via composer too ) when in get my site in brwoser do not display any error but in chrome developer console get error 500 i can't see any error in error.log file ( laravel - hhvm , nginx ) the storage directory Permissions is 777 and my nginx.conf and vhosts file have basic configuration when i use PHP CLI or hhvm command it's worked good thanks for help me :) my location block location ~ \.(hh|php)$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_keep_conn on; fastcgi

Debugging in HHVM?

不打扰是莪最后的温柔 提交于 2019-12-05 01:07:36
When running my PHP scripts in HHVM I see that I can pass a debug-host and debug-port arguments, but I can't seem to work out exactly what it does and how to use it. Are those arguments for debugging HHVM itself (or maybe the compiled PHP itself) or is it for debugging the PHP script? That is to say, is it for debugging the way that HHVM works, or is it for debugging as I would normally do with XDebug, say? At first I tried to connect it to my IDE that is set up for XDebug, but that doesn't seem to do anything so without going on a wild goose chase I thought I would ask here. What are the

How to always use ignore-platform-reqs flag when running composer?

时间秒杀一切 提交于 2019-12-05 00:13:03
On my local machine, I have php v7.0.3. A project of mine has a dependency on php v5.5. So as expected, a simple run of composer install crashes: Your requirements could not be resolved to an installable set of packages. Problem 1 - This package requires php ~5.5 but your PHP version (7.0.3) does not satisfy that requirement. I know I can ignore the platform via: composer install --ignore-platform-reqs yet I often forget to add the flag. Yet since the application runs inside a docker container, a mismatching php can install the dependencies just as fine. So I am wondering if there is a way to

解压即用,跨Linux发行版HHVM打包

和自甴很熟 提交于 2019-12-04 12:30:36
适用环境 : 64位Linux HHVM-3.7.1下载地址( 33MB ) : https://pan.baidu.com/s/1dECvbET md5sum hhvm-3.7.1.tar.xz 1c921ac67c57d4a23132e1f6f7bb3da6 HHVM-3.5.0下载地址( 30MB ) : http://pan.baidu.com/s/1mgJuG7Q md5sum hhvm- 3.5.0 .tar.xz 01d7bce054a938de30fff4f3672cca76 Debian/Ubuntu创建运行用户: sudo groupadd -r png sudo useradd -r -g png -s /usr/sbin/nologin -d /png/nonexistent -c "png user" png Redhat/CentOS创建运行用户: sudo groupadd -r png sudo useradd -r -g png -s /sbin/nologin -d /png/nonexistent -c "png user" png 创建解压目录: sudo mkdir -p /png/hhvm sudo chown $USER:$USER /png/hhvm 解压到目录: xz -d hhvm-3.5.0.tar.xz && tar xf