Added missing functions, fixed function desciptions

This commit is contained in:
Andrey Sokolov 2017-05-23 21:47:21 +03:00
parent 066b5eefd6
commit 388552a16d
8 changed files with 85 additions and 0 deletions

View File

@ -927,6 +927,16 @@ function date_create ($time = null, DateTimeZone $timezone = null ) {}
*/
function date_create_immutable ($time = null, DateTimeZone $timezone = null ) {}
/**
* Returns new DateTimeImmutable object formatted according to the specified format
* @link http://php.net/manual/en/function.date-create-immutable-from-format.php
* @param string $format
* @param string $time
* @param DateTimeZone $timezone
* @return DateTimeImmutable
*/
function date_create_immutable_from_format ($format, $time, DateTimeZone $timezone) {}
/**
* Alias:
* {@see DateTime::createFromFormat}

View File

@ -402,6 +402,25 @@ function gmp_perfect_square ($a) {}
*/
function gmp_prob_prime ($a, $reps = 10) {}
/**
* Random number
* @link http://php.net/manual/en/function.gmp-random-bits.php
* @param int $bits <p>The number of bits. Either a GMP number resource in PHP 5.5 and earlier,
* a GMP object in PHP 5.6 and later,
* or a numeric string provided that it is possible to convert the latter to a number.</p>
* @return GMP A random GMP number.
*/
function gmp_random_bits($bits) {}
/**
* Random number
* @link http://php.net/manual/en/function.gmp-random-range.php
* @param GMP $min <p>A GMP number representing the lower bound for the random number</p>
* @param GMP $max <p>A GMP number representing the upper bound for the random number</p>
* @return GMP A random GMP number.
*/
function gmp_random_range(GMP $min, GMP $max) {}
/**
* Calculate GCD
* @link http://php.net/manual/en/function.gmp-gcd.php

View File

@ -658,6 +658,7 @@ function ldap_compare ($link_identifier, $dn, $attribute, $value) {}
* @param string $sortfilter <p>
* The attribute to use as a key in the sort.
* </p>
* @deprecated 7.0
* @return bool
* @since 4.2.0
* @since 5.0

View File

@ -1857,6 +1857,48 @@ function mysqli_get_client_version ($link) {}
*/
function mysqli_get_host_info ($link) {}
/**
* Return information about open and cached links
* @return array mysqli_get_links_stats() returns an associative array with three elements, keyed as follows:
* <p>
* <dl>
* <dt>
* <code>total</code></dt>
* <dd>
*
* <p>
* An integer indicating the total number of open links in
* any state.
* </p>
* </dd>
*
* <dt>
* <code>active_plinks</code></dt>
*
* <dd>
*
* <p>
* An integer representing the number of active persistent
* connections.
* </p>
* </dd>
*
* <dt>
* <code>cached_plinks</code>
*
* <dd>
*
* <p>
* An integer representing the number of inactive persistent
* connections.
* </p>
* </dd>
*
* </dl>
* </p>
*/
function mysqli_get_links_stats() {}
/**
* Returns the version of the MySQL protocol used
* @link http://php.net/manual/en/mysqli.get-proto-info.php

View File

@ -1049,6 +1049,8 @@ function openssl_error_string() { }
*/
function openssl_get_cert_locations() { }
function openssl_get_curve_names() {}
define ('OPENSSL_VERSION_TEXT', "OpenSSL 1.0.0e 6 Sep 2011");
define ('OPENSSL_VERSION_NUMBER', 268435551);
define ('X509_PURPOSE_SSL_CLIENT', 1);

View File

@ -234,6 +234,10 @@ function pcntl_wifsignaled ($status) {}
*/
function pcntl_wexitstatus ($status) {}
/**
* @param int $status
*/
function pcntl_wifcontinued ( $status){}
/**
* Returns the signal which caused the child to terminate
* @link http://php.net/manual/en/function.pcntl-wtermsig.php

View File

@ -194,6 +194,11 @@ function socket_select (array &$read, array &$write, array &$except, $tv_sec, $t
*/
function socket_create ($domain, $type, $protocol) {}
/**
* @param resource $socket
*/
function socket_export_stream($socket) {}
/**
* Opens a socket on port to accept connections
* @link http://php.net/manual/en/function.socket-create-listen.php

View File

@ -287,6 +287,8 @@ function xdebug_dump_superglobals () {}
*/
function xdebug_get_headers () {}
function xdebug_get_formatted_function_stack() {}
define ('XDEBUG_STACK_NO_DESC', 1);
define ('XDEBUG_TRACE_APPEND', 1);
define ('XDEBUG_TRACE_COMPUTERIZED', 2);