hhvm

Nginx PHP Failing with Large File Uploads (Over 6 GB)

青春壹個敷衍的年華 提交于 2019-11-28 16:52:35
问题 I am having a very weird issue uploading larges files over 6GB. My process works like this: Files are uploaded via Ajax to an php script. The PHP upload script takes the $_FILE and copies it over in chunks, as in this answer to a tmp location. The location of the file is stored in the db A cron script will upload the file to s3 at a later time, again using fopen functions and buffering to keep memory usage low My PHP(HHVM) and NGINX configuration both have their configuration set to allow up

HHVM poor performance

寵の児 提交于 2019-11-28 15:35:29
I'm evaluating HipHop-PHP for compatibility and performance on our code base, but I'm getting very poor performance when running it with the built-in web server enabled. I have the following sample test program that calculates a Fibonacci sequence. ex3.php: function fib($n) { if ($n <= 2) return 1; else return fib($n-1) + fib($n-2); } $n = 36; printf("fib(%d) = %d\n", $n, fib($n, 2)); When I run this through HHVM using the command-line, I get impressive results: time hhvm -v"Eval.Jit=true" -f ./ex3.php fib(36) = 14930352 real 0m0.267s user 0m0.248s sys 0m0.020s Compare this with standard PHP:

Is time() guaranteed to be leap-second aware?

拈花ヽ惹草 提交于 2019-11-28 04:03:59
问题 PHP manual states that time() returns&puncsp;"the current UNIX timestamp" ᴀ&puncsp;­and microtime() returns the&puncsp;"current Unix timestamp with microseconds" ʙ. However, are these functions guaranteed to behave like that of strictly conforming POSIX.1 systems? Specifically, do leap seconds get inserted in such a way that the output of time() &hairsp;|&hairsp;­ microtime() jump backwards by 1 second at the start of the next day, (which is the also at the end of the leap second,) giving

HHVM+Hacklang: errors/warnings output into browser

时光怂恿深爱的人放手 提交于 2019-11-28 01:16:00
问题 Is there any way to tell HHVM to output Hacklang warnings and errors into the browser? Something like PHP does with enabled display_errors , display_startup_errors and error_reporting set to E_ALL HHVM version: $ php -v HipHop VM 3.1.0-dev+2014.04.09 (rel) Compiler: heads/master-0-g4fc811c64c23a3686f66a2bea80ba47f3eaf9f3d Repo schema: 79197c935790c0b9c9cb13566c3e727ace368117 I've tried the following config: $ cat /etc/hhvm/php.ini ; php options display_startup_errors = On error_reporting = E

HHVM poor performance

扶醉桌前 提交于 2019-11-27 09:17:38
问题 I'm evaluating HipHop-PHP for compatibility and performance on our code base, but I'm getting very poor performance when running it with the built-in web server enabled. I have the following sample test program that calculates a Fibonacci sequence. ex3.php: function fib($n) { if ($n <= 2) return 1; else return fib($n-1) + fib($n-2); } $n = 36; printf("fib(%d) = %d\n", $n, fib($n, 2)); When I run this through HHVM using the command-line, I get impressive results: time hhvm -v"Eval.Jit=true" -f