r/HHVM • • Dec 12 '14

Displaying Errors in HHVM

3 Upvotes

I was thinking of using HHVM in my development environment. However, I have encountered two significant issues.

First, no matter what I try, I cannot get HHVM to display a PHP stack trace in the browser window when an exception or error occurs. I've tried using set_error_handler and various other approaches. Has anyone figured out a way to display errors and exception stack traces in the browser window?

Second, the error log file is filled with "\n". I know that is supposed to cause a carriage return. However, it's not. Instead, it just makes the logs hard to read. Has anyone figured out a way to get rid of all of the "\n" in the log files?

UPDATE: I opened issues for both of these on GitHub. Apparently, I'm not the only one that has ran into this wackyness. Apparently, there is this mid-level dev in some random cubicle that says all PHP developers on the planet can't see exception stacks in their browser. Never mind that all PHP devs (millions) have used this feature all day, everyday, since the beginning of time.

(https://github.com/facebook/hhvm/issues/4437)

(https://github.com/facebook/hhvm/issues/4436)


r/HHVM • • Mar 26 '15

HHVM in Windows?

2 Upvotes

I know HHVM isn't officially supported on Windows. But I've got a vendor provided PHP app in a corporate environment where I have to use Windows. Performance is becoming an issue. I'd like to test out HHVM if possible.

Has anyone built HHVM in Cygwin or done a cross-platform compile? It is possible at all to test HHVM in Windows?


r/HHVM • • May 21 '15

Bug with ErrorException::getPrevious()?

1 Upvotes

Has anyone else come across this bug? It appears that the ErrorException::getPrevious() method always returns null.

<?php

$e1 = new Exception('first', 1);   
$e2 = new Exception('second', 2,  $e1);                                                                  
$ee2 = new ErrorException('second', 2, 1, __FILE__, __LINE__, $e1);

if ($e2->getPrevious() != null) {
    echo "Exception previous is not null\n";
} else {
    echo "Exception previous is null\n";
}

if ($ee2->getPrevious() != null) {
    echo "ErrorException previous is not null\n";
} else {
    echo "ErrorException previous is null\n";
}

Output for hhvm-3.6.0 - 3.7.0

Exception previous is not null
ErrorException previous is null

r/HHVM • • Sep 09 '17

/var/lib/hhvm/sessions is getting millions of files in it - Part 2

1 Upvotes

What the world needs now,


r/HHVM • • Sep 28 '15

HHVM not starting on boot

1 Upvotes

I have an Ubuntu 14.04 server with nginx + mariadb + HHVM, when I boot HHVM is not starting and I need to do a sudo service hhvm start in order for it to start. I have added since the install the command

sudo update-rc.d hhvm defaults  

But so far It seems HHVM is nto starting on boot

what can It be?


r/HHVM • • Dec 25 '15

/var/lib/hhvm/sessions is getting millions of files in it

2 Upvotes

Somehow /var/lib/hhvm/sessions is getting full of every single session and is not being cleaned up

Why is this?

Have like 3M files in it for the sessions, how can I tell hhvm to clean it up or act normally

Have 2 other servers with the same config and its not doing this


r/HHVM • • Feb 08 '15

How we made editing Wikipedia twice as fast

Thumbnail
blog.wikimedia.org
2 Upvotes

r/HHVM • • Jun 12 '15

My nomination for "Best explanation for the use of an operator"

Thumbnail
docs.hhvm.com
3 Upvotes

r/HHVM • • Feb 17 '15

benchmarked apache+HHVM against apache+mod_php on my symfony project

4 Upvotes

I just did a first install of HHVM to do some benchmarks against a symfony2 project I'm workingn on. Here are the results:

HHVM:
Time taken for tests: 110.820 seconds
Complete requests: 1000
Failed requests: 216
(Connect: 0, Receive: 0, Length: 216, Exceptions: 0)
Non-2xx responses: 216
Total transferred: 84559570 bytes
HTML transferred: 84155434 bytes
Requests per second: 9.02 [#/sec] (mean)
Time per request: 11082.022 [ms] (mean)
Time per request: 110.820 [ms] (mean, across all concurrent requests)
Transfer rate: 745.15 [Kbytes/sec] received

mod_php:
Time taken for tests: 24.416 seconds
Complete requests: 1000
Failed requests: 0
Total transferred: 31949000 bytes
HTML transferred: 31540000 bytes
Requests per second: 40.96 [#/sec] (mean)
Time per request: 2441.645 [ms] (mean)
Time per request: 24.416 [ms] (mean, across all concurrent requests)
Transfer rate: 1277.84 [Kbytes/sec] received

So mod_php was more than 4 times faster than HHVM...
Can anybody explain? Both are default installations on ubuntu 14.04 (apache2.4) with no settings changed, no cache extra extensions installed.


r/HHVM • • Apr 05 '15

Async HTTP Server in HHVM

Thumbnail
github.com
4 Upvotes

r/HHVM • • Jun 09 '15

Lockdown Results and HHVM Performance

Thumbnail
hhvm.com
5 Upvotes

r/HHVM • • Jul 14 '15

HHVM 3.8.0

Thumbnail
hhvm.com
5 Upvotes

r/HHVM • • Jul 08 '15

The latest Piwik release (web analytics) now works with HHVM

Thumbnail
piwik.org
5 Upvotes

r/HHVM • • Oct 20 '13

Composer and HHVM on Ubuntu 13.10

Thumbnail
thefrozenfire.com
2 Upvotes

r/HHVM • • Oct 12 '14

This is how hhvm compiles scripts....

Thumbnail
hhvm.com
6 Upvotes

r/HHVM • • Jan 26 '16

Talented Developer Michelle Sanver on Women's Role in PHP And Talks about HHVM

Thumbnail
cloudways.com
2 Upvotes

r/HHVM • • Nov 18 '17

HHVM 3.23 is released

Thumbnail
hhvm.com
3 Upvotes

r/HHVM • • Apr 03 '14

My PHP5-FPM vs HHVM performance test. Need your feedback.

Thumbnail
techsamurais.com
3 Upvotes

r/HHVM • • Apr 22 '24

What happened to hack/hhvm?

1 Upvotes

This sub died about 5 years ago. What killed it?


r/HHVM • • Jul 30 '14

phpinfo page for missing one in HHVM

Thumbnail
gist.github.com
3 Upvotes

r/HHVM • • May 11 '15

Async-MySQL: An extremely lightweight wrapper for AsyncMySQLConnection

Thumbnail
github.com
3 Upvotes

r/HHVM • • Aug 01 '14

Facebook's HHVM "Hack Dev Day 2014" video presentations

Thumbnail
youtube.com
2 Upvotes

r/HHVM • • Mar 30 '18

3.25.2, 3.24.6, 3.21.10 (CVE-2018-6334)

Thumbnail
hhvm.com
1 Upvotes

r/HHVM • • Aug 09 '14

I am using HHVM and Nginx to power this WordPress Site..HHVM Nginx with WordPress a working tutorial

Thumbnail
udinra.com
3 Upvotes

r/HHVM • • Aug 07 '14

Facebook has "bounties" on HHVM bugs/features

Thumbnail bountysource.com
2 Upvotes