Skip to content

Instantly share code, notes, and snippets.

$client = new Client('unix:///var/run/hhvm/hhvm.sock', -1);
$client->setConnectTimeout(86400 * 1000);
$client->setReadWriteTimeout(86400 * 1000);
$response = $client->request([
'QUERY_STRING' => '',
'REQUEST_METHOD' => 'GET',
'SCRIPT_FILENAME' => '/var/www/hrmweb/includes/run_job.php',
'SCRIPT_NAME' => '/run_job.php',
'REQUEST_URI' => '/' . (int)$id,
'DOCUMENT_URI' => '',
Scanning dependencies of target afdt
[ 0%] Building C object third-party/libafdt/CMakeFiles/afdt.dir/src/lowlevel.c.o
[ 0%] Building C object third-party/libafdt/CMakeFiles/afdt.dir/src/strlcpy.c.o
[ 0%] Building C object third-party/libafdt/CMakeFiles/afdt.dir/src/sync.c.o
[ 0%] Building C object third-party/libafdt/CMakeFiles/afdt.dir/src/util.c.o
[ 0%] Building C object third-party/libafdt/CMakeFiles/afdt.dir/src/async.c.o
Linking C static library libafdt.a
[ 0%] Built target afdt
Scanning dependencies of target eaw_table
Hello
<?php
class FlockSessionHandler implements SessionHandlerInterface {
private $savePath;
private $fh;
public function open($savePath, $sessionName) {
$this->savePath = $savePath;
if (!is_dir($this->savePath)) {
mkdir($this->savePath, 0777);
<?hh // strict
namespace beatbox;
type Path = ImmVector<string>;
type Extension = ?string;
type Metadata = Map<string, mixed>;
type FragmentHandler = (function(Path, Extension, Metadata): mixed);
type CheckerCallback = (function(string, Metadata): bool);
<?hh // strict
namespace beatbox;
type Path = ImmVector<string>;
type Extension = ?string;
type Metadata = Map<string, mixed>;
type FragmentHandler = (function(Path, Extension, Metadata): mixed);
type CheckerCallback = (function(string, Metadata): bool);
diff --git a/hphp/compiler/analysis/emitter.cpp b/hphp/compiler/analysis/emitter.cpp
index 8f931b4..41659ff 100644
--- a/hphp/compiler/analysis/emitter.cpp
+++ b/hphp/compiler/analysis/emitter.cpp
@@ -5456,6 +5456,9 @@ void EmitterVisitor::emitBuiltinDefaultArg(Emitter& e, Variant& v,
case KindOfObject:
case KindOfResource:
case KindOfArray:
+ case KindOfInt64:
+ case KindOfDouble:
diff --git a/hphp/compiler/analysis/emitter.cpp b/hphp/compiler/analysis/emitter.cpp
index 8f931b4..96d5638 100644
--- a/hphp/compiler/analysis/emitter.cpp
+++ b/hphp/compiler/analysis/emitter.cpp
@@ -6660,6 +6660,7 @@ void EmitterVisitor::fillFuncEmitterParams(FuncEmitter* fe,
ExpressionListPtr params,
bool builtin /*= false */) {
int numParam = params ? params->getCount() : 0;
+ std::cout << fe->name()->toCppString() << std::endl;
for (int i = 0; i < numParam; i++) {
class MemcachedData {
public:
class Impl {
public:
Impl() :
compression(true),
serializer(q_Memcached$$SERIALIZER_PHP),
rescode(q_Memcached$$RES_SUCCESS) {
memcached_create(&memcached);
};
/* main/php_config.h. Generated from php_config.h.in by configure. */
/* main/php_config.h.in. Generated from configure.in by autoheader. */
#if defined(__GNUC__) && __GNUC__ >= 4
# define ZEND_API __attribute__ ((visibility("default")))
# define ZEND_DLEXPORT __attribute__ ((visibility("default")))
#else
# define ZEND_API
# define ZEND_DLEXPORT
Log {
RuntimeErrorReportingLevel = 32767
Level = Info
File = /var/log/hhvm.log
AccessLogDefaultFormat = %h %l %u %t \"%r\" %>s %b
Access {
* {
File = /var/log/hhvm-access.log
}