diff --git a/lib/ace/mode/php_completions.js b/lib/ace/mode/php_completions.js index e17a4d67cd4..ae406a9cd9c 100644 --- a/lib/ace/mode/php_completions.js +++ b/lib/ace/mode/php_completions.js @@ -9272,261 +9272,1018 @@ var functionMap = { "string zlib_get_coding_type()", "Returns the coding type used for output compression" ], - // The new functions - // TODO: grab stubs and summary descriptions from php.net - "array_column": ["array_column()", ""], - "boolval": ["boolval()", ""], - "bzclose": ["bzclose()", ""], - "bzflush": ["bzflush()", ""], - "bzwrite": ["bzwrite()", ""], - "checkdnsrr": ["checkdnsrr()", ""], - "chop": ["chop()", ""], - "class_uses": ["class_uses()", ""], - "curl_escape": ["curl_escape()", ""], - "curl_file_create": ["curl_file_create()", ""], - "curl_multi_errno": ["curl_multi_errno()", ""], - "curl_multi_setopt": ["curl_multi_setopt()", ""], - "curl_multi_strerror": ["curl_multi_strerror()", ""], - "curl_pause": ["curl_pause()", ""], - "curl_reset": ["curl_reset()", ""], - "curl_share_close": ["curl_share_close()", ""], - "curl_share_errno": ["curl_share_errno()", ""], - "curl_share_init": ["curl_share_init()", ""], - "curl_share_setopt": ["curl_share_setopt()", ""], - "curl_share_strerror": ["curl_share_strerror()", ""], - "curl_strerror": ["curl_strerror()", ""], - "curl_unescape": ["curl_unescape()", ""], - "date_create_immutable_from_format": ["date_create_immutable_from_format()", ""], - "date_create_immutable": ["date_create_immutable()", ""], - "deflate_add": ["deflate_add()", ""], - "deflate_init": ["deflate_init()", ""], - "delete": ["delete()", ""], - "diskfreespace": ["diskfreespace()", ""], - "doubleval": ["doubleval()", ""], - "enchant_dict_add": ["enchant_dict_add()", ""], - "enchant_dict_is_added": ["enchant_dict_is_added()", ""], - "error_clear_last": ["error_clear_last()", ""], - "eval": ["eval()", ""], - "expect_expectl": ["expect_expectl()", ""], - "expect_popen": ["expect_popen()", ""], - "fdiv": ["fdiv()", ""], - "filter_id": ["filter_id()", ""], - "filter_list": ["filter_list()", ""], - "forward_static_call_array": ["forward_static_call_array()", ""], - "fputs": ["fputs()", ""], - "ftp_append": ["ftp_append()", ""], - "ftp_mlsd": ["ftp_mlsd()", ""], - "ftp_quit": ["ftp_quit()", ""], - "gc_mem_caches": ["gc_mem_caches()", ""], - "gc_status": ["gc_status()", ""], - "get_debug_type": ["get_debug_type()", ""], - "get_declared_traits": ["get_declared_traits()", ""], - "get_required_files": ["get_required_files()", ""], - "get_resource_id": ["get_resource_id()", ""], - "get_resources": ["get_resources()", ""], - "getimagesizefromstring": ["getimagesizefromstring()", ""], - "getmxrr": ["getmxrr()", ""], - "gmp_binomial": ["gmp_binomial()", ""], - "gmp_div": ["gmp_div()", ""], - "gmp_export": ["gmp_export()", ""], - "gmp_import": ["gmp_import()", ""], - "gmp_kronecker": ["gmp_kronecker()", ""], - "gmp_lcm": ["gmp_lcm()", ""], - "gmp_perfect_power": ["gmp_perfect_power()", ""], - "gmp_random_bits": ["gmp_random_bits()", ""], - "gmp_random_range": ["gmp_random_range()", ""], - "gmp_random_seed": ["gmp_random_seed()", ""], - "gmp_root": ["gmp_root()", ""], - "gmp_rootrem": ["gmp_rootrem()", ""], - "gzclose": ["gzclose()", ""], - "gzdecode": ["gzdecode()", ""], - "gzeof": ["gzeof()", ""], - "gzgetc": ["gzgetc()", ""], - "gzgets": ["gzgets()", ""], - "gzgetss": ["gzgetss()", ""], - "gzpassthru": ["gzpassthru()", ""], - "gzputs": ["gzputs()", ""], - "gzread": ["gzread()", ""], - "gzrewind": ["gzrewind()", ""], - "gzseek": ["gzseek()", ""], - "gztell": ["gztell()", ""], - "gzwrite": ["gzwrite()", ""], - "halt_compiler": ["halt_compiler()", ""], - "hash_equals": ["hash_equals()", ""], - "hash_hkdf": ["hash_hkdf()", ""], - "hash_hmac_algos": ["hash_hmac_algos()", ""], - "hash_pbkdf2": ["hash_pbkdf2()", ""], - "header_register_callback": ["header_register_callback()", ""], - "hex2bin": ["hex2bin()", ""], - "hrtime": ["hrtime()", ""], - "http_response_code": ["http_response_code()", ""], - "imageaffine": ["imageaffine()", ""], - "imageaffinematrixconcat": ["imageaffinematrixconcat()", ""], - "imageaffinematrixget": ["imageaffinematrixget()", ""], - "imagebmp": ["imagebmp()", ""], - "imagecreatefrombmp": ["imagecreatefrombmp()", ""], - "imagecreatefromwebp": ["imagecreatefromwebp()", ""], - "imagecrop": ["imagecrop()", ""], - "imagecropauto": ["imagecropauto()", ""], - "imageflip": ["imageflip()", ""], - "imagegetclip": ["imagegetclip()", ""], - "imagegetinterpolation": ["imagegetinterpolation()", ""], - "imageopenpolygon": ["imageopenpolygon()", ""], - "imagepalettetotruecolor": ["imagepalettetotruecolor()", ""], - "imageresolution": ["imageresolution()", ""], - "imagescale": ["imagescale()", ""], - "imagesetclip": ["imagesetclip()", ""], - "imagesetinterpolation": ["imagesetinterpolation()", ""], - "imagewebp": ["imagewebp()", ""], - "imap_create": ["imap_create()", ""], - "imap_fetchmime": ["imap_fetchmime()", ""], - "imap_fetchtext": ["imap_fetchtext()", ""], - "imap_header": ["imap_header()", ""], - "imap_listmailbox": ["imap_listmailbox()", ""], - "imap_listsubscribed": ["imap_listsubscribed()", ""], - "imap_rename": ["imap_rename()", ""], - "imap_scan": ["imap_scan()", ""], - "imap_scanmailbox": ["imap_scanmailbox()", ""], - "ini_alter": ["ini_alter()", ""], - "intdiv": ["intdiv()", ""], - "is_double": ["is_double()", ""], - "is_int": ["is_int()", ""], - "is_integer": ["is_integer()", ""], - "is_iterable": ["is_iterable()", ""], - "is_real": ["is_real()", ""], - "is_soap_fault": ["is_soap_fault()", ""], - "is_tainted": ["is_tainted()", ""], - "is_writeable": ["is_writeable()", ""], - "json_last_error_msg": ["json_last_error_msg()", ""], - "key_exists": ["key_exists()", ""], - "lchown": ["lchown()", ""], - "libxml_set_external_entity_loader": ["libxml_set_external_entity_loader()", ""], - "mb_chr": ["mb_chr()", ""], - "mb_ereg_replace_callback": ["mb_ereg_replace_callback()", ""], - "mb_ord": ["mb_ord()", ""], - "mb_scrub": ["mb_scrub()", ""], - "mb_str_split": ["mb_str_split()", ""], - "memcache_debug": ["memcache_debug()", ""], - "mysql_db_name": ["mysql_db_name()", ""], - "mysql_tablename": ["mysql_tablename()", ""], - "mysql_xdevapi_expression": ["mysql_xdevapi_expression()", ""], - "mysql_xdevapi_getsession": ["mysql_xdevapi_getsession()", ""], - "mysqli_escape_string": ["mysqli_escape_string()", ""], - "mysqli_execute": ["mysqli_execute()", ""], - "mysqli_get_links_stats": ["mysqli_get_links_stats()", ""], - "mysqli_set_opt": ["mysqli_set_opt()", ""], - "ob_tidyhandler": ["ob_tidyhandler()", ""], - "odbc_do": ["odbc_do()", ""], - "odbc_field_precision": ["odbc_field_precision()", ""], - "opcache_compile_file": ["opcache_compile_file()", ""], - "opcache_get_configuration": ["opcache_get_configuration()", ""], - "opcache_get_status": ["opcache_get_status()", ""], - "opcache_invalidate": ["opcache_invalidate()", ""], - "opcache_is_script_cached": ["opcache_is_script_cached()", ""], - "opcache_reset": ["opcache_reset()", ""], - "password_algos": ["password_algos()", ""], - "password_get_info": ["password_get_info()", ""], - "password_hash": ["password_hash()", ""], - "password_needs_rehash": ["password_needs_rehash()", ""], - "password_verify": ["password_verify()", ""], - "pcntl_async_signals": ["pcntl_async_signals()", ""], - "pcntl_errno": ["pcntl_errno()", ""], - "pcntl_get_last_error": ["pcntl_get_last_error()", ""], - "pcntl_signal_get_handler": ["pcntl_signal_get_handler()", ""], - "pcntl_sigwaitinfo": ["pcntl_sigwaitinfo()", ""], - "pcntl_strerror": ["pcntl_strerror()", ""], - "pg_connect_poll": ["pg_connect_poll()", ""], - "pg_consume_input": ["pg_consume_input()", ""], - "pg_escape_identifier": ["pg_escape_identifier()", ""], - "pg_escape_literal": ["pg_escape_literal()", ""], - "pg_flush": ["pg_flush()", ""], - "pg_lo_truncate": ["pg_lo_truncate()", ""], - "pg_socket": ["pg_socket()", ""], - "pos": ["pos()", ""], - "posix_errno": ["posix_errno()", ""], - "posix_setrlimit": ["posix_setrlimit()", ""], - "preg_last_error_msg": ["preg_last_error_msg()", ""], - "preg_replace_callback_array": ["preg_replace_callback_array()", ""], - "ps_translate": ["ps_translate()", ""], - "random_bytes": ["random_bytes()", ""], - "random_int": ["random_int()", ""], - "read_exif_data": ["read_exif_data()", ""], - "recode": ["recode()", ""], - "session_abort": ["session_abort()", ""], - "session_commit": ["session_commit()", ""], - "session_create_id": ["session_create_id()", ""], - "session_gc": ["session_gc()", ""], - "session_register_shutdown": ["session_register_shutdown()", ""], - "session_reset": ["session_reset()", ""], - "session_status": ["session_status()", ""], - "set_file_buffer": ["set_file_buffer()", ""], - "show_source": ["show_source()", ""], - "sizeof": ["sizeof()", ""], - "snmp_set_oid_numeric_print": ["snmp_set_oid_numeric_print()", ""], - "snmpwalkoid": ["snmpwalkoid()", ""], - "socket_addrinfo_bind": ["socket_addrinfo_bind()", ""], - "socket_addrinfo_connect": ["socket_addrinfo_connect()", ""], - "socket_addrinfo_explain": ["socket_addrinfo_explain()", ""], - "socket_addrinfo_lookup": ["socket_addrinfo_lookup()", ""], - "socket_cmsg_space": ["socket_cmsg_space()", ""], - "socket_export_stream": ["socket_export_stream()", ""], - "socket_get_status": ["socket_get_status()", ""], - "socket_getopt": ["socket_getopt()", ""], - "socket_import_stream": ["socket_import_stream()", ""], - "socket_recvmsg": ["socket_recvmsg()", ""], - "socket_sendmsg": ["socket_sendmsg()", ""], - "socket_set_blocking": ["socket_set_blocking()", ""], - "socket_set_timeout": ["socket_set_timeout()", ""], - "socket_setopt": ["socket_setopt()", ""], - "socket_wsaprotocol_info_export": ["socket_wsaprotocol_info_export()", ""], - "socket_wsaprotocol_info_import": ["socket_wsaprotocol_info_import()", ""], - "socket_wsaprotocol_info_release": ["socket_wsaprotocol_info_release()", ""], - "spl_object_id": ["spl_object_id()", ""], - "sqlsrv_begin_transaction": ["sqlsrv_begin_transaction()", ""], - "sqlsrv_cancel": ["sqlsrv_cancel()", ""], - "sqlsrv_client_info": ["sqlsrv_client_info()", ""], - "sqlsrv_close": ["sqlsrv_close()", ""], - "sqlsrv_commit": ["sqlsrv_commit()", ""], - "sqlsrv_configure": ["sqlsrv_configure()", ""], - "sqlsrv_connect": ["sqlsrv_connect()", ""], - "sqlsrv_errors": ["sqlsrv_errors()", ""], - "sqlsrv_execute": ["sqlsrv_execute()", ""], - "sqlsrv_fetch_array": ["sqlsrv_fetch_array()", ""], - "sqlsrv_fetch_object": ["sqlsrv_fetch_object()", ""], - "sqlsrv_fetch": ["sqlsrv_fetch()", ""], - "sqlsrv_field_metadata": ["sqlsrv_field_metadata()", ""], - "sqlsrv_free_stmt": ["sqlsrv_free_stmt()", ""], - "sqlsrv_get_config": ["sqlsrv_get_config()", ""], - "sqlsrv_get_field": ["sqlsrv_get_field()", ""], - "sqlsrv_has_rows": ["sqlsrv_has_rows()", ""], - "sqlsrv_next_result": ["sqlsrv_next_result()", ""], - "sqlsrv_num_fields": ["sqlsrv_num_fields()", ""], - "sqlsrv_num_rows": ["sqlsrv_num_rows()", ""], - "sqlsrv_prepare": ["sqlsrv_prepare()", ""], - "sqlsrv_query": ["sqlsrv_query()", ""], - "sqlsrv_rollback": ["sqlsrv_rollback()", ""], - "sqlsrv_rows_affected": ["sqlsrv_rows_affected()", ""], - "sqlsrv_send_stream_data": ["sqlsrv_send_stream_data()", ""], - "sqlsrv_server_info": ["sqlsrv_server_info()", ""], - "str_contains": ["str_contains()", ""], - "str_ends_with": ["str_ends_with()", ""], - "str_starts_with": ["str_starts_with()", ""], - "stream_isatty": ["stream_isatty()", ""], - "stream_notification_callback": ["stream_notification_callback()", ""], - "stream_register_wrapper": ["stream_register_wrapper()", ""], - "stream_set_chunk_size": ["stream_set_chunk_size()", ""], - "stream_set_read_buffer": ["stream_set_read_buffer()", ""], - "tcpwrap_check": ["tcpwrap_check()", ""], - "trait_exists": ["trait_exists()", ""], - "use_soap_error_handler": ["use_soap_error_handler()", ""], - "user_error": ["user_error()", ""], - "yaml_emit_file": ["yaml_emit_file()", ""], - "yaml_emit": ["yaml_emit()", ""], - "yaml_parse_file": ["yaml_parse_file()", ""], - "yaml_parse_url": ["yaml_parse_url()", ""], - "yaml_parse": ["yaml_parse()", ""], - "zlib_decode": ["zlib_decode()", ""], - "zlib_encode": ["zlib_encode()", ""] + "array_column": [ + "array_column(array $array, int|string|null $column_key, int|string|null $index_key = null): array", + "Return the values from a single column in the input array" + ], + "boolval": [ + "boolval(mixed $value): bool", + "Get the boolean value of a variable" + ], + "bzclose": [ + "bzclose(resource $bz): bool", + "Close a bzip2 file" + ], + "bzflush": [ + "bzflush(resource $bz): bool", + "Do nothing" + ], + "bzwrite": [ + "bzwrite(resource $bz, string $data, ?int $length = null): int|false", + "Binary safe bzip2 file write" + ], + "checkdnsrr": [ + "checkdnsrr(string $hostname, string $type = "MX"): bool", + "Check DNS records corresponding to a given Internet host name or IP address" + ], + "chop": [ + "chop()", + "Alias of rtrim()" + ], + "class_uses": [ + "class_uses(object|string $object_or_class, bool $autoload = true): array|false", + "" + ], + "curl_escape": [ + "curl_escape(CurlHandle $handle, string $string): string|false", + "URL encodes the given string" + ], + "curl_file_create": [ + "curl_file_create()", + "Create a CURLFile object" + ], + "curl_multi_errno": [ + "curl_multi_errno(CurlMultiHandle $multi_handle): int", + "Return the last multi curl error number" + ], + "curl_multi_setopt": [ + "curl_multi_setopt(CurlMultiHandle $multi_handle, int $option, mixed $value): bool", + "Set an option for the cURL multi handle" + ], + "curl_multi_strerror": [ + "curl_multi_strerror(int $error_code): ?string", + "Return string describing error code" + ], + "curl_pause": [ + "curl_pause(CurlHandle $handle, int $flags): int", + "Pause and unpause a connection" + ], + "curl_reset": [ + "curl_reset(CurlHandle $handle): void", + "Reset all options of a libcurl session handle" + ], + "curl_share_close": [ + "curl_share_close(CurlShareHandle $share_handle): void", + "Close a cURL share handle" + ], + "curl_share_errno": [ + "curl_share_errno(CurlShareHandle $share_handle): int", + "Return the last share curl error number" + ], + "curl_share_init": [ + "curl_share_init(): CurlShareHandle", + "Initialize a cURL share handle" + ], + "curl_share_setopt": [ + "curl_share_setopt(CurlShareHandle $share_handle, int $option, mixed $value): bool", + "Set an option for a cURL share handle" + ], + "curl_share_strerror": [ + "curl_share_strerror(int $error_code): ?string", + "Return string describing the given error code" + ], + "curl_strerror": [ + "curl_strerror(int $error_code): ?string", + "Return string describing the given error code" + ], + "curl_unescape": [ + "curl_unescape(CurlHandle $handle, string $string): string|false", + "Decodes the given URL encoded string" + ], + "date_create_immutable_from_format": [ + "date_create_immutable_from_format()", + "Alias of DateTimeImmutable::createFromFormat()" + ], + "date_create_immutable": [ + "date_create_immutable()", + "Alias of DateTimeImmutable::__construct()" + ], + "deflate_add": [ + "deflate_add(DeflateContext $context, string $data, int $flush_mode = ZLIB_SYNC_FLUSH): string|false", + "Incrementally deflate data" + ], + "deflate_init": [ + "deflate_init(int $encoding, array $options = []): DeflateContext|false", + "Initialize an incremental deflate context" + ], + "delete": [ + "delete()", + "See unlink()" + ], + "diskfreespace": [ + "diskfreespace()", + "Alias of disk_free_space()" + ], + "doubleval": [ + "doubleval()", + "Alias of floatval()" + ], + "enchant_dict_add": [ + "enchant_dict_add(EnchantDictionary $dictionary, string $word): void", + "Add a word to personal word list" + ], + "enchant_dict_is_added": [ + "enchant_dict_is_added(EnchantDictionary $dictionary, string $word): bool", + "Whether or not 'word' exists in this spelling-session" + ], + "error_clear_last": [ + "error_clear_last(): void", + "Clear the most recent error" + ], + "eval": [ + "eval(string $code): mixed", + "Evaluate a string as PHP code" + ], + "expect_expectl": [ + "expect_expectl(resource $expect, array $cases, array &$match = ?): int", + "" + ], + "expect_popen": [ + "expect_popen(string $command): resource", + "" + ], + "fdiv": [ + "fdiv(float $num1, float $num2): float", + "Divides two numbers, according to IEEE 754" + ], + "filter_id": [ + "filter_id(string $name): int|false", + "Returns the filter ID belonging to a named filter" + ], + "filter_list": [ + "filter_list(): array", + "Returns a list of all supported filters" + ], + "forward_static_call_array": [ + "forward_static_call_array(callable $callback, array $args): mixed", + "Call a static method and pass the arguments as array" + ], + "fputs": [ + "fputs()", + "Alias of fwrite()" + ], + "ftp_append": [ + "ftp_append(FTP\\Connection $ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY): bool", + "Append the contents of a file to another file on the FTP server" + ], + "ftp_mlsd": [ + "ftp_mlsd(FTP\\Connection $ftp, string $directory): array|false", + "Returns a list of files in the given directory" + ], + "ftp_quit": [ + "ftp_quit()", + "Alias of ftp_close()" + ], + "gc_mem_caches": [ + "gc_mem_caches(): int", + "" + ], + "gc_status": [ + "gc_status(): array", + "Gets information about the garbage collector" + ], + "get_debug_type": [ + "get_debug_type(mixed $value): string", + "Gets the type name of a variable in a way that is suitable for debugging" + ], + "get_declared_traits": [ + "get_declared_traits(): array", + "Returns an array of all declared traits" + ], + "get_required_files": [ + "get_required_files()", + "Alias of get_included_files()" + ], + "get_resource_id": [ + "get_resource_id(resource $resource): int", + "" + ], + "get_resources": [ + "get_resources(?string $type = null): array", + "Returns active resources" + ], + "getimagesizefromstring": [ + "getimagesizefromstring(string $string, array &$image_info = null): array|false", + "Get the size of an image from a string" + ], + "getmxrr": [ + "getmxrr(string $hostname, array &$hosts, array &$weights = null): bool", + "Get MX records corresponding to a given Internet host name" + ], + "gmp_binomial": [ + "gmp_binomial(GMP|int|string $n, int $k): GMP", + "Calculates binomial coefficient" + ], + "gmp_div": [ + "gmp_div()", + "Alias of gmp_div_q()" + ], + "gmp_export": [ + "gmp_export(GMP|int|string $num, int $word_size = 1, int $flags = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): string", + "Export to a binary string" + ], + "gmp_import": [ + "gmp_import(string $data, int $word_size = 1, int $flags = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): GMP", + "Import from a binary string" + ], + "gmp_kronecker": [ + "gmp_kronecker(GMP|int|string $num1, GMP|int|string $num2): int", + "Kronecker symbol" + ], + "gmp_lcm": [ + "gmp_lcm(GMP|int|string $num1, GMP|int|string $num2): GMP", + "Calculate LCM" + ], + "gmp_perfect_power": [ + "gmp_perfect_power(GMP|int|string $num): bool", + "Perfect power check" + ], + "gmp_random_bits": [ + "gmp_random_bits(int $bits): GMP", + "Random number" + ], + "gmp_random_range": [ + "gmp_random_range(GMP|int|string $min, GMP|int|string $max): GMP", + "Random number" + ], + "gmp_random_seed": [ + "gmp_random_seed(GMP|int|string $seed): void", + "Sets the RNG seed" + ], + "gmp_root": [ + "gmp_root(GMP|int|string $num, int $nth): GMP", + "Take the integer part of nth root" + ], + "gmp_rootrem": [ + "gmp_rootrem(GMP|int|string $num, int $nth): array", + "Take the integer part and remainder of nth root" + ], + "gzclose": [ + "gzclose(resource $stream): bool", + "Close an open gz-file pointer" + ], + "gzdecode": [ + "gzdecode(string $data, int $max_length = 0): string|false", + "Decodes a gzip compressed string" + ], + "gzeof": [ + "gzeof(resource $stream): bool", + "Test for EOF on a gz-file pointer" + ], + "gzgetc": [ + "gzgetc(resource $stream): string|false", + "Get character from gz-file pointer" + ], + "gzgets": [ + "gzgets(resource $stream, ?int $length = null): string|false", + "Get line from file pointer" + ], + "gzgetss": [ + "gzgetss(resource $zp, int $length, string $allowable_tags = ?): string", + "" + ], + "gzpassthru": [ + "gzpassthru(resource $stream): int", + "" + ], + "gzputs": [ + "gzputs()", + "Alias of gzwrite()" + ], + "gzread": [ + "gzread(resource $stream, int $length): string|false", + "Binary-safe gz-file read" + ], + "gzrewind": [ + "gzrewind(resource $stream): bool", + "Rewind the position of a gz-file pointer" + ], + "gzseek": [ + "gzseek(resource $stream, int $offset, int $whence = SEEK_SET): int", + "Seek on a gz-file pointer" + ], + "gztell": [ + "gztell(resource $stream): int|false", + "Tell gz-file pointer read/write position" + ], + "gzwrite": [ + "gzwrite(resource $stream, string $data, ?int $length = null): int|false", + "Binary-safe gz-file write" + ], + "halt_compiler": [ + "__halt_compiler(): void", + "" + ], + "hash_equals": [ + "hash_equals(string $known_string, string $user_string): bool", + "Timing attack safe string comparison" + ], + "hash_hkdf": [ + "hash_hkdf(string $algo, string $key, int $length = 0, string $info = \"\", string $salt = \"\"): string", + "Generate a HKDF key derivation of a supplied key input" + ], + "hash_hmac_algos": [ + "hash_hmac_algos(): array", + "Return a list of registered hashing algorithms suitable for hash_hmac" + ], + "hash_pbkdf2": [ + "hash_pbkdf2(string $algo, string $password, string $salt, int $iterations, int $length = 0, bool $binary = false): string", + "Generate a PBKDF2 key derivation of a supplied password" + ], + "header_register_callback": [ + "header_register_callback(callable $callback): bool", + "Call a header function" + ], + "hex2bin": [ + "hex2bin(string $string): string|false", + "Decodes a hexadecimally encoded binary string" + ], + "hrtime": [ + "hrtime(bool $as_number = false): array|int|float|false", + "Get the system's high resolution time" + ], + "http_response_code": [ + "http_response_code(int $response_code = 0): int|bool", + "Get or Set the HTTP response code" + ], + "imageaffine": [ + "imageaffine(GdImage $image, array $affine, ?array $clip = null): GdImage|false", + "Return an image containing the affine transformed src image, using an optional clipping area" + ], + "imageaffinematrixconcat": [ + "imageaffinematrixconcat(array $matrix1, array $matrix2): array|false", + "Concatenate two affine transformation matrices" + ], + "imageaffinematrixget": [ + "imageaffinematrixget(int $type, array|float $options): array|false", + "Get an affine transformation matrix" + ], + "imagebmp": [ + "imagebmp(GdImage $image, resource|string|null $file = null, bool $compressed = true): bool", + "Output a BMP image to browser or file" + ], + "imagecreatefrombmp": [ + "imagecreatefrombmp(string $filename): GdImage|false", + "Create a new image from file or URL" + ], + "imagecreatefromwebp": [ + "imagecreatefromwebp(string $filename): GdImage|false", + "Create a new image from file or URL" + ], + "imagecrop": [ + "imagecrop(GdImage $image, array $rectangle): GdImage|false", + "Crop an image to the given rectangle" + ], + "imagecropauto": [ + "imagecropauto(GdImage $image, int $mode = IMG_CROP_DEFAULT, float $threshold = 0.5, int $color = -1): GdImage|false", + "Crop an image automatically using one of the available modes" + ], + "imageflip": [ + "imageflip(GdImage $image, int $mode): bool", + "Flips an image using a given mode" + ], + "imagegetclip": [ + "imagegetclip(GdImage $image): array", + "Get the clipping rectangle" + ], + "imagegetinterpolation": [ + "imagegetinterpolation(GdImage $image): int", + "Get the interpolation method" + ], + "imageopenpolygon": [ + "imageopenpolygon(GdImage $image, array $points, int $color): bool", + "Draws an open polygon" + ], + "imagepalettetotruecolor": [ + "imagepalettetotruecolor(GdImage $image): bool", + "Converts a palette based image to true color" + ], + "imageresolution": [ + "imageresolution(GdImage $image, ?int $resolution_x = null, ?int $resolution_y = null): array|bool", + "Get or set the resolution of the image" + ], + "imagescale": [ + "imagescale(GdImage $image, int $width, int $height = -1, int $mode = IMG_BILINEAR_FIXED): GdImage|false", + "Scale an image using the given new width and height" + ], + "imagesetclip": [ + "imagesetclip(GdImage $image, int $x1, int $y1, int $x2, int $y2): bool", + "Set the clipping rectangle" + ], + "imagesetinterpolation": [ + "imagesetinterpolation(GdImage $image, int $method = IMG_BILINEAR_FIXED): bool", + "Set the interpolation method" + ], + "imagewebp": [ + "imagewebp(GdImage $image, resource|string|null $file = null, int $quality = -1): bool", + "Output a WebP image to browser or file" + ], + "imap_create": [ + "", + "Alias of imap_createmailbox()" + ], + "imap_fetchmime": [ + "imap_fetchmime(IMAP\\Connection $imap, int $message_num, string $section, int $flags = 0): string|false", + "Fetch MIME headers for a particular section of the message" + ], + "imap_fetchtext": [ + "imap_fetchtext()", + "Alias of imap_body()" + ], + "imap_header": [ + "imap_header()", + "Alias of imap_headerinfo()" + ], + "imap_listmailbox": [ + "imap_listmailbox()", + "Alias of imap_list()" + ], + "imap_listsubscribed": [ + "imap_listsubscribed()", + "Alias of imap_lsub()" + ], + "imap_rename": [ + "imap_rename()", + "Alias of imap_renamemailbox()" + ], + "imap_scan": [ + "imap_scan()", + "Alias of imap_listscan()" + ], + "imap_scanmailbox": [ + "imap_scanmailbox()", + "Alias of imap_listscan()" + ], + "ini_alter": [ + "ini_alter()", + "Alias of ini_set()" + ], + "intdiv": [ + "intdiv(int $num1, int $num2): int", + "Integer division" + ], + "is_double": [ + "is_double()", + "Alias of is_float()" + ], + "is_int": [ + "is_int(mixed $value): bool", + "Find whether the type of a variable is integer" + ], + "is_integer": [ + "is_integer()", + "Alias of is_int()" + ], + "is_iterable": [ + "is_iterable(mixed $value): bool", + "" + ], + "is_real": [ + "is_real()", + "Alias of is_float()" + ], + "is_soap_fault": [ + "is_soap_fault(mixed $object): bool", + "Checks if a SOAP call has failed" + ], + "is_tainted": [ + "is_tainted(string $string): bool", + "Checks whether a string is tainted" + ], + "is_writeable": [ + "is_writeable()", + "Alias of is_writable()" + ], + "json_last_error_msg": [ + "json_last_error_msg(): string", + "Returns the error string of the last json_encode() or json_decode() call" + ], + "key_exists": [ + "key_exists()", + "Alias of array_key_exists()" + ], + "lchown": [ + "lchown(string $filename, string|int $user): bool", + "Changes user ownership of symlink" + ], + "libxml_set_external_entity_loader": [ + "libxml_set_external_entity_loader(?callable $resolver_function): bool", + "Changes the default external entity loader" + ], + "mb_chr": [ + "mb_chr(int $codepoint, ?string $encoding = null): string|false", + "Return character by Unicode code point value" + ], + "mb_ereg_replace_callback": [ + "mb_ereg_replace_callback(string $pattern, callable $callback, string $string, ?string $options = null): string|false|null", + "" + ], + "mb_ord": [ + "mb_ord(string $string, ?string $encoding = null): int|false", + "Get Unicode code point of character" + ], + "mb_scrub": [ + "mb_scrub(string $string, ?string $encoding = null): string", + "Description" + ], + "mb_str_split": [ + "mb_str_split(string $string, int $length = 1, ?string $encoding = null): array", + "Given a multibyte string, return an array of its characters" + ], + "memcache_debug": [ + "memcache_debug(bool $on_off): bool", + "Turn debug output on/off" + ], + "mysql_db_name": [ + "mysql_db_name(resource $result, int $row, mixed $field = NULL): string", + "Retrieves database name from the call to mysql_list_dbs()" + ], + "mysql_tablename": [ + "mysql_tablename(resource $result, int $i): string|false", + "Get table name of field" + ], + "mysql_xdevapi_expression": [ + "mysql_xdevapi\\expression(string $expression): object", + "Bind prepared statement variables as parameters" + ], + "mysql_xdevapi_getsession": [ + "mysql_xdevapi\\getSession(string $uri): mysql_xdevapi\\Session", + "Connect to a MySQL server" + ], + "mysqli_escape_string": [ + "mysqli_escape_string()", + "Alias of mysqli_real_escape_string()" + ], + "mysqli_execute": [ + "mysqli_execute()", + "Alias for mysqli_stmt_execute()" + ], + "mysqli_get_links_stats": [ + "mysqli_get_links_stats(): array", + "Return information about open and cached links" + ], + "mysqli_set_opt": [ + "mysqli_set_opt()", + "Alias of mysqli_options()" + ], + "ob_tidyhandler": [ + "ob_tidyhandler(string $input, int $mode = ?): string", + "ob_start callback function to repair the buffer" + ], + "odbc_do": [ + "odbc_do()", + "Alias of odbc_exec()" + ], + "odbc_field_precision": [ + "odbc_field_precision()", + "Alias of odbc_field_len()" + ], + "opcache_compile_file": [ + "opcache_compile_file(string $filename): bool", + "Compiles and caches a PHP script without executing it" + ], + "opcache_get_configuration": [ + "opcache_get_configuration(): array|false", + "Get configuration information about the cache" + ], + "opcache_get_status": [ + "opcache_get_status(bool $include_scripts = true): array|false", + "Get status information about the cache" + ], + "opcache_invalidate": [ + "opcache_invalidate(string $filename, bool $force = false): bool", + "Invalidates a cached script" + ], + "opcache_is_script_cached": [ + "opcache_is_script_cached(string $filename): bool", + "Tells whether a script is cached in OPCache" + ], + "opcache_reset": [ + "opcache_reset(): bool", + "Resets the contents of the opcode cache" + ], + "password_algos": [ + "password_algos(): array", + "Get available password hashing algorithm IDs" + ], + "password_get_info": [ + "password_get_info(string $hash): array", + "Returns information about the given hash" + ], + "password_hash": [ + "password_hash(string $password, string|int|null $algo, array $options = []): string", + "Creates a password hash" + ], + "password_needs_rehash": [ + "password_needs_rehash(string $hash, string|int|null $algo, array $options = []): bool", + "Checks if the given hash matches the given options" + ], + "password_verify": [ + "password_verify(string $password, string $hash): bool", + "Verifies that a password matches a hash" + ], + "pcntl_async_signals": [ + "pcntl_async_signals(?bool $enable = null): bool", + "Enable/disable asynchronous signal handling or return the old setting" + ], + "pcntl_errno": [ + "pcntl_errno()", + "Alias of pcntl_get_last_error()" + ], + "pcntl_get_last_error": [ + "pcntl_get_last_error(): int", + "Retrieve the error number set by the last pcntl function which failed" + ], + "pcntl_signal_get_handler": [ + "pcntl_signal_get_handler(int $signal): callable|int", + "Get the current handler for specified signal" + ], + "pcntl_sigwaitinfo": [ + "pcntl_sigwaitinfo(array $signals, array &$info = []): int|false", + "Waits for signals" + ], + "pcntl_strerror": [ + "pcntl_strerror(int $error_code): string", + "Retrieve the system error message associated with the given errno" + ], + "pg_connect_poll": [ + "pg_connect_poll(PgSql\\Connection $connection): int", + "" + ], + "pg_consume_input": [ + "pg_consume_input(PgSql\\Connection $connection): bool", + "Reads input on the connection" + ], + "pg_escape_identifier": [ + "pg_escape_identifier(PgSql\\Connection $connection = ?, string $data): string", + "" + ], + "pg_escape_literal": [ + "pg_escape_literal(PgSql\\Connection $connection = ?, string $data): string", + "" + ], + "pg_flush": [ + "pg_flush(PgSql\\Connection $connection): int|bool", + "Flush outbound query data on the connection" + ], + "pg_lo_truncate": [ + "pg_lo_truncate(PgSql\\Lob $lob, int $size): bool", + "" + ], + "pg_socket": [ + "pg_socket(PgSql\\Connection $connection): resource|false", + "" + ], + "pos": [ + "pos()", + "Alias of current()" + ], + "posix_errno": [ + "posix_errno()", + "Alias of posix_get_last_error()" + ], + "posix_setrlimit": [ + "posix_setrlimit(int $resource, int $soft_limit, int $hard_limit): bool", + "Set system resource limits" + ], + "preg_last_error_msg": [ + "preg_last_error_msg(): string", + "Returns the error message of the last PCRE regex execution" + ], + "preg_replace_callback_array": [ + "preg_replace_callback_array(array $pattern, string|array $subject, int $limit = -1, int &$count = null, int $flags = 0): string|array|null", + "Perform a regular expression search and replace using callbacks" + ], + "ps_translate": [ + "ps_translate(resource $psdoc, float $x, float $y): bool", + "Sets translation" + ], + "random_bytes": [ + "random_bytes(int $length): string", + "Generates cryptographically secure pseudo-random bytes" + ], + "random_int": [ + "random_int(int $min, int $max): int", + "Generates cryptographically secure pseudo-random integers" + ], + "read_exif_data": [ + "read_exif_data()", + "Alias of exif_read_data()" + ], + "recode": [ + "recode()", + "Alias of recode_string()" + ], + "session_abort": [ + "session_abort(): bool", + "Discard session array changes and finish session" + ], + "session_commit": [ + "session_commit()", + "Alias of session_write_close()" + ], + "session_create_id": [ + "session_create_id(string $prefix = \"\"): string|false", + "Create new session id" + ], + "session_gc": [ + "session_gc(): int|false", + "Perform session data garbage collection" + ], + "session_register_shutdown": [ + "session_register_shutdown(): void", + "Session shutdown function" + ], + "session_reset": [ + "session_reset(): bool", + "Re-initialize session array with original values" + ], + "session_status": [ + "session_status(): int", + "Returns the current session status" + ], + "set_file_buffer": [ + "set_file_buffer()", + "Alias of stream_set_write_buffer()" + ], + "show_source": [ + "show_source()", + "Alias of highlight_file()" + ], + "sizeof": [ + "sizeof()", + "Alias of count()" + ], + "snmp_set_oid_numeric_print": [ + "snmp_set_oid_numeric_print(int $format): bool", + "" + ], + "snmpwalkoid": [ + "snmpwalkoid(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|false", + "" + ], + "socket_addrinfo_bind": [ + "socket_addrinfo_bind(AddressInfo $address): Socket|false", + "Create and bind to a socket from a given addrinfo" + ], + "socket_addrinfo_connect": [ + "socket_addrinfo_connect(AddressInfo $address): Socket|false", + "Create and connect to a socket from a given addrinfo" + ], + "socket_addrinfo_explain": [ + "socket_addrinfo_explain(AddressInfo $address): array", + "Get information about addrinfo" + ], + "socket_addrinfo_lookup": [ + "socket_addrinfo_lookup(string $host, ?string $service = null, array $hints = []): array|false", + "Get array with contents of getaddrinfo about the given hostname" + ], + "socket_cmsg_space": [ + "socket_cmsg_space(int $level, int $type, int $num = 0): ?int", + "Calculate message buffer size" + ], + "socket_export_stream": [ + "socket_export_stream(Socket $socket): resource|false", + "Export a socket into a stream that encapsulates a socket" + ], + "socket_get_status": [ + "socket_get_status()", + "Alias of stream_get_meta_data()" + ], + "socket_getopt": [ + "socket_getopt()", + "Alias of socket_get_option()" + ], + "socket_import_stream": [ + "socket_import_stream(resource $stream): Socket|false", + "Import a stream" + ], + "socket_recvmsg": [ + "socket_recvmsg(Socket $socket, array &$message, int $flags = 0): int|false", + "Read a message" + ], + "socket_sendmsg": [ + "socket_sendmsg(Socket $socket, array $message, int $flags = 0): int|false", + "Send a message" + ], + "socket_set_blocking": [ + "socket_set_blocking()", + "Alias of stream_set_blocking()" + ], + "socket_set_timeout": [ + "socket_set_timeout()", + "Alias of stream_set_timeout()" + ], + "socket_setopt": [ + "socket_setopt()", + "Alias of socket_set_option()" + ], + "socket_wsaprotocol_info_export": [ + "socket_wsaprotocol_info_export(Socket $socket, int $process_id): string|false", + "Exports the WSAPROTOCOL_INFO Structure" + ], + "socket_wsaprotocol_info_import": [ + "socket_wsaprotocol_info_import(string $info_id): Socket|false", + "Imports a Socket from another Process" + ], + "socket_wsaprotocol_info_release": [ + "socket_wsaprotocol_info_release(string $info_id): bool", + "Releases an exported WSAPROTOCOL_INFO Structure" + ], + "spl_object_id": [ + "spl_object_id(object $object): int", + "" + ], + "sqlsrv_begin_transaction": [ + "sqlsrv_begin_transaction(resource $conn): bool", + "Begins a database transaction" + ], + "sqlsrv_cancel": [ + "sqlsrv_cancel(resource $stmt): bool", + "Cancels a statement" + ], + "sqlsrv_client_info": [ + "sqlsrv_client_info(resource $conn): array", + "Returns information about the client and specified connection" + ], + "sqlsrv_close": [ + "sqlsrv_close(resource $conn): bool", + "Closes an open connection and releases resourses associated with the connection" + ], + "sqlsrv_commit": [ + "sqlsrv_commit(resource $conn): bool", + "Commits a transaction that was begun with sqlsrv_begin_transaction()" + ], + "sqlsrv_configure": [ + "sqlsrv_configure(string $setting, mixed $value): bool", + "Changes the driver error handling and logging configurations" + ], + "sqlsrv_connect": [ + "sqlsrv_connect(string $serverName, array $connectionInfo = ?): resource", + "Opens a connection to a Microsoft SQL Server database" + ], + "sqlsrv_errors": [ + "sqlsrv_errors(int $errorsOrWarnings = ?): mixed", + "Returns error and warning information about the last SQLSRV operation performed" + ], + "sqlsrv_execute": [ + "sqlsrv_execute(resource $stmt): bool", + "Executes a statement prepared with sqlsrv_prepare()" + ], + "sqlsrv_fetch_array": [ + "sqlsrv_fetch_array(resource $stmt, int $fetchType = ?, int $row = ?, int $offset = ?): array", + "Returns a row as an array" + ], + "sqlsrv_fetch_object": [ + "sqlsrv_fetch_object(resource $stmt, string $className = ?, array $ctorParams = ?, int $row = ?, int $offset = ?): mixed", + "Retrieves the next row of data in a result set as an object" + ], + "sqlsrv_fetch": [ + "sqlsrv_fetch(resource $stmt, int $row = ?, int $offset = ?): mixed", + "Makes the next row in a result set available for reading" + ], + "sqlsrv_field_metadata": [ + "sqlsrv_field_metadata(resource $stmt): mixed", + "" + ], + "sqlsrv_free_stmt": [ + "sqlsrv_free_stmt(resource $stmt): bool", + "Frees all resources for the specified statement" + ], + "sqlsrv_get_config": [ + "sqlsrv_get_config(string $setting): mixed", + "Returns the value of the specified configuration setting" + ], + "sqlsrv_get_field": [ + "sqlsrv_get_field(resource $stmt, int $fieldIndex, int $getAsType = ?): mixed", + "Gets field data from the currently selected row" + ], + "sqlsrv_has_rows": [ + "sqlsrv_has_rows(resource $stmt): bool", + "Indicates whether the specified statement has rows" + ], + "sqlsrv_next_result": [ + "sqlsrv_next_result(resource $stmt): mixed", + "Makes the next result of the specified statement active" + ], + "sqlsrv_num_fields": [ + "sqlsrv_num_fields(resource $stmt): mixed", + "Retrieves the number of fields (columns) on a statement" + ], + "sqlsrv_num_rows": [ + "sqlsrv_num_rows(resource $stmt): mixed", + "Retrieves the number of rows in a result set" + ], + "sqlsrv_prepare": [ + "sqlsrv_prepare(resource $conn, string $sql, array $params = ?, array $options = ?): mixed", + "Prepares a query for execution" + ], + "sqlsrv_query": [ + "sqlsrv_query(resource $conn, string $sql, array $params = ?, array $options = ?): mixed", + "Prepares and executes a query" + ], + "sqlsrv_rollback": [ + "sqlsrv_rollback(resource $conn): bool", + "" + ], + "sqlsrv_rows_affected": [ + "sqlsrv_rows_affected(resource $stmt): int|false", + "" + ], + "sqlsrv_send_stream_data": [ + "sqlsrv_send_stream_data(resource $stmt): bool", + "Sends data from parameter streams to the server" + ], + "sqlsrv_server_info": [ + "sqlsrv_server_info(resource $conn): array", + "Returns information about the server" + ], + "str_contains": [ + "str_contains(string $haystack, string $needle): bool", + "Determine if a string contains a given substring" + ], + "str_ends_with": [ + "str_ends_with(string $haystack, string $needle): bool", + "Checks if a string ends with a given substring" + ], + "str_starts_with": [ + "str_starts_with(string $haystack, string $needle): bool", + "Checks if a string starts with a given substring" + ], + "stream_isatty": [ + "stream_isatty(resource $stream): bool", + "Check if a stream is a TTY" + ], + "stream_notification_callback": [ + "stream_notification_callback(int $notification_code, int $severity, string $message, int $message_code, int $bytes_transferred, int $bytes_max): void", + "A callback function for the notification context parameter" + ], + "stream_register_wrapper": [ + "stream_register_wrapper()", + "Alias of stream_wrapper_register()" + ], + "stream_set_chunk_size": [ + "stream_set_chunk_size(resource $stream, int $size): int", + "Set the stream chunk size" + ], + "stream_set_read_buffer": [ + "stream_set_read_buffer(resource $stream, int $size): int", + "Set read file buffering on the given stream" + ], + "tcpwrap_check": [ + "tcpwrap_check(string $daemon, string $address, string $user = ?, bool $nodns = false): bool", + "Performs a tcpwrap check" + ], + "trait_exists": [ + "trait_exists(string $trait, bool $autoload = true): bool", + "Checks if the trait exists" + ], + "use_soap_error_handler": [ + "use_soap_error_handler(bool $enable = true): bool", + "Set whether to use the SOAP error handler" + ], + "user_error": [ + "user_error()", + "Alias of trigger_error()" + ], + "yaml_emit_file": [ + "yaml_emit_file(string $filename, mixed $data, int $encoding = YAML_ANY_ENCODING, int $linebreak = YAML_ANY_BREAK, array $callbacks = null): bool", + "Send the YAML representation of a value to a file" + ], + "yaml_emit": [ + "yaml_emit(mixed $data, int $encoding = YAML_ANY_ENCODING, int $linebreak = YAML_ANY_BREAK, array $callbacks = null): string", + "Returns the YAML representation of a value" + ], + "yaml_parse_file": [ + "yaml_parse_file(string $filename, int $pos = 0, int &$ndocs = ?, array $callbacks = null): mixed", + "Parse a YAML stream from a file" + ], + "yaml_parse_url": [ + "yaml_parse_url(string $url, int $pos = 0, int &$ndocs = ?, array $callbacks = null): mixed", + "Parse a Yaml stream from a URL" + ], + "yaml_parse": [ + "yaml_parse(string $input, int $pos = 0, int &$ndocs = ?, array $callbacks = null): mixed", + "Parse a YAML stream" + ], + "zlib_decode": [ + "zlib_decode(string $data, int $max_length = 0): string|false", + "Uncompress any raw/gzip/zlib encoded data" + ], + "zlib_encode": [ + "zlib_encode(string $data, int $encoding, int $level = -1): string|false", + "Compress data with the specified encoding" + ] }; var variableMap = {