language stringlengths 0 24 | filename stringlengths 9 214 | code stringlengths 99 9.93M |
|---|---|---|
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_asio.hhi | <?hh
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
namespace HH {
function asio_get_current_context_idx(): \HH\FIXME\MISSING_RETURN_TYPE;
function asio_get_ru... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_asio_utils.hhi | <?hh
/* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
namespace HH\Asio {
interface ResultOrExceptionWrapper<T> {
public function isSucceeded(): bool;
public... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_async_mysql.hhi | <?hh
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
namespace {
const int NOT_NULL_FLAG;
const int PRI_KEY_FLAG;
const int UNIQUE_KEY_FLAG;
const int MULTI... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_bcmath.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function bcscale(int $scale): HH\FIXME\MISSING_RETURN_TYPE;
<<__PHPStdLib>>
... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_bzip2.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function bzclose(resource $bz): HH\FIXME\MISSING_RETURN_TYPE;
<<__PHPStdLib>... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_class.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
namespace {
<<__PHPStdLib>>
function get_declared_classes(): \HH\FIXME\MISSING_RETURN_TY... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_closure.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
class Closure {
public function __construct() {}
} |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_continuation.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function hphp_create_continuation(
HH\FIXME\MISSING_PARAM_TYPE $clsname,
... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_ctype.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function ctype_alnum(
HH\FIXME\MISSING_PARAM_TYPE $text,
)[]: HH\FIXME\MIS... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_curl.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
namespace {
const int CURLAUTH_ANY;
const int CURLAUTH_ANYSAFE;
const int CURLAUTH_BASI... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_datetime.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const string DATE_ATOM;
const string DATE_COOKIE;
const string DATE_ISO8601;
const string DA... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_debugger.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function hphpd_install_user_command(
HH\FIXME\MISSING_PARAM_TYPE $cmd,
H... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_dom.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int XML_ATTRIBUTE_DECL_NODE;
const int XML_ATTRIBUTE_NODE;
const int XML_CDATA_SECTION... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_error.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
function debug_backtrace(
int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT,
int $limit = 0,... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_exit.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
// exit and die terminate the request
<<__PHPStdLib>>
function exit(HH\FIXME\MISSING_PARAM_T... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_file.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
namespace {
const int PATHINFO_DIRNAME;
const int PATHINFO_BASENAME;
const int PATHINFO_EXTE... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_filter.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the 'hack' directory of this source tree.
*
*/
const int FILTER_FLAG_NONE;
const int FILTER_REQUIRE_SCALAR;
const int FILTER_REQUIRE_ARRAY;
const ... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_finfo.hhi | <?hh /* -*- php -*- */
/**
* Copyright(c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int FILEINFO_NONE;
const int FILEINFO_SYMLINK;
const int FILEINFO_MIME;
const int FILEI... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_function.hhi | <?hh
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
namespace {
<<__PHPStdLib>>
function get_defined_functions(): darray<string, varray<string>>;
<<__PHPSt... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_functioncredential.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
/**
* Object of this type is returned by __FUNCTION_CREDENTIAL__
* but you almost certainl... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_gettext.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the 'hack' directory of this source tree.
*
*/
<<__PHPStdLib>>
function bind_textdomain_codeset(
string $domain,
string $codeset,
): HH... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_globals.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
namespace HH {
function global_key_exists(string $key)[read_globals]: bool;
} |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_globals_pseudofunctions.hhi | <?hh /* -*- php -*- */
<<file: __EnableUnstableFeatures('readonly')>>
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
// The functions in this file only *look* lik... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_gmp.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int GMP_ROUND_ZERO;
const int GMP_ROUND_PLUSINF;
const int GMP_ROUND_MINUSINF;
const i... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_hash.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function hash(
string $algo,
string $data,
bool $raw_output = false,
)... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_iconv.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const string ICONV_IMPL;
const string ICONV_VERSION;
const int ICONV_MIME_DECODE_STRICT;
co... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_icu.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int UREGEX_CASE_INSENSITIVE;
const int UREGEX_COMMENTS;
const int UREGEX_DOTALL;
const... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_icu_uchar.hhi | <?hh
class IntlChar {
const string UNICODE_VERSION;
const int CODEPOINT_MIN;
const int CODEPOINT_MAX;
const int FOLD_CASE_DEFAULT;
const int FOLD_CASE_EXCLUDE_SPECIAL_I;
const int PROPERTY_ALPHABETIC;
const int PROPERTY_BINARY_START;
const int PROPERTY_ASCII_HEX_DIGIT;
const int PROPERTY_BIDI_CONTR... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_icu_ucnv.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
class UConverter {
const int REASON_UNASSIGNED;
const int REASON_ILLEGAL;
const int RE... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_icu_ucsdet.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
class EncodingDetector {
public function __construct();
public function setText(string $... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_icu_uspoof.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
class SpoofChecker {
const int SINGLE_SCRIPT_CONFUSABLE;
const int MIXED_SCRIPT_CONFUSAB... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_image.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int IMAGETYPE_BMP;
const int IMAGETYPE_COUNT;
const int IMAGETYPE_GIF;
const int IMAGE... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_imap.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function imap_8bit(string $str): HH\FIXME\MISSING_RETURN_TYPE;
<<__PHPStdLib... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_intervaltimer.hhi | <?hh /* -*- php -*- */
class IntervalTimer {
public function __construct(
float $interval,
float $initial,
mixed $callback,
)[leak_safe];
public function start()[globals, leak_safe]: HH\FIXME\MISSING_RETURN_TYPE;
public function stop()[globals, leak_safe]: HH\FIXME\MISSING_RETURN_TYPE;
} |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_intl.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int INTL_MAX_LOCALE_LEN;
const string INTL_ICU_VERSION;
const string INTL_ICU_DATA_VER... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_ipc.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function ftok(string $pathname, string $proj): HH\FIXME\MISSING_RETURN_TYPE;... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_json.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
// Error code constants
// No error has occurred
const int JSON_ERROR_NONE;
// The maximum s... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_ldap.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function ldap_connect(
HH\FIXME\MISSING_PARAM_TYPE $hostname = null,
int... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_lz4.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function lz4_compress(string $uncompressed, bool $high = false)[]: mixed;
<<... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_magick.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int MW_AbsoluteIntent;
const int MW_AddCompositeOp;
const int MW_AddEvaluateOperator;
... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_mailparse.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function mail(
string $to,
string $subject,
string $message,
string ... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_math.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int PHP_ROUND_HALF_UP;
const int PHP_ROUND_HALF_DOWN;
const int PHP_ROUND_HALF_EVEN;
c... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_mb.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int MB_OVERLOAD_MAIL;
const int MB_OVERLOAD_STRING;
const int MB_OVERLOAD_REGEX;
const... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_mcrouter.hhi | <?hh
<<__PHPStdLib>>
class MCRouterException extends Exception {
public function getKey(): string;
public function getOp(): int;
public function __construct(
string $message,
protected int $op = MCRouter::mc_op_unknown,
int $reply = MCRouter::mc_res_unknown,
protected string $key = "",
);
}
<... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_mcrypt.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int MCRYPT_ENCRYPT;
const int MCRYPT_DECRYPT;
const int MCRYPT_DEV_RANDOM;
const int M... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_memcache.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function memcache_connect(
HH\FIXME\MISSING_PARAM_TYPE $host,
HH\FIXME\M... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_memcached.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
class Memcached {
const int OPT_COMPRESSION;
const int OPT_SERIALIZER;
... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_misc.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
namespace HH {
function server_warmup_status(): string;
function execution_context()[rea... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_mysql.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int MYSQL_ASSOC;
const int MYSQL_BOTH;
const int MYSQL_NUM;
const int MYSQL_CLIENT_COM... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_network.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
namespace {
const int DNS_A;
const int DNS_A6;
const int DNS_AAAA;
const int DNS_ALL;
const... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_openssl.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const string OPENSSL_VERSION_TEXT;
const int OPENSSL_VERSION_NUMBER;
const int OPENSSL_RAW_... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_options.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int CLOCK_MONOTONIC;
const int CLOCK_PROCESS_CPUTIME_ID;
const int CLOCK_REALTIME;
con... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_output.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function ob_start(
HH\FIXME\MISSING_PARAM_TYPE $output_callback = null,
... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_password.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
// flags for password_hash
const int PASSWORD_DEFAULT;
const int PASSWORD_BCRYPT;
<<__PHPSt... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_pdo.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function pdo_drivers(): HH\FIXME\MISSING_RETURN_TYPE;
class PDO {
const in... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_pgsql.hhi | <?hh
const int PGSQL_ASSOC;
const int PGSQL_NUM;
const int PGSQL_BOTH;
const int PGSQL_CONNECT_FORCE_NEW;
const int PGSQL_CONNECTION_BAD;
const int PGSQL_CONNECTION_OK;
const int PGSQL_CONNECTION_STARTED;
const int PGSQL_CONNECTION_MADE;
const int PGSQL_CONNECTION_AWAITING_RESPONSE;
const int PGSQL_CONNECTION_AUTH_OK... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_posix.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function posix_access(
string $file,
int $mode = 0,
): HH\FIXME\MISSING_... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_preg.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function preg_grep(
string $pattern,
varray_or_darray<arraykey, mixed> $... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_process.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int WNOHANG;
const int WUNTRACED;
<<__PHPStdLib>>
function pcntl_alarm(int $seconds):... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_prof.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
namespace {
const int OBJPROF_FLAGS_DEFAULT;
const int OBJPROF_FLAGS_USER_TYPES_ONLY;
... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_random.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function random_bytes(int $length)[leak_safe]: string;
<<__PHPStdLib>>
func... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_readline.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
// Adds a line to the history
<<__PHPStdLib>>
function readline_add_history(string $line): b... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_readonly.hhi | <?hh
/**
* Copyright (c) 2021, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
namespace HH\Readonly {
/**
* Converts a readonly value type into a mutable one.
* Value types include... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_server.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
namespace {
const int PAGELET_NOT_READY;
const int PAGELET_READY;
const int PAG... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_simplexml.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int LIBXML_COMPACT;
const int LIBXML_DTDATTR;
const int LIBXML_DTDLOAD;
const in... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_snappy.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function sncompress(string $data)[]: HH\FIXME\MISSING_RETURN_TYPE;
<<__PHPSt... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_soap.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int SOAP_1_1;
const int SOAP_1_2;
const int SOAP_ACTOR_NEXT;
const int SOAP_ACTOR_NONE... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_socket.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int AF_UNIX;
const int AF_INET;
const int AF_INET6;
const int SOCK_STREAM;
const int S... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_spl.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function spl_classes(): HH\FIXME\MISSING_RETURN_TYPE;
<<__PHPStdLib>>
functi... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_sqlite3.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int SQLITE3_ASSOC;
const int SQLITE3_NUM;
const int SQLITE3_BOTH;
const int SQLITE3_IN... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_stream.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int STREAM_AWAIT_READ;
const int STREAM_AWAIT_WRITE;
const int STREAM_AWAIT_READ_WRITE... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_string.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int HTML_SPECIALCHARS;
const int HTML_ENTITIES;
const int ENT_COMPAT;
const int ENT_Q... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_thread.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function hphp_get_thread_id(): int;
<<__PHPStdLib>>
function hphp_gettid(): ... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_thrift.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
final class ThriftApplicationException extends Exception {
public function __construct(?st... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_transliterator.hhi | <?hh
// Based on runtime/ext/icu/ext_icu_transliterator.php
class Transliterator {
const int FORWARD;
const int REVERSE;
public string $id = '';
private function __construct();
private function __init(string $idOrRules, int $direction, bool $rules): bool;
public static function create(
string $id,
... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_url.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int PHP_URL_SCHEME;
const int PHP_URL_HOST;
const int PHP_URL_PORT;
const int PHP_URL_... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_variable.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<file: __EnableUnstableFeatures("readonly")>>
namespace {
<<__PHPStdLib>>
function is_b... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_xenon.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
namespace HH {
type XenonSample = shape(
'timeNano' => int,
'lastTriggerTimeNano'... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_xml.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int XML_ERROR_ASYNC_ENTITY;
const int XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF;
const i... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_xmlwriter.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
<<__PHPStdLib>>
function xmlwriter_open_memory(): HH\FIXME\MISSING_RETURN_TYPE;
<<__PHPStdLi... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_xslt.hhi | <?hh
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
class XSLTProcessor {
public function getParameter(?string $namespaceURI, string $localName): mixed;
publi... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_zip.hhi | <?hh /* -*- mode: php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
class ZipArchive {
// Constants
const int CHECKCONS;
const int OVERWRITE;
con... |
HTML Help Workshop | hhvm/hphp/hack/hhi/stdlib/builtins_zlib.hhi | <?hh /* -*- php -*- */
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*/
const int ZLIB_ENCODING_RAW;
const int ZLIB_ENCODING_GZIP;
const int ZLIB_ENCODING_DEFLATE;
... |
Man Page | hhvm/hphp/hack/man/hackificator.1 | .TH HACKIFICATOR 1
.SH NAME
hackificator \- convert PHP code to Hack
.SH SYNOPSIS
.B hackificator
.I DIRECTORY
.SH DESCRIPTION
.BR hackificator (1)
recursively converts
.I DIRECTORY
from PHP code into Hack code. The
.I DIRECTORY
must have already been set up as a Hack project and have
.BR hh_client (1)
run inside i... |
Man Page | hhvm/hphp/hack/man/hack_remove_soft_types.1 | .TH HACK_REMOVE_SOFT_TYPES 1
.SH NAME
hack_remove_soft_types \- Remove "soft types" from a Hack codebase
.SH SYNOPSIS
.B hack_remove_soft_types
.RI [ \-\-remove-from-log " | " \-\-harden ] " FILE"
.SH DESCRIPTION
Removes so-called "soft" type annotations from a Hack codebase. Soft type
annotations are parameter or ... |
Man Page | hhvm/hphp/hack/man/hh_client.1 | .TH HH_CLIENT 1
.SH NAME
hh_client \- Interface to Hack language typechecker
.SH SYNOPSIS
.B hh_client
.RI [ MODE ]
.RI [ OPTIONS ]
.RI [ DIRECTORY ]
.SH DESCRIPTION
.BR hh_client (1)
is an interface to a static analysis tool which is what enforces most of the
Hack language's type system. Code must pass validation ... |
Man Page | hhvm/hphp/hack/man/hh_server.1 | .TH HH_SERVER 1
.SH NAME
hh_server \- Hack language typechecker daemon
.SH SYNOPSIS
.B hh_server
.RI [ \-\-check\ [ \-\-json ]]
.I DIRECTORY
.SH DESCRIPTION
.BR hh_server (1)
is the actual typechecker that enforces the Hack type system. It is typically
accessed via
.BR hh_client (1);
see the documentation for that... |
Markdown | hhvm/hphp/hack/manual/hack/01-getting-started/01-getting-started.md | ```yamlmeta
{
"fbonly messages": [
"Unless you are specifically working on open source Hack code, you want [Facebook's internal documentation](https://our.internmc.facebook.com/intern/wiki/First-app/) instead for dev environment setup. If you're just looking to [learn the Hack language itself](https://docs.hhvm.... |
Markdown | hhvm/hphp/hack/manual/hack/01-getting-started/02-tools.md | The core tools are:
- `hh_client`: this is the command line interface for Hack's static analysis; it
is needed to verify that a project is valid Hack, and is used to find errors
in your programs
- `hhvm`: this is used to execute your Hack code, and can either be used for
CLI (e.g. `hhvm foo.hack`) or as a server... |
Markdown | hhvm/hphp/hack/manual/hack/01-getting-started/03-starting-a-real-project.md | ## Starting A Real Project
Real projects generally aren't a single file in isolation; they tend to have
dependencies such as the [Hack Standard Library], and various optional tools.
A good starting point is to:
- [install Composer]
- create an `.hhconfig` file
- create `src/` and `tests/` subdirectories
- configure a... |
Markdown | hhvm/hphp/hack/manual/hack/01-getting-started/04-the-hack-standard-library.md | # About the Hack Standard Library (HSL)
HHVM is distributed with a growing set of functions and classes
collectively called the [Hack Standard Library (HSL)](/hsl/reference/).
These are intended to complement, or in some cases replace previous
[built-in APIs](/hack/reference/).
There are two related GitHub projects/Co... |
Markdown | hhvm/hphp/hack/manual/hack/01-getting-started/05-input-and-output.md | ## Input and Output
A standard API for input and output, known as "HSL IO", is included in the
[Hack Standard Library (HSL)](the-standard-library).
<span data-nosnippet class="fbOnly">HSL IO should not yet be used in Facebook www; you want
the Facebook-specific `Filesystem` class instead. Post in the usual groups
if ... |
Markdown | hhvm/hphp/hack/manual/hack/02-source-code-fundamentals/01-introduction.md | **Topics covered in this section**
* [program structure](/hack/source-code-fundamentals/program-structure)
* [comments](/hack/source-code-fundamentals/comments)
* [constants](/hack/source-code-fundamentals/constants)
* [keywords](/hack/source-code-fundamentals/keywords)
* [literals](/hack/source-code-fundamentals/lite... |
Markdown | hhvm/hphp/hack/manual/hack/02-source-code-fundamentals/04-program-structure.md | A Hack program consists of one or more source files; these source files should
have the extension `.hack`, and contain one or more declarations of the following kind,
in any order:
* alias declaration
* class
* enumerated type
* function
* inclusion directive
* interface
* namespace
* trait
* use
Consider the followi... |
Markdown | hhvm/hphp/hack/manual/hack/02-source-code-fundamentals/10-comments.md | ```yamlmeta
{
"note": [
"Hash comments (`#`) are no longer supported, and are a parse error since [HHVM 4.133](https://hhvm.com/blog/2021/10/26/hhvm-4.133.html)."
]
}
```
Hack has three comment syntaxes.
```hack
// A single line comment.
/* A multi line comment.
*
*/
/**
* A doc comment starts with two a... |
Markdown | hhvm/hphp/hack/manual/hack/02-source-code-fundamentals/13-names.md | Names are used to label variables, constants, functions, and user-defined types, among other things. A name *must* begin
with an upper- or lowercase letter or underscore, which can optionally be followed by those same characters or decimal digits.
Local variable names, function parameter names and property names *must... |
Markdown | hhvm/hphp/hack/manual/hack/02-source-code-fundamentals/16-keywords.md | Keywords are reserved; they should not and usually *cannot* be used as names. Other words that shouldn't be used for names are the [built-in types](https://docs.hhvm.com/hack/built-in-types/introduction).
## Keywords
```Hack no-extract
abstract as async attribute await break case catch category child... |
Markdown | hhvm/hphp/hack/manual/hack/02-source-code-fundamentals/19-literals.md | ## Boolean Literals
The literals `true` and `false` represent the Boolean values True and False, respectively. The type of a Boolean
literal is `bool`. For example:
```Hack
$val = true;
if ($val === false) {
// ...
}
```
## Integer Literals
Integer literals can be written as decimal; hexadecimal (with prefix `0x`... |
Markdown | hhvm/hphp/hack/manual/hack/02-source-code-fundamentals/25-scope.md | The same name can designate different things at different places in a program. For each different thing that a name
designates, that name is visible only within a part of the program called that name's *scope*. The following distinct scopes exist:
- Script, which means from the point of declaration/first initializat... |
Markdown | hhvm/hphp/hack/manual/hack/02-source-code-fundamentals/28-constants.md | A constant is a named value. Once defined, the value of the constant *cannot* be changed. A constant can be defined in one
of two ways: using the `const` keyword at the top level, or inside a class or
interface. For example:
```hack
const int MAX_COUNT = 123;
class C {
const float MAX_HEIGHT = 10.5;
const float U... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.