Questions tagged [hhvm]

HipHop VM (HHVM) is a virtual machine designed for executing programs written in Hack and PHP.

HipHop VM (HHVM) is a virtual machine designed to execute bytecode compiled just-in-time from both the PHP and Hack programming languages. It is maintained by Facebook.

HHVM is created as the successor of the HipHop for PHP (HPHPc) PHP execution engine, which is a PHP-to-C++ transpiler also created by Facebook. Based on the gained experience and aiming to solve issues brought by HPHPc, in early 2010 Facebook decided to create a JIT-based PHP virtual machine. Issues associated with HPHPc included its flattened curve for further performance improvements, lack of full support for the PHP language, and difficulties related to specific time- and resource-consuming development and deployment processes.

Versions and Support

+--------------+----------------+------------------+
|  LTS Version |  Release Date  |  End of Support  |
+--------------+----------------+------------------+
| 3.6          | 11 March 2015  | 28 Jan 2016      |
| 3.9          | 14 Aug 2015    | 15 July 2016     |
| 3.12         | 29 Jan 2016    | 30 Dec 2016      |
+--------------+----------------+------------------+

External links

532 questions
0
votes
1 answer

What's the status regarding HHVM?

I just discovered HHVM, a virtual machine designed to execute PHP (and a closely-related new language called Hack) much more efficiently than the standard PHP interpreter. Read about it at hhvm.com. (I think this started with an effort by Facebook…
user3238181
  • 115
  • 1
  • 10
0
votes
1 answer

Accessing system variables through HHVM

Problem: I want to access environment variables through HHVM that aren't typically exposed to a default php setup Context: I rely on a couple of system variables to provide dynamic configuration options to a Laravel4 project running in a Docker…
Eli Hooten
  • 994
  • 2
  • 9
  • 23
0
votes
1 answer

Laravel's Response::json() returns nothing to the client under HHVM

I have HHVM running on a virtualbox VM, with the webroot mapping to my local laravel install, being served out at an internal IP. Locally, I'm serving the site out under http://[localhost]:8000. The codebase is identical. code of…
ArkadePaulG
  • 161
  • 2
  • 10
0
votes
1 answer

Wrong request basePath when using Silex and HHVM

When I call /api/v1/foo Silex searches a route matching /api/v1/foo instead of /foo. How can I fix that? My HHVM-Config: VirtualHost { * { Pattern = .* RewriteRules { * { pattern = /api/v1/.? …
user965306
0
votes
1 answer

Exceptions Handler with HipHop Virtual Machine

Any one knows hhvm's runtime option to use a custom exception handler. The official documentation mentions these values: ErrorHandling { CallUserHandlerOnFatals = true NoInfiniteLoopDetection = false NoInfiniteRecursionDetection = false …
lmoralesx
  • 21
  • 2
0
votes
2 answers

How to parse index.php in server root by default in HipHop / HHVM (and fix the "404 File Not Found" error)?

Reproduceable problem description: When installing HipHop / HHVM via the official way [1][2], and then running the built-in server [3] from /var/www via cd /var/www sudo hhvm -m server it will render a custom "404 File Not Found" message to the…
Sliq
  • 15,937
  • 27
  • 110
  • 143
0
votes
2 answers

HipHop Fatal error: Class undefined: mysqli

I'm using: HipHop VM v2.3.3 (rel) (so HHVM-fastcgi) When I use this: $mysqli = new mysqli("... I get: HipHop Fatal error: Class undefined: mysqli What can this mean? PS: Php -v = PHP 5.4.24-1+sury.org~precise+1 (cli) (built: Jan 24 2014 11:05:09)
Bob van Luijt
  • 7,153
  • 12
  • 58
  • 101
0
votes
1 answer

hhvm and cron job hanging for ever

how to call hhvm in cron jobs ? In crontab I added given below line */30 07-22 * * * /usr/bin/hhvm /var/www/cronjob.php when i do ps aux | grep cron | grep -v grep root 960 0.0 0.0 25804 1140 ? Ss 12:30 0:00 cron ubuntu …
Vijay
  • 129
  • 11
0
votes
2 answers

Error "Unknown class SimpleXMLIterator" with HHVM

It looks like HHVM is having trouble with SimpleXML according to https://github.com/facebook/hhvm/issues/650 https://github.com/facebook/hhvm/issues/303 The class SimpleXMLIterator is used on our case by Amazon S3' PHP SDK. I tried the same code…
Tristan
  • 3,192
  • 3
  • 20
  • 32
0
votes
1 answer

Debugging in nGinx yields 1 line and infinite frustration- How to Debug the Debugger

Yay for experimental projects! I decided to try setting up my blog with Facebook's new hhvm-fastcgi and wordpress. Followed instructions and am using the following nGnix configuration: server { listen *:80 default; server_name…
Dylan Madisetti
  • 775
  • 7
  • 22
0
votes
1 answer

How to run HHVM in Docker as a daemon?

HHVM does not go into background when running it in Docker using hhvm -m daemon. The process starts but does not return me to command prompt. ctl^c kills the process. My workaround is as follows: Install screen Run exec >/dev/tty 2>/dev/tty…
MarkL
  • 8,770
  • 7
  • 26
  • 27
0
votes
3 answers

PHP HipHop + rewrite to index.php

I wasted many hours to find, how to redirect all requests to index.php. I mean: site.com/some-url?param&1 will become site.com/index.php and $_SERVER[REQUEST_URI] === some-url?param&1 I've one hip hop archive (based on Nette Framework) and one…
0
votes
1 answer

How can I run the compiled version of hiphop php hhvm of wordpress installation?

I would like to run the compiled version of hiphop php hhvm of wordpress. That is, without the php source code on production server. Can anyone tell me how to get it done? Thanks.
Sam Wong
  • 11
  • 2
  • 6
0
votes
0 answers

How to redirect example.com/url to www.example.com/url using HipHop VM

How do I redirect example.com/url to www.example.com/url using HipHop VM. I'm not sure where to begin with since the rewriterules section seems to only apply pattern matching to the path I've tried RewriteRules { rootdomain { pattern = * …
DiverseAndRemote.com
  • 19,314
  • 10
  • 61
  • 70
0
votes
1 answer

how to debug an hhvm server

I have wordpress running in a hiphop vm on ubuntu 12.04. My server works fine for about an hour and then it stops serving requests and just times out. I can see that the hhvm process is still running when I execute ps -aux | grep "hhvm" but it is…
DiverseAndRemote.com
  • 19,314
  • 10
  • 61
  • 70