Questions tagged [hhvm]

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

hhvm
Filter by
Sorted by
Tagged with
0 votes
2 answers
116 views

How does daylight saving work in php (difference between php and hhvm)?

I need to detect when a timestamp is in daylight saving or not. I'm using this code to test the functionality: <?php date_default_timezone_set('Europe/Berlin'); $timestamp = $baseTimestamp = ...
Noogic's user avatar
  • 143
1 vote
1 answer
91 views

Generate pdf in HHVM not work

I used nginx and hhvm on my ubuntu server , and mikehaertl/phpwkhtmltopdf package in laravel for generating pdf but generated pdf in HHVM shows content below and in my local machine works good: My ...
amirali's user avatar
  • 69
0 votes
1 answer
560 views

Send mail in laravel shows error

I have a ubunut server with HHVM , nginx , php7 , redis and instance of laravel 5.2 installed When i want to send email from laravel with below code : $data = [ 'email' => $email, ...
amirali's user avatar
  • 69
-2 votes
2 answers
118 views

HHVM issue on ISPconfig MediaWiki installation

I am about to setup Mediawiki on my VM (Debian Jessie, ISPconfig 3.1) and I get an error 500 when accessing the website. Here is my apache2 error.log: [fastcgi:error] [pid 8066] (2)No such file or ...
rfnx's user avatar
  • 1
1 vote
0 answers
36 views

Has anyone built an Extension for HHVM on MacOS?

Actually. Can't built even example extension (https://github.com/hhvm/extension-example) on MacOS Sierra with these errors: [100%] Linking CXX shared library example.so Undefined symbols for ...
Volodymyr Klymenko's user avatar
0 votes
0 answers
114 views

hhvm async cli hangs

I have a laravel application in which run I'm running a command line task. The task basically fetches data from the database and writes it to disk. The files are about 15-35kb in size. There are ...
user2108258's user avatar
0 votes
1 answer
82 views

Run PHP function from HHVM C++ extention

Is it possible? Without using Zend API, only Native. For use it like in PHP extension: call_user_function(EG(function_table), NULL, &func, &retval, 1, params);
Volodymyr Klymenko's user avatar
0 votes
1 answer
129 views

Laravel/PHP/HHVM error log showing line number -1

I'm using Laravel 5.4, php 5.5.9 and HHVM 3.15.3 I'm getting error logs, but showing line number is -1, like: Fatal error: Class undefined: App\Http\Controllers\XXXX in XXXX/XXXXController.php on ...
Sharath's user avatar
2 votes
1 answer
208 views

How ignore any files using HHVM proxygen rewrite rules?

I create a file like this example.ini: hhvm.server.type = proxygen hhvm.server.default_document = index.php hhvm.virtual_host[default][rewrite_rules][common][pattern] = "(.*)" hhvm.virtual_host[...
Korvo's user avatar
  • 9,719
0 votes
1 answer
223 views

HHVM CMake error

I am trying to install HHVM on an Ubunut 14.04 machine using this guide: https://docs.hhvm.com/hhvm/installation/building-from-source#ubuntu-15.04-vivid However, when running the cmake -...
Mihai Ghimpu's user avatar
3 votes
0 answers
456 views

Confuse how to use Repo Authoritative mode on HHVM using Ubuntu 16.04 LTS

I just tried to build some website using hack lang developed by facebook, and found an interesting feature called Repo Authoritative. I had tried to follow the official docs : https://docs.hhvm.com/...
Brian Alexandro's user avatar
1 vote
3 answers
641 views

Running HHVM in Alpine linux

I've been trying to install HHVM (Hack) on Alpine linux to no success. Has anyone compiled HHVM on linux? Any help would be welcome.
bluetazmanian's user avatar
1 vote
1 answer
5k views

Deserialize JSON in Hack strict mode

I have a nested JSON file, consisting of keys and values which are string only. But the structure of the JSON file is not fixed, so sometimes it could be nested 3 levels, sometimes only 2 levels. I ...
Bearzi's user avatar
  • 538
0 votes
1 answer
95 views

Wordpress show blank page on useradd - Nginx,HHVM,MariaDB

right now I got the following problem: Always when I try to add an user or reset a password I only get redirected to a blank page. First of all I thought it is a problem with sendmail or nginx-...
Simon Frey's user avatar
  • 2,729
0 votes
1 answer
76 views

issue with compiling predis with hhvm as a php only extension -- RedisCluster::__construct() must be an instance of FactoryInterface, Factory given

I am using hhvm extensions api to try and build predis as a php only extension at the time of building HHVM. The purpose is to hopefully get better performance from it. After concatenating and ...
Abhi's user avatar
  • 1
2 votes
1 answer
4k views

Does laravel support on HHVM Version 3.15.1 stack

Does it supports on hhvm 3.15.1 and compiler ID: tags/HHVM-3.15.1-0-g87901df9ba74204dda149af0cfbbb016d85df67e current php version 7.0.99-hhvm
MANJEET's user avatar
  • 1,783
1 vote
0 answers
155 views

HHVM is performing way slower than PHP 5.6… why?

I have been playing with this a while now and I thought maybe I would ask the community. Log::write("perf", "start" ); for($i=0;$i<100000000;$i++) {} Log::write("perf", "finish"); As you can ...
Lance Bryant's user avatar
0 votes
1 answer
1k views

NGinx: connect() to unix:/var/run/hhvm/sock failed, No such file

I am Tryig to install FB-CTF which uses HHVM, and NGinx. Everything is set completely by Shell command itself.. but now error log showing 2017/01/18 21:48:17 [crit] 15143#0: ***6 connect() to unix:/...
jerinisready's user avatar
1 vote
1 answer
1k views

https://example.com opens a BIN file for download and not page content

I installed a SSL certificate on my server in order to be used with wordpress. I followed manual from https://www.namecheap.com/support/knowledgebase/article.aspx/9419/0/nginx where my certificate is ...
MarcoSaf445's user avatar
0 votes
1 answer
2k views

install FB CTF from scratch

Can I get how to install FBCTF Mannually. which all software is needed for that. from the scratch including server software for hack, nginx and all.
jerinisready's user avatar
0 votes
1 answer
101 views

NGINX | HHVM | PHP - Unable to require anything but .txt files

I've setup HHVM & NGINX on my local machine, and it works perfectly without any problems. Last day I did it on my Ubuntu VPS, but with alot of errors, which mostly has been fixed, but the one I am ...
Kymetica's user avatar
1 vote
2 answers
475 views

Autoloading Hack type aliases

Is there any way autoload Hack type aliases? I've placed them in separate files on PSR-4-compliant paths, and although I understand they are Hack-only and aren't formally mentioned in the PSR-0 or PSR-...
concat's user avatar
  • 3,117
7 votes
1 answer
351 views

HHVM RepoMode Segmentation Fault

Specs: Ubunutu 16.04.1 Server nginx 1.10 HHVM 3.17.0 I am attempting to gather a list of files, and run them through the hhvm compiler to utilize repo mode, with the following code: #!/bin/bash if [...
Kevin's user avatar
  • 2,716
-2 votes
1 answer
61 views

What is the output of this PHP code during the first and second requests?

This is most likely a PHP noobie question. To test some server caching configuration, I added the following code to my test suite: <?php if (array_key_exists('visited', $GLOBALS)) { print_r("...
dsign's user avatar
  • 12.5k
1 vote
2 answers
418 views

Any way to always send HHVM all request to same file in server mode (not FastCGI)?

Working setup, assume a request to http://127.0.0.1:8080/path/to/resource: nginx/apache receives the request and passes it to index.php behind the scenes to hhvm vi FastCGI. After the the handoff ...
Ray's user avatar
  • 40.8k
1 vote
1 answer
1k views

PHP Unit Fatal error: Call to undefined method PHPUnit_Framework_MockObject_InvocationMocker

I'm having an issue with php unit on hhvm where getmock() failing on phpunit 4.8.27 for a class with the following message Fatal error: Call to undefined method ...
Walt Sorensen's user avatar
2 votes
3 answers
2k views

How to set and disable headers in php's SoapClient?

The SoapClient sends the HTTP header: POST / HTTP/1.1 Accept: */* Accept-Encoding: deflate, gzip SOAPAction: "" Content-Type: text/xml; charset=utf-8 Content-Length: 2085 Expect: 100-continue HTTP/1....
k0pernikus's user avatar
  • 63.8k
0 votes
1 answer
288 views

Rebuild hhvm on Windows

i want rebuild hhvm from source in windows 10(64 bits,type = home). Source : https://github.com/facebook/hhvm/ Link 1 : github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-Windows-with-...
Ahmad's user avatar
  • 1
0 votes
1 answer
89 views

Homestead with hhvm:true,but doesn't use hhvm?

I have the last Vagrant+Homestead installation. Nginx+Laravel+php7 I've addedd hhvm: true to yaml file like this - map: example.local to: /home/vagrant/Code/example/public hhvm: true and ...
Glasnhost's user avatar
  • 1,075
0 votes
1 answer
252 views

How to set mysqli_result::num_rows

For mocking purposes, I extended the mysqli_result class: class MysqliResultMock extends mysqli_result { ... } Now, I need to override what it returns for its member called 'num_rows', but ...
Haszprus's user avatar
1 vote
2 answers
303 views

Developing on WordPress with Hack/HHVM

I'm running WordPress on HHVM and I'd like to develop themes, plugins and templates with Hack and XHP, rather than PHP. I have noted, that while <?php /* Template Name: Hack/HHVM test */ ?> (in ...
shmuli's user avatar
  • 5,132
0 votes
1 answer
787 views

installing hhvm on centOS 7.2 With Apache 2.4

I've been looking into this and I have some questions about it. As far as I understand, hhvm is a framework developed by facebook to support the "hack" and "php" languages. If I install this in place ...
emjay's user avatar
  • 219
2 votes
0 answers
62 views

Set permalinks/seo links for wordpress in heroku HHVM nginx

I have blog inside "blog" folder and I try to set seo friendly (permalinks, "post name") for my wordpress blog on heroku. just settings up my htccess result with 404.. errors Options -Indexes # ...
David's user avatar
  • 1,342
0 votes
2 answers
98 views

HHVM Type Checker error on preg_match_all

HHVM type checker tend to produce an error when the argument/parameter of a function was not defined. preg_match_all('/regex/', 'string', $matches) will produce an error on the $matches as Undefined ...
stanley1943's user avatar
0 votes
1 answer
63 views

Nginx Proxy Pass Connection timed out To HHVM

I am having a very weird problem. I have my servers connecting to my api via proxypass. server { listen 80; server_name www.example.com; location / { root /data/sites/www....
Devin Dixon's user avatar
0 votes
1 answer
672 views

unable to get hhvm working with nginx

I have nginx and hhvm installed and running as processes on a ubuntu VM. The configs are copied below. I have an index.php file in /usr/share/nginx/html (pointed to by nginx) but when I try to ...
ali haider's user avatar
  • 19.7k
0 votes
0 answers
39 views

Hack syntax: What does question mark followed by object operator mean? [duplicate]

In Hack, what is happening here and what does it mean? How do you read it? $foobar = $foo?->bar();
solimant's user avatar
  • 869
1 vote
0 answers
132 views

why doesn't work well mod_rewrite on hhvm in my server?

I'm using the codeigniter framework and HHVM server. How do I write a legal URL for this? My attempts continually return code 404 (page not found). What's wrong with the following? Server { ...
Jang-Ho Bae's user avatar
2 votes
1 answer
179 views

How to create a static file cache in HHVM

We are running a website in Repo Authoritative mode on HHVM. I can compile the code files fine with the hhvm --hphp -thhbc. However, it seems like there is also a feature to create a static file ...
limos's user avatar
  • 1,546
1 vote
1 answer
320 views

Run yii project using hhvm

How can I start Yii2 project using HHVM? Run hhvm yii serve but I got the following error: Server started on http://localhost:8080/ Document root is "/home/hgminh95/Documents/pk-homepage-server/...
hgminh's user avatar
  • 1,218
1 vote
0 answers
199 views

ErrorException Undefined index: 0 - hhvm and composer

I'm trying to run: hhvm $(brew --prefix)/bin/composer.phar With: HipHop VM 3.14.3 (rel) Compiler: 1471660550_N Repo schema: 90201df99a45497953c42400d58fb97663717b4a But I get: Any ideas? Can't ...
Alex Chin's user avatar
  • 1,642
2 votes
1 answer
989 views

Iterating over a big MongoDB collection without running out of memory

I have a large Mongo collection I want to iterate over so I do something like that: $cursor = $mongo->my_big_collection->find([]); foreach ($cursor as $doc) do_something(); But I ...
bap's user avatar
  • 118
0 votes
2 answers
92 views

Can't initialise \AsyncMysqlQueryResult object

I want simply initialise the \AsyncMysqlConnectionResult $connec; object <?hh namespace Connection; require_once("ini.php"); /** * Class for execute and fetch query */ class MyQuery { /** * ...
bbichero's user avatar
2 votes
0 answers
375 views

mod_proxy missing in apache2 installation

I have an issue with my apache2 configuration for HHVM. I'm on Debian 7. The problem is verry simple : mod_proxy are missing in my apache2 installation (/etc/apache2/mod-availables/). I've reinstall ...
bbichero's user avatar
0 votes
1 answer
155 views

Wrong Tax calculation in Magento on HHVM

I'm running Magento 1.9.1.0 at HHVM 3.14.4 I added hhvm.enable_zend_sorting = 1 to /etc/hhvm/php.ini file and /etc/hhvm/server.ini, but the tax calculation is actually wrong. Magento Wrong Tax ...
Julius's user avatar
  • 1
2 votes
0 answers
103 views

Does HHVM Proxygen support the HTTP Patch method?

Our application runs on a hhvm/proxygen docker container. When we try to use the http patch method we always get a "Bad Request 400" response. Do I need a special configuration to use patch on hhvm/...
dschniepp's user avatar
  • 1,083
0 votes
1 answer
149 views

Permanent redirects by MediaWiki: when?

some time ago I set up a MediaWiki installation with very short URLs like http://(mydomain)/Page_Title. I made sure it worked, even if the page was called /etc: http://(mydomain)//etc opened ...
Alexander Mashin's user avatar
0 votes
1 answer
2k views

Magento Redis session Issue: after few hours website slows down

I have been trying to use Redis for Magento for performance boost but I am having issues with Redis in Magneto CE 1.9.2.4. My website after few hours slows down when I using Redis, sometimes it can ...
Karolis Arbačiauskas's user avatar
1 vote
1 answer
993 views

Installing MongoDB Drivers on Laravel Forge HHVM Server

How do i solve this issue? I've been trying to install MongoDB HHVM Driver on Ubuntu 16.04 (Laravel Forge Server) following these instructions: [Manually Installing the MongoDB HHVM Driver][1] I've ...
imbayago's user avatar
  • 501
1 vote
0 answers
180 views

Error installing XHP with composer

I'm trying to install XHP on OSX using composer. I have a directory with composer.phar and composer.json. My composer.json file looks like this: { "require": { "facebook/xhp-lib": "~2....
Chris Apacible's user avatar

1
2
3 4 5
11