Update php to 8rc1. Align parameter names
This commit is contained in:
parent
b32029f443
commit
c63f6fc7da
130
Core/Core.php
130
Core/Core.php
|
@ -20,13 +20,13 @@ function func_num_args () {}
|
|||
/**
|
||||
* Return an item from the argument list
|
||||
* @link https://php.net/manual/en/function.func-get-arg.php
|
||||
* @param int $arg_num <p>
|
||||
* @param int $position <p>
|
||||
* The argument offset. Function arguments are counted starting from
|
||||
* zero.
|
||||
* </p>
|
||||
* @return mixed|false the specified argument, or false on error.
|
||||
*/
|
||||
function func_get_arg ($arg_num) {}
|
||||
function func_get_arg ($position) {}
|
||||
|
||||
/**
|
||||
* Returns an array comprising a function's argument list
|
||||
|
@ -50,10 +50,10 @@ function strlen ($string) {}
|
|||
/**
|
||||
* Binary safe string comparison
|
||||
* @link https://php.net/manual/en/function.strcmp.php
|
||||
* @param string $str1 <p>
|
||||
* @param string $string1 <p>
|
||||
* The first string.
|
||||
* </p>
|
||||
* @param string $str2 <p>
|
||||
* @param string $string2 <p>
|
||||
* The second string.
|
||||
* </p>
|
||||
* @return int < 0 if <i>str1</i> is less than
|
||||
|
@ -61,18 +61,18 @@ function strlen ($string) {}
|
|||
* is greater than <i>str2</i>, and 0 if they are
|
||||
* equal.
|
||||
*/
|
||||
function strcmp ($str1, $str2) {}
|
||||
function strcmp ($string1, $string2) {}
|
||||
|
||||
/**
|
||||
* Binary safe string comparison of the first n characters
|
||||
* @link https://php.net/manual/en/function.strncmp.php
|
||||
* @param string $str1 <p>
|
||||
* @param string $string1 <p>
|
||||
* The first string.
|
||||
* </p>
|
||||
* @param string $str2 <p>
|
||||
* @param string $string2 <p>
|
||||
* The second string.
|
||||
* </p>
|
||||
* @param int $len <p>
|
||||
* @param int $length <p>
|
||||
* Number of characters to use in the comparison.
|
||||
* </p>
|
||||
* @return int < 0 if <i>str1</i> is less than
|
||||
|
@ -80,15 +80,15 @@ function strcmp ($str1, $str2) {}
|
|||
* is greater than <i>str2</i>, and 0 if they are
|
||||
* equal.
|
||||
*/
|
||||
function strncmp ($str1, $str2, $len) {}
|
||||
function strncmp ($string1, $string2, $length) {}
|
||||
|
||||
/**
|
||||
* Binary safe case-insensitive string comparison
|
||||
* @link https://php.net/manual/en/function.strcasecmp.php
|
||||
* @param string $str1 <p>
|
||||
* @param string $string1 <p>
|
||||
* The first string
|
||||
* </p>
|
||||
* @param string $str2 <p>
|
||||
* @param string $string2 <p>
|
||||
* The second string
|
||||
* </p>
|
||||
* @return int < 0 if <i>str1</i> is less than
|
||||
|
@ -96,25 +96,25 @@ function strncmp ($str1, $str2, $len) {}
|
|||
* is greater than <i>str2</i>, and 0 if they are
|
||||
* equal.
|
||||
*/
|
||||
function strcasecmp ($str1, $str2) {}
|
||||
function strcasecmp ($string1, $string2) {}
|
||||
|
||||
/**
|
||||
* Binary safe case-insensitive string comparison of the first n characters
|
||||
* @link https://php.net/manual/en/function.strncasecmp.php
|
||||
* @param string $str1 <p>
|
||||
* @param string $string1 <p>
|
||||
* The first string.
|
||||
* </p>
|
||||
* @param string $str2 <p>
|
||||
* @param string $string2 <p>
|
||||
* The second string.
|
||||
* </p>
|
||||
* @param int $len <p>
|
||||
* @param int $length <p>
|
||||
* The length of strings to be used in the comparison.
|
||||
* </p>
|
||||
* @return int < 0 if <i>str1</i> is less than
|
||||
* <i>str2</i>; > 0 if <i>str1</i> is
|
||||
* greater than <i>str2</i>, and 0 if they are equal.
|
||||
*/
|
||||
function strncasecmp ($str1, $str2, $len) {}
|
||||
function strncasecmp ($string1, $string2, $length) {}
|
||||
|
||||
/**
|
||||
* The function returns {@see true} if the passed $haystack starts from the
|
||||
|
@ -175,7 +175,7 @@ function each (array &$array) {}
|
|||
/**
|
||||
* Sets which PHP errors are reported
|
||||
* @link https://php.net/manual/en/function.error-reporting.php
|
||||
* @param int $level [optional] <p>
|
||||
* @param int $error_level [optional] <p>
|
||||
* The new error_reporting
|
||||
* level. It takes on either a bitmask, or named constants. Using named
|
||||
* constants is strongly encouraged to ensure compatibility for future
|
||||
|
@ -294,12 +294,12 @@ function each (array &$array) {}
|
|||
* level or the current level if no <i>level</i> parameter is
|
||||
* given.
|
||||
*/
|
||||
function error_reporting ($level = null) {}
|
||||
function error_reporting ($error_level = null) {}
|
||||
|
||||
/**
|
||||
* Defines a named constant
|
||||
* @link https://php.net/manual/en/function.define.php
|
||||
* @param string $name <p>
|
||||
* @param string $constant_name <p>
|
||||
* The name of the constant.
|
||||
* </p>
|
||||
* @param mixed $value <p>
|
||||
|
@ -321,18 +321,18 @@ function error_reporting ($level = null) {}
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function define ($name, $value, $case_insensitive = false) {}
|
||||
function define ($constant_name, $value, $case_insensitive = false) {}
|
||||
|
||||
/**
|
||||
* Checks whether a given named constant exists
|
||||
* @link https://php.net/manual/en/function.defined.php
|
||||
* @param string $name <p>
|
||||
* @param string $constant_name <p>
|
||||
* The constant name.
|
||||
* </p>
|
||||
* @return bool true if the named constant given by <i>name</i>
|
||||
* has been defined, false otherwise.
|
||||
*/
|
||||
function defined ($name) {}
|
||||
function defined ($constant_name) {}
|
||||
|
||||
/**
|
||||
* Returns the name of the class of an object
|
||||
|
@ -360,7 +360,7 @@ function get_called_class () {}
|
|||
/**
|
||||
* Retrieves the parent class name for object or class
|
||||
* @link https://php.net/manual/en/function.get-parent-class.php
|
||||
* @param mixed $object [optional] <p>
|
||||
* @param mixed $object_or_class [optional] <p>
|
||||
* The tested object or class name
|
||||
* </p>
|
||||
* @return string|false <p>The name of the parent class of the class of which
|
||||
|
@ -372,27 +372,27 @@ function get_called_class () {}
|
|||
* <p>
|
||||
* If called without parameter outside object, this function returns false.
|
||||
*/
|
||||
function get_parent_class ($object = null) {}
|
||||
function get_parent_class ($object_or_class = null) {}
|
||||
|
||||
/**
|
||||
* Checks if the class method exists
|
||||
* @link https://php.net/manual/en/function.method-exists.php
|
||||
* @param mixed $object <p>
|
||||
* @param mixed $object_or_class <p>
|
||||
* An object instance or a class name
|
||||
* </p>
|
||||
* @param string $method_name <p>
|
||||
* @param string $method <p>
|
||||
* The method name
|
||||
* </p>
|
||||
* @return bool true if the method given by <i>method_name</i>
|
||||
* has been defined for the given <i>object</i>, false
|
||||
* otherwise.
|
||||
*/
|
||||
function method_exists ($object, $method_name) {}
|
||||
function method_exists ($object_or_class, $method) {}
|
||||
|
||||
/**
|
||||
* Checks if the object or class has a property
|
||||
* @link https://php.net/manual/en/function.property-exists.php
|
||||
* @param mixed $class <p>
|
||||
* @param mixed $object_or_class <p>
|
||||
* The class name or an object of the class to test for
|
||||
* </p>
|
||||
* @param string $property <p>
|
||||
|
@ -401,22 +401,22 @@ function method_exists ($object, $method_name) {}
|
|||
* @return bool true if the property exists, false if it doesn't exist or
|
||||
* null in case of an error.
|
||||
*/
|
||||
function property_exists ($class, $property) {}
|
||||
function property_exists ($object_or_class, $property) {}
|
||||
|
||||
/**
|
||||
* Checks if the trait exists
|
||||
* @param string $traitname Name of the trait to check
|
||||
* @param string $trait Name of the trait to check
|
||||
* @param bool $autoload [optional] Whether to autoload if not already loaded.
|
||||
* @return bool Returns TRUE if trait exists, FALSE if not, NULL in case of an error.
|
||||
* @link https://secure.php.net/manual/en/function.trait-exists.php
|
||||
* @since 5.4
|
||||
*/
|
||||
function trait_exists($traitname, $autoload ) {}
|
||||
function trait_exists($trait, $autoload ) {}
|
||||
|
||||
/**
|
||||
* Checks if the class has been defined
|
||||
* @link https://php.net/manual/en/function.class-exists.php
|
||||
* @param string $class_name <p>
|
||||
* @param string $class <p>
|
||||
* The class name. The name is matched in a case-insensitive manner.
|
||||
* </p>
|
||||
* @param bool $autoload [optional] <p>
|
||||
|
@ -425,12 +425,12 @@ function trait_exists($traitname, $autoload ) {}
|
|||
* @return bool true if <i>class_name</i> is a defined class,
|
||||
* false otherwise.
|
||||
*/
|
||||
function class_exists ($class_name, $autoload = true) {}
|
||||
function class_exists ($class, $autoload = true) {}
|
||||
|
||||
/**
|
||||
* Checks if the interface has been defined
|
||||
* @link https://php.net/manual/en/function.interface-exists.php
|
||||
* @param string $interface_name <p>
|
||||
* @param string $interface <p>
|
||||
* The interface name
|
||||
* </p>
|
||||
* @param bool $autoload [optional] <p>
|
||||
|
@ -440,12 +440,12 @@ function class_exists ($class_name, $autoload = true) {}
|
|||
* <i>interface_name</i> has been defined, false otherwise.
|
||||
* @since 5.0.2
|
||||
*/
|
||||
function interface_exists ($interface_name, $autoload = true) {}
|
||||
function interface_exists ($interface, $autoload = true) {}
|
||||
|
||||
/**
|
||||
* Return true if the given function has been defined
|
||||
* @link https://php.net/manual/en/function.function-exists.php
|
||||
* @param string $function_name <p>
|
||||
* @param string $function <p>
|
||||
* The function name, as a string.
|
||||
* </p>
|
||||
* @return bool true if <i>function_name</i> exists and is a
|
||||
|
@ -455,17 +455,17 @@ function interface_exists ($interface_name, $autoload = true) {}
|
|||
* This function will return false for constructs, such as
|
||||
* <b>include_once</b> and <b>echo</b>.
|
||||
*/
|
||||
function function_exists ($function_name) {}
|
||||
function function_exists ($function) {}
|
||||
|
||||
/**
|
||||
* Creates an alias for a class
|
||||
* @link https://php.net/manual/en/function.class-alias.php
|
||||
* @param string $original The original class.
|
||||
* @param string $class The original class.
|
||||
* @param string $alias The alias name for the class.
|
||||
* @param bool $autoload [optional] Whether to autoload if the original class is not found.
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function class_alias ($original, $alias, $autoload = true) {}
|
||||
function class_alias ($class, $alias, $autoload = true) {}
|
||||
|
||||
/**
|
||||
* Returns an array with the names of included or required files
|
||||
|
@ -493,10 +493,10 @@ function get_required_files () {}
|
|||
/**
|
||||
* Checks if the object has this class as one of its parents
|
||||
* @link https://php.net/manual/en/function.is-subclass-of.php
|
||||
* @param mixed $object <p>
|
||||
* @param mixed $object_or_class <p>
|
||||
* A class name or an object instance
|
||||
* </p>
|
||||
* @param string $class_name <p>
|
||||
* @param string $class <p>
|
||||
* The class name
|
||||
* </p>
|
||||
* @param bool $allow_string [optional] <p>
|
||||
|
@ -507,15 +507,15 @@ function get_required_files () {}
|
|||
* belongs to a class which is a subclass of
|
||||
* <i>class_name</i>, false otherwise.
|
||||
*/
|
||||
function is_subclass_of ($object, $class_name, $allow_string = true) {}
|
||||
function is_subclass_of ($object_or_class, $class, $allow_string = true) {}
|
||||
|
||||
/**
|
||||
* Checks if the object is of this class or has this class as one of its parents
|
||||
* @link https://php.net/manual/en/function.is-a.php
|
||||
* @param object|string $object <p>
|
||||
* @param object|string $object_or_class <p>
|
||||
* The tested object
|
||||
* </p>
|
||||
* @param string $class_name <p>
|
||||
* @param string $class <p>
|
||||
* The class name
|
||||
* </p>
|
||||
* @param bool $allow_string [optional] <p>
|
||||
|
@ -525,12 +525,12 @@ function is_subclass_of ($object, $class_name, $allow_string = true) {}
|
|||
* @return bool <b>TRUE</b> if the object is of this class or has this class as one of
|
||||
* its parents, <b>FALSE</b> otherwise.
|
||||
*/
|
||||
function is_a ($object, $class_name, $allow_string = false) {}
|
||||
function is_a ($object_or_class, $class, $allow_string = false) {}
|
||||
|
||||
/**
|
||||
* Get the default properties of the class
|
||||
* @link https://php.net/manual/en/function.get-class-vars.php
|
||||
* @param string $class_name <p>
|
||||
* @param string $class <p>
|
||||
* The class name
|
||||
* </p>
|
||||
* @return array an associative array of declared properties visible from the
|
||||
|
@ -538,7 +538,7 @@ function is_a ($object, $class_name, $allow_string = false) {}
|
|||
* The resulting array elements are in the form of
|
||||
* varname => value.
|
||||
*/
|
||||
function get_class_vars ($class_name) {}
|
||||
function get_class_vars ($class) {}
|
||||
|
||||
/**
|
||||
* Gets the properties of the given object
|
||||
|
@ -555,45 +555,45 @@ function get_object_vars ($object) {}
|
|||
/**
|
||||
* Gets the class methods' names
|
||||
* @link https://php.net/manual/en/function.get-class-methods.php
|
||||
* @param mixed $class_name <p>
|
||||
* @param mixed $object_or_class <p>
|
||||
* The class name or an object instance
|
||||
* </p>
|
||||
* @return array an array of method names defined for the class specified by
|
||||
* <i>class_name</i>. In case of an error, it returns null.
|
||||
*/
|
||||
function get_class_methods ($class_name) {}
|
||||
function get_class_methods ($object_or_class) {}
|
||||
|
||||
/**
|
||||
* Generates a user-level error/warning/notice message
|
||||
* @link https://php.net/manual/en/function.trigger-error.php
|
||||
* @param string $error_msg <p>
|
||||
* @param string $message <p>
|
||||
* The designated error message for this error. It's limited to 1024
|
||||
* characters in length. Any additional characters beyond 1024 will be
|
||||
* truncated.
|
||||
* </p>
|
||||
* @param int $error_type [optional] <p>
|
||||
* @param int $error_level [optional] <p>
|
||||
* The designated error type for this error. It only works with the E_USER
|
||||
* family of constants, and will default to <b>E_USER_NOTICE</b>.
|
||||
* </p>
|
||||
* @return bool This function returns false if wrong <i>error_type</i> is
|
||||
* specified, true otherwise.
|
||||
*/
|
||||
function trigger_error ($error_msg, $error_type = E_USER_NOTICE) {}
|
||||
function trigger_error ($message, $error_level = E_USER_NOTICE) {}
|
||||
|
||||
/**
|
||||
* Alias of <b>trigger_error</b>
|
||||
* @link https://php.net/manual/en/function.user-error.php
|
||||
* @param string $message
|
||||
* @param int $error_type [optional]
|
||||
* @param int $error_level [optional]
|
||||
* @return bool This function returns false if wrong <i>error_type</i> is
|
||||
* specified, true otherwise.
|
||||
*/
|
||||
function user_error ($message, $error_type = E_USER_NOTICE) {}
|
||||
function user_error ($message, $error_level = E_USER_NOTICE) {}
|
||||
|
||||
/**
|
||||
* Sets a user-defined error handler function
|
||||
* @link https://php.net/manual/en/function.set-error-handler.php
|
||||
* @param callable|null $error_handler <p>
|
||||
* @param callable|null $callback <p>
|
||||
* The user function needs to accept two parameters: the error code, and a
|
||||
* string describing the error. Then there are three optional parameters
|
||||
* that may be supplied: the filename in which the error occurred, the
|
||||
|
@ -611,7 +611,7 @@ function user_error ($message, $error_type = E_USER_NOTICE) {}
|
|||
* <i>errno</i>
|
||||
* The first parameter, <i>errno</i>, contains the
|
||||
* level of the error raised, as an integer.
|
||||
* @param int $error_types [optional] <p>
|
||||
* @param int $error_levels [optional] <p>
|
||||
* Can be used to mask the triggering of the
|
||||
* <i>error_handler</i> function just like the error_reporting ini setting
|
||||
* controls which errors are shown. Without this mask set the
|
||||
|
@ -624,7 +624,7 @@ function user_error ($message, $error_type = E_USER_NOTICE) {}
|
|||
* was a class method, this function will return an indexed array with the class
|
||||
* and the method name.
|
||||
*/
|
||||
function set_error_handler ($error_handler, $error_types = E_ALL | E_STRICT) {}
|
||||
function set_error_handler ($callback, $error_levels = E_ALL | E_STRICT) {}
|
||||
|
||||
/**
|
||||
* Restores the previous error handler function
|
||||
|
@ -636,7 +636,7 @@ function restore_error_handler () {}
|
|||
/**
|
||||
* Sets a user-defined exception handler function
|
||||
* @link https://php.net/manual/en/function.set-exception-handler.php
|
||||
* @param callable|null $exception_handler <p>
|
||||
* @param callable|null $callback <p>
|
||||
* Name of the function to be called when an uncaught exception occurs.
|
||||
* This function must be defined before calling
|
||||
* <b>set_exception_handler</b>. This handler function
|
||||
|
@ -647,7 +647,7 @@ function restore_error_handler () {}
|
|||
* @return callable|null the name of the previously defined exception handler, or null on error. If
|
||||
* no previous handler was defined, null is also returned.
|
||||
*/
|
||||
function set_exception_handler ($exception_handler) {}
|
||||
function set_exception_handler ($callback) {}
|
||||
|
||||
/**
|
||||
* Restores the previously defined exception handler function
|
||||
|
@ -725,7 +725,7 @@ function create_function ($args, $code) {}
|
|||
/**
|
||||
* Returns the resource type
|
||||
* @link https://php.net/manual/en/function.get-resource-type.php
|
||||
* @param resource $handle <p>
|
||||
* @param resource $resource <p>
|
||||
* The evaluated resource handle.
|
||||
* </p>
|
||||
* @return string If the given <i>handle</i> is a resource, this function
|
||||
|
@ -737,7 +737,7 @@ function create_function ($args, $code) {}
|
|||
* This function will return false and generate an error if
|
||||
* <i>handle</i> is not a resource.
|
||||
*/
|
||||
function get_resource_type ($handle) {}
|
||||
function get_resource_type ($resource) {}
|
||||
|
||||
/**
|
||||
* Returns an array with the names of all modules compiled and loaded
|
||||
|
@ -753,7 +753,7 @@ function get_loaded_extensions ($zend_extensions = false) {}
|
|||
/**
|
||||
* Find out whether an extension is loaded
|
||||
* @link https://php.net/manual/en/function.extension-loaded.php
|
||||
* @param string $name <p>
|
||||
* @param string $extension <p>
|
||||
* The extension name.
|
||||
* </p>
|
||||
* <p>
|
||||
|
@ -782,12 +782,12 @@ function get_loaded_extensions ($zend_extensions = false) {}
|
|||
* @return bool true if the extension identified by <i>name</i>
|
||||
* is loaded, false otherwise.
|
||||
*/
|
||||
function extension_loaded ($name) {}
|
||||
function extension_loaded ($extension) {}
|
||||
|
||||
/**
|
||||
* Returns an array with the names of the functions of a module
|
||||
* @link https://php.net/manual/en/function.get-extension-funcs.php
|
||||
* @param string $module_name <p>
|
||||
* @param string $extension <p>
|
||||
* The module name.
|
||||
* </p>
|
||||
* <p>
|
||||
|
@ -796,7 +796,7 @@ function extension_loaded ($name) {}
|
|||
* @return string[]|false an array with all the functions, or false if
|
||||
* <i>module_name</i> is not a valid extension.
|
||||
*/
|
||||
function get_extension_funcs ($module_name) {}
|
||||
function get_extension_funcs ($extension) {}
|
||||
|
||||
/**
|
||||
* Returns an associative array with the names of all the constants and their values
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM php:8.0.0beta4-alpine
|
||||
FROM php:8.0.0rc1-alpine
|
||||
RUN echo 'memory_limit = 256M' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini
|
||||
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
||||
|
||||
|
|
|
@ -1601,7 +1601,7 @@ class SplPriorityQueue implements Iterator, Countable {
|
|||
* implementation.
|
||||
* @link https://php.net/manual/en/class.splfixedarray.php
|
||||
*/
|
||||
class SplFixedArray implements Iterator, ArrayAccess, Countable {
|
||||
class SplFixedArray implements Iterator, ArrayAccess, Countable, IteratorAggregate {
|
||||
|
||||
/**
|
||||
* Constructs a new fixed array
|
||||
|
@ -1737,7 +1737,7 @@ class SplFixedArray implements Iterator, ArrayAccess, Countable {
|
|||
{
|
||||
}
|
||||
|
||||
|
||||
public function getIterator() {}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -13,7 +13,7 @@ function spl_classes () {}
|
|||
/**
|
||||
* Default implementation for __autoload()
|
||||
* @link https://php.net/manual/en/function.spl-autoload.php
|
||||
* @param string $class_name <p>
|
||||
* @param string $class <p>
|
||||
* </p>
|
||||
* @param string $file_extensions [optional] <p>
|
||||
* By default it checks all include paths to
|
||||
|
@ -23,7 +23,7 @@ function spl_classes () {}
|
|||
* @return void
|
||||
* @since 5.1.2
|
||||
*/
|
||||
function spl_autoload ($class_name, $file_extensions = null) {}
|
||||
function spl_autoload ($class, $file_extensions = null) {}
|
||||
|
||||
/**
|
||||
* Register and return default file extensions for spl_autoload
|
||||
|
@ -83,18 +83,18 @@ function spl_autoload_functions () {}
|
|||
/**
|
||||
* Try all registered __autoload() function to load the requested class
|
||||
* @link https://php.net/manual/en/function.spl-autoload-call.php
|
||||
* @param string $class_name <p>
|
||||
* @param string $class <p>
|
||||
* The class name being searched.
|
||||
* </p>
|
||||
* @return void
|
||||
* @since 5.1.2
|
||||
*/
|
||||
function spl_autoload_call ($class_name) {}
|
||||
function spl_autoload_call ($class) {}
|
||||
|
||||
/**
|
||||
* Return the parent classes of the given class
|
||||
* @link https://php.net/manual/en/function.class-parents.php
|
||||
* @param mixed $class <p>
|
||||
* @param mixed $object_or_class <p>
|
||||
* An object (class instance) or a string (class name).
|
||||
* </p>
|
||||
* @param bool $autoload [optional] <p>
|
||||
|
@ -104,12 +104,12 @@ function spl_autoload_call ($class_name) {}
|
|||
* </p>
|
||||
* @return string[]|false An array on success, or false on error.
|
||||
*/
|
||||
function class_parents ($class, $autoload = null) {}
|
||||
function class_parents ($object_or_class, $autoload = null) {}
|
||||
|
||||
/**
|
||||
* Return the interfaces which are implemented by the given class
|
||||
* @link https://php.net/manual/en/function.class-implements.php
|
||||
* @param mixed $class <p>
|
||||
* @param mixed $object_or_class <p>
|
||||
* An object (class instance) or a string (class name).
|
||||
* </p>
|
||||
* @param bool $autoload [optional] <p>
|
||||
|
@ -119,16 +119,16 @@ function class_parents ($class, $autoload = null) {}
|
|||
* </p>
|
||||
* @return string[]|false An array on success, or false on error.
|
||||
*/
|
||||
function class_implements ($class, $autoload = null) {}
|
||||
function class_implements ($object_or_class, $autoload = null) {}
|
||||
|
||||
/**
|
||||
* Return hash id for given object
|
||||
* @link https://php.net/manual/en/function.spl-object-hash.php
|
||||
* @param object $obj
|
||||
* @param object $object
|
||||
* @return string A string that is unique for each object and is always the same for
|
||||
* the same object.
|
||||
*/
|
||||
function spl_object_hash ($obj) {}
|
||||
function spl_object_hash ($object) {}
|
||||
|
||||
/**
|
||||
* Copy the iterator into an array
|
||||
|
@ -175,7 +175,7 @@ function iterator_apply (Traversable $iterator, $function, array $args = null) {
|
|||
|
||||
/**
|
||||
* Return the traits used by the given class
|
||||
* @param mixed $class An object (class instance) or a string (class name).
|
||||
* @param mixed $object_or_class An object (class instance) or a string (class name).
|
||||
* @param bool $autoload Whether to allow this function to load the class automatically through the __autoload() magic method.
|
||||
* @return string[]|false An array on success, or false on error.
|
||||
* @link https://php.net/manual/en/function.class-uses.php
|
||||
|
@ -183,13 +183,13 @@ function iterator_apply (Traversable $iterator, $function, array $args = null) {
|
|||
* @see get_declared_traits()
|
||||
* @since 5.4
|
||||
*/
|
||||
function class_uses($class, bool $autoload = true ) {}
|
||||
function class_uses($object_or_class, bool $autoload = true ) {}
|
||||
|
||||
/**
|
||||
* @param object $obj
|
||||
* @param object $object
|
||||
* @return int
|
||||
* @since 7.2
|
||||
*/
|
||||
function spl_object_id($obj) {}
|
||||
function spl_object_id($object) {}
|
||||
|
||||
?>
|
||||
|
|
|
@ -389,7 +389,7 @@ class SimpleXMLIterator extends SimpleXMLElement implements RecursiveIterator, C
|
|||
* Since PHP 5.1.0 and Libxml 2.6.0, you may also use the
|
||||
* <i>options</i> parameter to specify additional Libxml parameters.
|
||||
* </p>
|
||||
* @param string $ns [optional] <p>
|
||||
* @param string $namespace_or_prefix [optional] <p>
|
||||
* Namespace prefix or URI.
|
||||
* </p>
|
||||
* @param bool $is_prefix [optional] <p>
|
||||
|
@ -399,7 +399,7 @@ class SimpleXMLIterator extends SimpleXMLElement implements RecursiveIterator, C
|
|||
* @return SimpleXMLElement an object of class SimpleXMLElement with
|
||||
* properties containing the data held within the XML document, or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function simplexml_load_file ($filename, $class_name = "SimpleXMLElement", $options = 0, $ns = "", $is_prefix = false) {}
|
||||
function simplexml_load_file ($filename, $class_name = "SimpleXMLElement", $options = 0, $namespace_or_prefix = "", $is_prefix = false) {}
|
||||
|
||||
/**
|
||||
* Interprets a string of XML into an object
|
||||
|
@ -417,7 +417,7 @@ function simplexml_load_file ($filename, $class_name = "SimpleXMLElement", $opti
|
|||
* Since PHP 5.1.0 and Libxml 2.6.0, you may also use the
|
||||
* <i>options</i> parameter to specify additional Libxml parameters.
|
||||
* </p>
|
||||
* @param string $ns [optional] <p>
|
||||
* @param string $namespace_or_prefix [optional] <p>
|
||||
* Namespace prefix or URI.
|
||||
* </p>
|
||||
* @param bool $is_prefix [optional] <p>
|
||||
|
@ -427,7 +427,7 @@ function simplexml_load_file ($filename, $class_name = "SimpleXMLElement", $opti
|
|||
* @return SimpleXMLElement an object of class SimpleXMLElement with
|
||||
* properties containing the data held within the xml document, or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function simplexml_load_string ($data, $class_name = "SimpleXMLElement", $options = 0, $ns = "", $is_prefix = false) {}
|
||||
function simplexml_load_string ($data, $class_name = "SimpleXMLElement", $options = 0, $namespace_or_prefix = "", $is_prefix = false) {}
|
||||
|
||||
/**
|
||||
* Get a SimpleXMLElement object from a DOM node.
|
||||
|
|
|
@ -40,11 +40,11 @@ function opcache_reset() { }
|
|||
* (PHP 5 >= 5.5.5, PECL ZendOpcache >= 7.0.2 )<br/>
|
||||
* Get status information about the cache
|
||||
* @link https://php.net/manual/en/function.opcache-get-status.php
|
||||
* @param bool $get_scripts <p>Include script specific state information</p>
|
||||
* @param bool $fetch_scripts <p>Include script specific state information</p>
|
||||
* @return array <p>Returns an array of information, optionally containing script specific state information</p>
|
||||
* @since 5.5
|
||||
*/
|
||||
function opcache_get_status ($get_scripts = true) {}
|
||||
function opcache_get_status ($fetch_scripts = true) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.5.5, PECL ZendOpcache >= 7.0.2 )<br/>
|
||||
|
@ -60,8 +60,8 @@ function opcache_get_configuration() {}
|
|||
* This function checks if a PHP script has been cached in OPCache.
|
||||
* This can be used to more easily detect the "warming" of the cache for a particular script.
|
||||
* @link https://secure.php.net/manual/en/function.opcache-is-script-cached.php
|
||||
* @param string $file The path to the PHP script to be checked.
|
||||
* @param string $script The path to the PHP script to be checked.
|
||||
* @return bool Returns TRUE if file is cached in OPCache, FALSE otherwise.
|
||||
* @since 5.6
|
||||
*/
|
||||
function opcache_is_script_cached($file) {}
|
||||
function opcache_is_script_cached($script) {}
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
/**
|
||||
* Add two arbitrary precision numbers
|
||||
* @link https://php.net/manual/en/function.bcadd.php
|
||||
* @param string $left_operand <p>
|
||||
* @param string $num1 <p>
|
||||
* The left operand, as a string.
|
||||
* </p>
|
||||
* @param string $right_operand <p>
|
||||
* @param string $num2 <p>
|
||||
* The right operand, as a string.
|
||||
* </p>
|
||||
* @param int $scale [optional] <p>
|
||||
|
@ -17,15 +17,15 @@
|
|||
* </p>
|
||||
* @return string The sum of the two operands, as a string.
|
||||
*/
|
||||
function bcadd ($left_operand, $right_operand, $scale = 0) {}
|
||||
function bcadd ($num1, $num2, $scale = 0) {}
|
||||
|
||||
/**
|
||||
* Subtract one arbitrary precision number from another
|
||||
* @link https://php.net/manual/en/function.bcsub.php
|
||||
* @param string $left_operand <p>
|
||||
* @param string $num1 <p>
|
||||
* The left operand, as a string.
|
||||
* </p>
|
||||
* @param string $right_operand <p>
|
||||
* @param string $num2 <p>
|
||||
* The right operand, as a string.
|
||||
* </p>
|
||||
* @param int $scale [optional] <p>
|
||||
|
@ -36,15 +36,15 @@ function bcadd ($left_operand, $right_operand, $scale = 0) {}
|
|||
* </p>
|
||||
* @return string The result of the subtraction, as a string.
|
||||
*/
|
||||
function bcsub ($left_operand, $right_operand, $scale = 0) {}
|
||||
function bcsub ($num1, $num2, $scale = 0) {}
|
||||
|
||||
/**
|
||||
* Multiply two arbitrary precision numbers
|
||||
* @link https://php.net/manual/en/function.bcmul.php
|
||||
* @param string $left_operand <p>
|
||||
* @param string $num1 <p>
|
||||
* The left operand, as a string.
|
||||
* </p>
|
||||
* @param string $right_operand <p>
|
||||
* @param string $num2 <p>
|
||||
* The right operand, as a string.
|
||||
* </p>
|
||||
* @param int $scale [optional] <p>
|
||||
|
@ -55,15 +55,15 @@ function bcsub ($left_operand, $right_operand, $scale = 0) {}
|
|||
* </p>
|
||||
* @return string the result as a string.
|
||||
*/
|
||||
function bcmul ($left_operand, $right_operand, $scale = 0) {}
|
||||
function bcmul ($num1, $num2, $scale = 0) {}
|
||||
|
||||
/**
|
||||
* Divide two arbitrary precision numbers
|
||||
* @link https://php.net/manual/en/function.bcdiv.php
|
||||
* @param string $dividend <p>
|
||||
* @param string $num1 <p>
|
||||
* The dividend, as a string.
|
||||
* </p>
|
||||
* @param string $divisor <p>
|
||||
* @param string $num2 <p>
|
||||
* The divisor, as a string.
|
||||
* </p>
|
||||
* @param int $scale [optional] <p>
|
||||
|
@ -75,15 +75,15 @@ function bcmul ($left_operand, $right_operand, $scale = 0) {}
|
|||
* @return string|null the result of the division as a string, or <b>NULL</b> if
|
||||
* <i>divisor</i> is 0.
|
||||
*/
|
||||
function bcdiv ($dividend, $divisor, $scale = 0) {}
|
||||
function bcdiv ($num1, $num2, $scale = 0) {}
|
||||
|
||||
/**
|
||||
* Get modulus of an arbitrary precision number
|
||||
* @link https://php.net/manual/en/function.bcmod.php
|
||||
* @param string $dividend <p>
|
||||
* @param string $num1 <p>
|
||||
* The dividend, as a string. Since PHP 7.2, the divided is no longer truncated to an integer.
|
||||
* </p>
|
||||
* @param string $divisor <p>
|
||||
* @param string $num2 <p>
|
||||
* The divisor, as a string. Since PHP 7.2, the divisor is no longer truncated to an integer.
|
||||
* </p>
|
||||
* @param int $scale [optional] <p>
|
||||
|
@ -95,12 +95,12 @@ function bcdiv ($dividend, $divisor, $scale = 0) {}
|
|||
* @return string|null the modulus as a string, or <b>NULL</b> if
|
||||
* <i>divisor</i> is 0.
|
||||
*/
|
||||
function bcmod ($dividend, $divisor, $scale = 0) {}
|
||||
function bcmod ($num1, $num2, $scale = 0) {}
|
||||
|
||||
/**
|
||||
* Raise an arbitrary precision number to another
|
||||
* @link https://php.net/manual/en/function.bcpow.php
|
||||
* @param string $base <p>
|
||||
* @param string $num <p>
|
||||
* The base, as a string.
|
||||
* </p>
|
||||
* @param string $exponent <p>
|
||||
|
@ -116,19 +116,19 @@ function bcmod ($dividend, $divisor, $scale = 0) {}
|
|||
* </p>
|
||||
* @return string the result as a string.
|
||||
*/
|
||||
function bcpow ($base, $exponent, $scale = 0) {}
|
||||
function bcpow ($num, $exponent, $scale = 0) {}
|
||||
|
||||
/**
|
||||
* Get the square root of an arbitrary precision number
|
||||
* @link https://php.net/manual/en/function.bcsqrt.php
|
||||
* @param string $operand <p>
|
||||
* @param string $num <p>
|
||||
* The operand, as a string.
|
||||
* </p>
|
||||
* @param int $scale [optional]
|
||||
* @return string|null the square root as a string, or <b>NULL</b> if
|
||||
* <i>operand</i> is negative.
|
||||
*/
|
||||
function bcsqrt ($operand, $scale = null) {}
|
||||
function bcsqrt ($num, $scale = null) {}
|
||||
|
||||
/**
|
||||
* Set default scale parameter for all bc math functions
|
||||
|
@ -143,10 +143,10 @@ function bcscale ($scale = null) {}
|
|||
/**
|
||||
* Compare two arbitrary precision numbers
|
||||
* @link https://php.net/manual/en/function.bccomp.php
|
||||
* @param string $left_operand <p>
|
||||
* @param string $num1 <p>
|
||||
* The left operand, as a string.
|
||||
* </p>
|
||||
* @param string $right_operand <p>
|
||||
* @param string $num2 <p>
|
||||
* The right operand, as a string.
|
||||
* </p>
|
||||
* @param int $scale [optional] <p>
|
||||
|
@ -158,12 +158,12 @@ function bcscale ($scale = null) {}
|
|||
* <i>left_operand</i> is larger than the
|
||||
* <i>right_operand</i>, -1 otherwise.
|
||||
*/
|
||||
function bccomp ($left_operand, $right_operand, $scale = 0) {}
|
||||
function bccomp ($num1, $num2, $scale = 0) {}
|
||||
|
||||
/**
|
||||
* Raise an arbitrary precision number to another, reduced by a specified modulus
|
||||
* @link https://php.net/manual/en/function.bcpowmod.php
|
||||
* @param string $base <p>
|
||||
* @param string $num <p>
|
||||
* The base, as an integral string (i.e. the scale has to be zero).
|
||||
* </p>
|
||||
* @param string $exponent <p>
|
||||
|
@ -182,4 +182,4 @@ function bccomp ($left_operand, $right_operand, $scale = 0) {}
|
|||
* @return string|null the result as a string, or <b>NULL</b> if <i>modulus</i>
|
||||
* is 0 or <i>exponent</i> is negative.
|
||||
*/
|
||||
function bcpowmod ($base, $exponent, $modulus, $scale = 0) {}
|
||||
function bcpowmod ($num, $exponent, $modulus, $scale = 0) {}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
/**
|
||||
* Opens a bzip2 compressed file
|
||||
* @link https://php.net/manual/en/function.bzopen.php
|
||||
* @param string $filename <p>
|
||||
* @param string $file <p>
|
||||
* The name of the file to open, or an existing stream resource.
|
||||
* </p>
|
||||
* @param string $mode <p>
|
||||
|
@ -14,7 +14,7 @@
|
|||
* @return resource|false If the open fails, <b>bzopen</b> returns <b>FALSE</b>, otherwise
|
||||
* it returns a pointer to the newly opened file.
|
||||
*/
|
||||
function bzopen ($filename, $mode) {}
|
||||
function bzopen ($file, $mode) {}
|
||||
|
||||
/**
|
||||
* Binary safe bzip2 file read
|
||||
|
@ -39,7 +39,7 @@ function bzread ($bz, $length = 1024) {}
|
|||
* The file pointer. It must be valid and must point to a file
|
||||
* successfully opened by <b>bzopen</b>.
|
||||
* </p>
|
||||
* @param string $data <p>
|
||||
* @param string $str <p>
|
||||
* The written data.
|
||||
* </p>
|
||||
* @param int $length [optional] <p>
|
||||
|
@ -49,7 +49,7 @@ function bzread ($bz, $length = 1024) {}
|
|||
* </p>
|
||||
* @return int the number of bytes written, or <b>FALSE</b> on error.
|
||||
*/
|
||||
function bzwrite ($bz, $data, $length = null) {}
|
||||
function bzwrite ($bz, $str, $length = null) {}
|
||||
|
||||
/**
|
||||
* Force a write of all buffered data
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
/**
|
||||
* Converts Julian Day Count to Gregorian date
|
||||
* @link https://php.net/manual/en/function.jdtogregorian.php
|
||||
* @param int $julianday <p>
|
||||
* @param int $juliandaycount <p>
|
||||
* A julian day number as integer
|
||||
* </p>
|
||||
* @return string The gregorian date as a string in the form "month/day/year"
|
||||
*/
|
||||
function jdtogregorian ($julianday) {}
|
||||
function jdtogregorian ($juliandaycount) {}
|
||||
|
||||
/**
|
||||
* Converts a Gregorian date to Julian Day Count
|
||||
|
@ -31,12 +31,12 @@ function gregoriantojd ($month, $day, $year) {}
|
|||
/**
|
||||
* Converts a Julian Day Count to a Julian Calendar Date
|
||||
* @link https://php.net/manual/en/function.jdtojulian.php
|
||||
* @param int $julianday <p>
|
||||
* @param int $juliandaycount <p>
|
||||
* A julian day number as integer
|
||||
* </p>
|
||||
* @return string The julian date as a string in the form "month/day/year"
|
||||
*/
|
||||
function jdtojulian ($julianday) {}
|
||||
function jdtojulian ($juliandaycount) {}
|
||||
|
||||
/**
|
||||
* Converts a Julian Calendar date to Julian Day Count
|
||||
|
@ -116,7 +116,7 @@ function frenchtojd ($month, $day, $year) {}
|
|||
/**
|
||||
* Returns the day of the week
|
||||
* @link https://php.net/manual/en/function.jddayofweek.php
|
||||
* @param int $julianday <p>
|
||||
* @param int $juliandaycount <p>
|
||||
* A julian day number as integer
|
||||
* </p>
|
||||
* @param int $mode [optional] <table>
|
||||
|
@ -148,16 +148,16 @@ function frenchtojd ($month, $day, $year) {}
|
|||
* </table>
|
||||
* @return mixed The gregorian weekday as either an integer or string.
|
||||
*/
|
||||
function jddayofweek ($julianday, $mode = CAL_DOW_DAYNO) {}
|
||||
function jddayofweek ($juliandaycount, $mode = CAL_DOW_DAYNO) {}
|
||||
|
||||
/**
|
||||
* Returns a month name
|
||||
* @link https://php.net/manual/en/function.jdmonthname.php
|
||||
* @param int $julianday
|
||||
* @param int $juliandaycount
|
||||
* @param int $mode
|
||||
* @return string The month name for the given Julian Day and <i>calendar</i>.
|
||||
*/
|
||||
function jdmonthname ($julianday, $mode) {}
|
||||
function jdmonthname ($juliandaycount, $mode) {}
|
||||
|
||||
/**
|
||||
* Get Unix timestamp for midnight on Easter of a given year
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"inspection"
|
||||
],
|
||||
"require-dev": {
|
||||
"php": "^7.4",
|
||||
"php": "^8.0",
|
||||
"nikic/php-parser": "dev-master",
|
||||
"phpdocumentor/reflection-docblock": "dev-master",
|
||||
"phpunit/phpunit": "^9",
|
||||
|
|
134
curl/curl.php
134
curl/curl.php
|
@ -84,10 +84,10 @@ function curl_init ($url = null) {}
|
|||
/**
|
||||
* Copy a cURL handle along with all of its preferences
|
||||
* @link https://php.net/manual/en/function.curl-copy-handle.php
|
||||
* @param resource $ch
|
||||
* @param resource $handle
|
||||
* @return resource a new cURL handle.
|
||||
*/
|
||||
function curl_copy_handle ($ch) {}
|
||||
function curl_copy_handle ($handle) {}
|
||||
|
||||
/**
|
||||
* Gets cURL version information
|
||||
|
@ -140,7 +140,7 @@ function curl_version ($age = null) {}
|
|||
/**
|
||||
* Set an option for a cURL transfer
|
||||
* @link https://php.net/manual/en/function.curl-setopt.php
|
||||
* @param resource $ch
|
||||
* @param resource $handle
|
||||
* @param int $option <p>
|
||||
* The CURLOPT_XXX option to set.
|
||||
* </p>
|
||||
|
@ -2103,12 +2103,12 @@ function curl_version ($age = null) {}
|
|||
* </table>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function curl_setopt ($ch, $option, $value) {}
|
||||
function curl_setopt ($handle, $option, $value) {}
|
||||
|
||||
/**
|
||||
* Set multiple options for a cURL transfer
|
||||
* @link https://php.net/manual/en/function.curl-setopt-array.php
|
||||
* @param resource $ch
|
||||
* @param resource $handle
|
||||
* @param array $options <p>
|
||||
* An array specifying which options to set and their values.
|
||||
* The keys should be valid curl_setopt constants or
|
||||
|
@ -2119,19 +2119,19 @@ function curl_setopt ($ch, $option, $value) {}
|
|||
* future options in the options array.
|
||||
* @since 5.1.3
|
||||
*/
|
||||
function curl_setopt_array ($ch, array $options) {}
|
||||
function curl_setopt_array ($handle, array $options) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0)<br/>
|
||||
* Close a cURL share handle
|
||||
* @link https://secure.php.net/manual/en/function.curl-share-close.php
|
||||
* @param resource $sh <p>
|
||||
* @param resource $share_handle <p>
|
||||
* A cURL share handle returned by {@link https://secure.php.net/manual/en/function.curl-share-init.php curl_share_init()}
|
||||
* </p>
|
||||
* @return void
|
||||
* @since 5.5
|
||||
*/
|
||||
function curl_share_close ($sh) {}
|
||||
function curl_share_close ($share_handle) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0)<br/>
|
||||
|
@ -2146,7 +2146,7 @@ function curl_share_init () {}
|
|||
* (PHP 5 >=5.5.0)<br/>
|
||||
* Set an option for a cURL share handle.
|
||||
* @link https://secure.php.net/manual/en/function.curl-share-setopt.php
|
||||
* @param resource $sh <p>
|
||||
* @param resource $share_handle <p>
|
||||
* A cURL share handle returned by {@link https://secure.php.net/manual/en/function.curl-share-init.php curl_share_init()}.
|
||||
* </p>
|
||||
* @param int $option <table>
|
||||
|
@ -2221,47 +2221,47 @@ function curl_share_init () {}
|
|||
* Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
* @since 5.5
|
||||
*/
|
||||
function curl_share_setopt ($sh, $option, $value ) {}
|
||||
function curl_share_setopt ($share_handle, $option, $value ) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0)<br/>
|
||||
* Return string describing the given error code
|
||||
* @link https://secure.php.net/manual/en/function.curl-strerror.php
|
||||
* @param int $errornum <p>
|
||||
* @param int $error_code <p>
|
||||
* One of the {@link https://curl.haxx.se/libcurl/c/libcurl-errors.html cURL error codes} constants.
|
||||
* </p>
|
||||
* @return string|null Returns error description or <b>NULL</b> for invalid error code.
|
||||
* @since 5.5
|
||||
*/
|
||||
function curl_strerror ($errornum ) {}
|
||||
function curl_strerror ($error_code) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0)<br/>
|
||||
* Decodes the given URL encoded string
|
||||
* @link https://secure.php.net/manual/en/function.curl-unescape.php
|
||||
* @param resource $ch <p>A cURL handle returned by
|
||||
* @param resource $handle <p>A cURL handle returned by
|
||||
* {@link https://secure.php.net/manual/en/function.curl-init.php curl_init()}.</p>
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The URL encoded string to be decoded.
|
||||
* </p>
|
||||
* @return string|false Returns decoded string or FALSE on failure.
|
||||
* @since 5.5
|
||||
*/
|
||||
function curl_unescape ($ch, $str) {}
|
||||
function curl_unescape ($handle, $string) {}
|
||||
/**
|
||||
* Perform a cURL session
|
||||
* @link https://php.net/manual/en/function.curl-exec.php
|
||||
* @param resource $ch
|
||||
* @param resource $handle
|
||||
* @return string|bool true on success or false on failure. However, if the CURLOPT_RETURNTRANSFER
|
||||
* option is set, it will return the result on success, false on failure.
|
||||
*/
|
||||
function curl_exec ($ch) {}
|
||||
function curl_exec ($handle) {}
|
||||
|
||||
/**
|
||||
* Get information regarding a specific transfer
|
||||
* @link https://php.net/manual/en/function.curl-getinfo.php
|
||||
* @param resource $ch
|
||||
* @param int $opt [optional] <p>
|
||||
* @param resource $handle
|
||||
* @param int $option [optional] <p>
|
||||
* This may be one of the following constants:
|
||||
* CURLINFO_EFFECTIVE_URL - Last effective URL
|
||||
* @return mixed If opt is given, returns its value as a string.
|
||||
|
@ -2288,59 +2288,59 @@ function curl_exec ($ch) {}
|
|||
* "starttransfer_time"
|
||||
* "redirect_time"
|
||||
*/
|
||||
function curl_getinfo ($ch, $opt = null) {}
|
||||
function curl_getinfo ($handle, $option = null) {}
|
||||
|
||||
/**
|
||||
* Return a string containing the last error for the current session
|
||||
* @link https://php.net/manual/en/function.curl-error.php
|
||||
* @param resource $ch
|
||||
* @param resource $handle
|
||||
* @return string the error message or '' (the empty string) if no
|
||||
* error occurred.
|
||||
*/
|
||||
function curl_error ($ch) {}
|
||||
function curl_error ($handle) {}
|
||||
|
||||
/**
|
||||
* Return the last error number
|
||||
* @link https://php.net/manual/en/function.curl-errno.php
|
||||
* @param resource $ch
|
||||
* @param resource $handle
|
||||
* @return int the error number or 0 (zero) if no error
|
||||
* occurred.
|
||||
*/
|
||||
function curl_errno ($ch) {}
|
||||
function curl_errno ($handle) {}
|
||||
|
||||
/**
|
||||
* URL encodes the given string
|
||||
* @link https://secure.php.net/manual/en/function.curl-escape.php
|
||||
* @param resource $ch <p>
|
||||
* @param resource $handle <p>
|
||||
* A cURL handle returned by
|
||||
* {@link https://secure.php.net/manual/en/function.curl-init.php curl_init()}.</p>
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string to be encoded.</p>
|
||||
* @return string|false Returns escaped string or FALSE on failure.
|
||||
* @since 5.5
|
||||
*/
|
||||
function curl_escape($ch, $str) {}
|
||||
function curl_escape($handle, $string) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.5.0) <br/>
|
||||
* Create a CURLFile object
|
||||
* @link https://secure.php.net/manual/en/curlfile.construct.php
|
||||
* @param string $filename <p> Path to the file which will be uploaded.</p>
|
||||
* @param string $mimetype [optional] <p>Mimetype of the file.</p>
|
||||
* @param string $postname [optional] <p>Name of the file.</p>
|
||||
* @param string $mime_type [optional] <p>Mimetype of the file.</p>
|
||||
* @param string $posted_filename [optional] <p>Name of the file.</p>
|
||||
* @return CURLFile
|
||||
* Returns a {@link https://secure.php.net/manual/en/class.curlfile.php CURLFile} object.
|
||||
* @since 5.5
|
||||
*/
|
||||
function curl_file_create($filename, $mimetype = '', $postname = '') {}
|
||||
function curl_file_create($filename, $mime_type = '', $posted_filename = '') {}
|
||||
|
||||
/**
|
||||
* Close a cURL session
|
||||
* @link https://php.net/manual/en/function.curl-close.php
|
||||
* @param resource $ch
|
||||
* @param resource $handle
|
||||
* @return void
|
||||
*/
|
||||
function curl_close ($ch) {}
|
||||
function curl_close ($handle) {}
|
||||
|
||||
/**
|
||||
* Returns a new cURL multi handle
|
||||
|
@ -2352,39 +2352,39 @@ function curl_multi_init () {}
|
|||
/**
|
||||
* Add a normal cURL handle to a cURL multi handle
|
||||
* @link https://php.net/manual/en/function.curl-multi-add-handle.php
|
||||
* @param resource $mh
|
||||
* @param resource $ch
|
||||
* @param resource $multi_handle
|
||||
* @param resource $handle
|
||||
* @return int 0 on success, or one of the CURLM_XXX errors
|
||||
* code.
|
||||
*/
|
||||
function curl_multi_add_handle ($mh, $ch) {}
|
||||
function curl_multi_add_handle ($multi_handle, $handle) {}
|
||||
|
||||
/**
|
||||
* Remove a multi handle from a set of cURL handles
|
||||
* @link https://php.net/manual/en/function.curl-multi-remove-handle.php
|
||||
* @param resource $mh
|
||||
* @param resource $ch
|
||||
* @param resource $multi_handle
|
||||
* @param resource $handle
|
||||
* @return int|false On success, returns one of the CURLM_XXX error codes, false on failure.
|
||||
*/
|
||||
function curl_multi_remove_handle ($mh, $ch) {}
|
||||
function curl_multi_remove_handle ($multi_handle, $handle) {}
|
||||
|
||||
/**
|
||||
* Wait for activity on any curl_multi connection
|
||||
* @link https://php.net/manual/en/function.curl-multi-select.php
|
||||
* @param resource $mh
|
||||
* @param resource $multi_handle
|
||||
* @param float $timeout [optional] <p>
|
||||
* Time, in seconds, to wait for a response.
|
||||
* </p>
|
||||
* @return int On success, returns the number of descriptors contained in,
|
||||
* the descriptor sets. On failure, this function will return -1 on a select failure or timeout (from the underlying select system call).
|
||||
*/
|
||||
function curl_multi_select ($mh, $timeout = 1.0) {}
|
||||
function curl_multi_select ($multi_handle, $timeout = 1.0) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0)<br/>
|
||||
* Set an option for the cURL multi handle
|
||||
* @link https://secure.php.net/manual/en/function.curl-multi-setopt.php
|
||||
* @param resource $mh
|
||||
* @param resource $multi_handle
|
||||
* @param int $option <p>
|
||||
* One of the <b>CURLMOPT_*</b> constants.
|
||||
* </p>
|
||||
|
@ -2431,47 +2431,47 @@ function curl_multi_select ($mh, $timeout = 1.0) {}
|
|||
* @return bool Returns TRUE on success or FALSE on failure.
|
||||
* @since 5.5
|
||||
*/
|
||||
function curl_multi_setopt ($mh, $option, $value) {}
|
||||
function curl_multi_setopt ($multi_handle, $option, $value) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0)<br/>
|
||||
* Return string describing error code
|
||||
* @link https://secure.php.net/manual/en/function.curl-multi-strerror.php
|
||||
* @param int $errornum <p>
|
||||
* @param int $error_code <p>
|
||||
* One of the {@link https://curl.haxx.se/libcurl/c/libcurl-errors.html CURLM error codes} constants.
|
||||
* </p>
|
||||
* @return string|null Returns error string for valid error code, NULL otherwise.
|
||||
* @since 5.5
|
||||
*/
|
||||
function curl_multi_strerror ($errornum) {}
|
||||
function curl_multi_strerror ($error_code) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0)<br/>
|
||||
* Pause and unpause a connection
|
||||
* @link https://secure.php.net/manual/en/function.curl-pause.php
|
||||
* @param resource $ch
|
||||
* @param resource $handle
|
||||
* <p>A cURL handle returned by {@link https://secure.php.net/manual/en/function.curl-init.php curl_init()}.</p>
|
||||
* @param int $bitmask <p>One of <b>CURLPAUSE_*</b> constants.</p>
|
||||
* @param int $flags <p>One of <b>CURLPAUSE_*</b> constants.</p>
|
||||
* @return int Returns an error code (<b>CURLE_OK</b> for no error).
|
||||
* @since 5.5
|
||||
*/
|
||||
function curl_pause ($ch, $bitmask ) {}
|
||||
function curl_pause ($handle, $flags) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0)<br/>
|
||||
* Reset all options of a libcurl session handle
|
||||
* @link https://secure.php.net/manual/en/function.curl-reset.php
|
||||
* @param resource $ch <p>A cURL handle returned by
|
||||
* @param resource $handle <p>A cURL handle returned by
|
||||
* {@link https://secure.php.net/manual/en/function.curl-init.php curl_init()}.</p>
|
||||
* @return void
|
||||
* @since 5.5
|
||||
*/
|
||||
function curl_reset ($ch) {}
|
||||
function curl_reset ($handle) {}
|
||||
|
||||
/**
|
||||
* Run the sub-connections of the current cURL handle
|
||||
* @link https://php.net/manual/en/function.curl-multi-exec.php
|
||||
* @param resource $mh
|
||||
* @param resource $multi_handle
|
||||
* @param int &$still_running <p>
|
||||
* A reference to a flag to tell whether the operations are still running.
|
||||
* </p>
|
||||
|
@ -2482,55 +2482,55 @@ function curl_reset ($ch) {}
|
|||
* occurred problems on individual transfers even when this function returns
|
||||
* CURLM_OK.
|
||||
*/
|
||||
function curl_multi_exec ($mh, &$still_running) {}
|
||||
function curl_multi_exec ($multi_handle, &$still_running) {}
|
||||
|
||||
/**
|
||||
* Return the content of a cURL handle if <constant>CURLOPT_RETURNTRANSFER</constant> is set
|
||||
* @link https://php.net/manual/en/function.curl-multi-getcontent.php
|
||||
* @param resource $ch
|
||||
* @param resource $multi_handle
|
||||
* @return string Return the content of a cURL handle if CURLOPT_RETURNTRANSFER is set.
|
||||
*/
|
||||
function curl_multi_getcontent ($ch) {}
|
||||
function curl_multi_getcontent ($multi_handle) {}
|
||||
|
||||
/**
|
||||
* Get information about the current transfers
|
||||
* @link https://php.net/manual/en/function.curl-multi-info-read.php
|
||||
* @param resource $mh
|
||||
* @param int &$msgs_in_queue [optional] <p>
|
||||
* @param resource $multi_handle
|
||||
* @param int &$queued_messages [optional] <p>
|
||||
* Number of messages that are still in the queue
|
||||
* </p>
|
||||
* @return array|false On success, returns an associative array for the message, false on failure.
|
||||
*/
|
||||
function curl_multi_info_read ($mh, &$msgs_in_queue = null) {}
|
||||
function curl_multi_info_read ($multi_handle, &$queued_messages = null) {}
|
||||
|
||||
/**
|
||||
* Close a set of cURL handles
|
||||
* @link https://php.net/manual/en/function.curl-multi-close.php
|
||||
* @param resource $mh
|
||||
* @param resource $multi_handle
|
||||
* @return void
|
||||
*/
|
||||
function curl_multi_close ($mh) {}
|
||||
function curl_multi_close ($multi_handle) {}
|
||||
|
||||
/**
|
||||
* @param resource $mh
|
||||
* @since 7.1
|
||||
* @param resource $multi_handle
|
||||
* @return int
|
||||
* @since 7.1
|
||||
*/
|
||||
function curl_multi_errno($mh) {}
|
||||
function curl_multi_errno($multi_handle) {}
|
||||
|
||||
/**
|
||||
* @param resource $rh
|
||||
* @since 7.1
|
||||
* @param resource $share_handle
|
||||
* @return int
|
||||
* @since 7.1
|
||||
*/
|
||||
function curl_share_errno($rh) {}
|
||||
function curl_share_errno($share_handle) {}
|
||||
|
||||
/**
|
||||
* @param int $errno
|
||||
* @since 7.1
|
||||
* @param int $error_code
|
||||
* @return string
|
||||
* @since 7.1
|
||||
*/
|
||||
function curl_share_strerror($errno){}
|
||||
function curl_share_strerror($error_code){}
|
||||
|
||||
/**
|
||||
* @since 8.0
|
||||
|
|
|
@ -5,18 +5,18 @@
|
|||
/**
|
||||
* Parse about any English textual datetime description into a Unix timestamp
|
||||
* @link https://php.net/manual/en/function.strtotime.php
|
||||
* @param string $time <p>
|
||||
* @param string $datetime <p>
|
||||
* The string to parse. Before PHP 5.0.0, microseconds weren't allowed in
|
||||
* the time, since PHP 5.0.0 they are allowed but ignored.
|
||||
* </p>
|
||||
* @param int $now [optional] <p>
|
||||
* @param int $baseTimestamp [optional] <p>
|
||||
* The timestamp which is used as a base for the calculation of relative
|
||||
* dates.
|
||||
* </p>
|
||||
* @return int|false a timestamp on success, false otherwise. Previous to PHP 5.1.0,
|
||||
* this function would return -1 on failure.
|
||||
*/
|
||||
function strtotime ($time, $now = 'time()') {}
|
||||
function strtotime ($datetime, $baseTimestamp = 'time()') {}
|
||||
|
||||
/**
|
||||
* Format a local time/date
|
||||
|
@ -782,7 +782,7 @@ function time () {}
|
|||
* Get the local time
|
||||
* @link https://php.net/manual/en/function.localtime.php
|
||||
* @param int $timestamp [optional]
|
||||
* @param bool $is_associative [optional] <p>
|
||||
* @param bool $associative [optional] <p>
|
||||
* If set to false or not supplied then the array is returned as a regular,
|
||||
* numerically indexed array. If the argument is set to true then
|
||||
* localtime returns an associative array containing
|
||||
|
@ -794,7 +794,7 @@ function time () {}
|
|||
* "tm_sec" - seconds
|
||||
* @return array
|
||||
*/
|
||||
function localtime ($timestamp = null, $is_associative = null) {}
|
||||
function localtime ($timestamp = null, $associative = null) {}
|
||||
|
||||
/**
|
||||
* Get date/time information
|
||||
|
@ -880,7 +880,7 @@ function getdate ($timestamp = null) {}
|
|||
/**
|
||||
* Returns new DateTime object
|
||||
* @link https://php.net/manual/en/function.date-create.php
|
||||
* @param string $time [optional] <p>
|
||||
* @param string $datetime [optional] <p>
|
||||
* String in a format accepted by strtotime.
|
||||
* </p>
|
||||
* @param DateTimeZone $timezone [optional] <p>
|
||||
|
@ -888,7 +888,7 @@ function getdate ($timestamp = null) {}
|
|||
* </p>
|
||||
* @return DateTime|false DateTime object on success or false on failure.
|
||||
*/
|
||||
function date_create ($time = null, DateTimeZone $timezone = null ) {}
|
||||
function date_create ($datetime = null, DateTimeZone $timezone = null ) {}
|
||||
|
||||
/**
|
||||
* (PHP 5.5)<br/>
|
||||
|
@ -896,7 +896,7 @@ function date_create ($time = null, DateTimeZone $timezone = null ) {}
|
|||
* Returns new DateTimeImmutable object
|
||||
* @link https://php.net/manual/en/function.date-create-immutable.php
|
||||
* @see DateTimeImmutable::__construct()
|
||||
* @param string $time [optional] <p>
|
||||
* @param string $datetime [optional] <p>
|
||||
* String in a format accepted by strtotime.
|
||||
* </p>
|
||||
* @param DateTimeZone $timezone [optional] <p>
|
||||
|
@ -904,17 +904,17 @@ function date_create ($time = null, DateTimeZone $timezone = null ) {}
|
|||
* </p>
|
||||
* @return DateTimeImmutable|false DateTime object on success or false on failure.
|
||||
*/
|
||||
function date_create_immutable ($time = null, DateTimeZone $timezone = null ) {}
|
||||
function date_create_immutable ($datetime = null, DateTimeZone $timezone = null ) {}
|
||||
|
||||
/**
|
||||
* Returns new DateTimeImmutable object formatted according to the specified format
|
||||
* @link https://php.net/manual/en/function.date-create-immutable-from-format.php
|
||||
* @param string $format
|
||||
* @param string $time
|
||||
* @param string $datetime
|
||||
* @param DateTimeZone $timezone [optional]
|
||||
* @return DateTimeImmutable
|
||||
*/
|
||||
function date_create_immutable_from_format ($format, $time, DateTimeZone $timezone = null) {}
|
||||
function date_create_immutable_from_format ($format, $datetime, DateTimeZone $timezone = null) {}
|
||||
|
||||
/**
|
||||
* Alias:
|
||||
|
@ -924,23 +924,23 @@ function date_create_immutable_from_format ($format, $time, DateTimeZone $timezo
|
|||
* <p>If format does not contain the character ! then portions of the generated time which are not specified in format will be set to the current system time.
|
||||
* <p>If format contains the character !, then portions of the generated time not provided in format, as well as values to the left-hand side of the !, will be set to corresponding values from the Unix epoch.
|
||||
* <p>The Unix epoch is 1970-01-01 00:00:00 UTC.
|
||||
* @param string $time String representing the time.
|
||||
* @param string $datetime String representing the time.
|
||||
* @param DateTimeZone $timezone [optional] A DateTimeZone object representing the desired time zone.
|
||||
* @return DateTime|false <p> Returns a new
|
||||
* {@see DateTime} instance or <b>FALSE</b> on failure.</p>
|
||||
*/
|
||||
function date_create_from_format ($format, $time, $timezone = null) {}
|
||||
function date_create_from_format ($format, $datetime, $timezone = null) {}
|
||||
|
||||
/**
|
||||
* Returns associative array with detailed info about given date
|
||||
* @link https://php.net/manual/en/function.date-parse.php
|
||||
* @param string $date <p>
|
||||
* @param string $datetime <p>
|
||||
* Date in format accepted by strtotime.
|
||||
* </p>
|
||||
* @return array|false array with information about the parsed date
|
||||
* on success or false on failure.
|
||||
*/
|
||||
function date_parse ($date) {}
|
||||
function date_parse ($datetime) {}
|
||||
|
||||
/**
|
||||
* Get info about given date
|
||||
|
@ -948,12 +948,12 @@ function date_parse ($date) {}
|
|||
* @param string $format <p>
|
||||
* Format accepted by date with some extras.
|
||||
* </p>
|
||||
* @param string $date <p>
|
||||
* @param string $datetime <p>
|
||||
* String representing the date.
|
||||
* </p>
|
||||
* @return array associative array with detailed info about given date.
|
||||
*/
|
||||
function date_parse_from_format ($format, $date) {}
|
||||
function date_parse_from_format ($format, $datetime) {}
|
||||
|
||||
/**
|
||||
* Alias:
|
||||
|
@ -980,10 +980,10 @@ function date_format ($object, $format) {}
|
|||
* {@see DateTime::modify}
|
||||
* @link https://php.net/manual/en/function.date-modify.php
|
||||
* @param DateTime $object A DateTime object returned by date_create(). The function modifies this object.
|
||||
* @param string $modify A date/time string. Valid formats are explained in {@link https://secure.php.net/manual/en/datetime.formats.php Date and Time Formats}.
|
||||
* @param string $modifier A date/time string. Valid formats are explained in {@link https://secure.php.net/manual/en/datetime.formats.php Date and Time Formats}.
|
||||
* @return DateTime|false Returns the DateTime object for method chaining or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function date_modify ($object, $modify) {}
|
||||
function date_modify ($object, $modifier) {}
|
||||
|
||||
/**
|
||||
* &Alias; <methodname>DateTime::add</methodname>
|
||||
|
@ -1057,12 +1057,12 @@ function date_offset_get ($object) {}
|
|||
* Alias:
|
||||
* {@see DateTime::diff}
|
||||
* @link https://php.net/manual/en/function.date-diff.php
|
||||
* @param DateTime $object
|
||||
* @param DateTime $object2 The date to compare to
|
||||
* @param DateTime $baseObject
|
||||
* @param DateTime $targetObject The date to compare to
|
||||
* @param bool $absolute [optional] Whether to return absolute difference.
|
||||
* @return DateInterval|false The DateInterval object representing the difference between the two dates or FALSE on failure.
|
||||
*/
|
||||
function date_diff ($object, $object2, $absolute = false) {}
|
||||
function date_diff ($baseObject, $targetObject, $absolute = false) {}
|
||||
|
||||
/**
|
||||
* &Alias; <methodname>DateTime::setTime</methodname>
|
||||
|
@ -1071,11 +1071,11 @@ function date_diff ($object, $object2, $absolute = false) {}
|
|||
* @param $hour
|
||||
* @param $minute
|
||||
* @param $second [optional]
|
||||
* @param $microseconds [optional]
|
||||
* @param $microsecond [optional]
|
||||
* @return DateTime|false <p>Returns the
|
||||
* {@see DateTime} object for method chaining or <b>FALSE</b> on failure.</p>
|
||||
*/
|
||||
function date_time_set ($object, $hour, $minute, $second = 0, $microseconds = 0) {}
|
||||
function date_time_set ($object, $hour, $minute, $second = 0, $microsecond = 0) {}
|
||||
|
||||
/**
|
||||
* &Alias; <methodname>DateTime::setDate</methodname>
|
||||
|
@ -1114,11 +1114,11 @@ function date_isodate_set ($object, $year, $week, $day = 1) {}
|
|||
* @param DateTime $object <p>Procedural style only: A
|
||||
* {@see DateTime} object returned by
|
||||
* {@see date_create()}. The function modifies this object.</p>
|
||||
* @param int $unixtimestamp <p>Unix timestamp representing the date.</p>
|
||||
* @param int $timestamp <p>Unix timestamp representing the date.</p>
|
||||
* @return DateTime|false
|
||||
* {@see DateTime} object for call chaining or <b>FALSE</b> on failure
|
||||
*/
|
||||
function date_timestamp_set ($object, $unixtimestamp) {}
|
||||
function date_timestamp_set ($object, $timestamp) {}
|
||||
|
||||
/**
|
||||
* Alias:
|
||||
|
@ -1155,13 +1155,13 @@ function timezone_name_get ($object) {}
|
|||
* @param string $abbr <p>
|
||||
* Time zone abbreviation.
|
||||
* </p>
|
||||
* @param int $gmtOffset [optional] <p>
|
||||
* @param int $utcOffset [optional] <p>
|
||||
* Offset from GMT in seconds. Defaults to -1 which means that first found
|
||||
* time zone corresponding to abbr is returned.
|
||||
* Otherwise exact offset is searched and only if not found then the first
|
||||
* time zone with any offset is returned.
|
||||
* </p>
|
||||
* @param int $isdst [optional] <p>
|
||||
* @param int $isDST [optional] <p>
|
||||
* Daylight saving time indicator. If abbr doesn't
|
||||
* exist then the time zone is searched solely by
|
||||
* offset and isdst.
|
||||
|
@ -1169,7 +1169,7 @@ function timezone_name_get ($object) {}
|
|||
* @return string|false time zone name on success or false on failure.
|
||||
* @since 5.1.3
|
||||
*/
|
||||
function timezone_name_from_abbr ($abbr, $gmtOffset = null, $isdst = null) {}
|
||||
function timezone_name_from_abbr ($abbr, $utcOffset = null, $isDST = null) {}
|
||||
|
||||
/**
|
||||
* Alias:
|
||||
|
@ -1191,11 +1191,11 @@ function timezone_offset_get ($object, $datetime) {}
|
|||
* @param DateTimeZone $object <p>Procedural style only: A
|
||||
* {@see DateTimeZone} object returned by
|
||||
* {@see timezone_open()}</p>
|
||||
* @param int $timestamp_begin [optional] <p>Begin timestamp</p>
|
||||
* @param int $timestamp_end [optional] <p>End timestamp</p>
|
||||
* @param int $timestampBegin [optional] <p>Begin timestamp</p>
|
||||
* @param int $timestampEnd [optional] <p>End timestamp</p>
|
||||
* @return array|false <p>Returns numerically indexed array containing associative array with all transitions on success or FALSE on failure.</p>
|
||||
*/
|
||||
function timezone_transitions_get ($object, $timestamp_begin, $timestamp_end) {}
|
||||
function timezone_transitions_get ($object, $timestampBegin, $timestampEnd) {}
|
||||
|
||||
/**
|
||||
* &Alias; {@see DateTimeZone::getLocation}
|
||||
|
@ -1209,12 +1209,12 @@ function timezone_location_get ($object) {}
|
|||
* Alias:
|
||||
* {@see DateTimeZone::listIdentifiers()}
|
||||
* @link https://php.net/manual/en/function.timezone-identifiers-list.php
|
||||
* @param int $what [optional] One of DateTimeZone class constants.
|
||||
* @param string $country [optional] A two-letter ISO 3166-1 compatible country code.
|
||||
* @param int $timezoneGroup [optional] One of DateTimeZone class constants.
|
||||
* @param string $countryCode [optional] A two-letter ISO 3166-1 compatible country code.
|
||||
* @return array|false Returns array on success or FALSE on failure.
|
||||
* Note: This option is only used when what is set to DateTimeZone::PER_COUNTRY.
|
||||
*/
|
||||
function timezone_identifiers_list ($what = DateTimeZone::ALL, $country = null) {}
|
||||
function timezone_identifiers_list ($timezoneGroup = DateTimeZone::ALL, $countryCode = null) {}
|
||||
|
||||
/**
|
||||
* Returns associative array containing dst, offset and the timezone name
|
||||
|
@ -1236,14 +1236,14 @@ function timezone_version_get () {}
|
|||
* Alias:
|
||||
* {@see DateInterval::createFromDateString}
|
||||
* @link https://php.net/manual/en/function.date-interval-create-from-date-string.php
|
||||
* @param $time <p>A date with relative parts. Specifically, the relative formats supported by the parser used for
|
||||
* @param $datetime <p>A date with relative parts. Specifically, the relative formats supported by the parser used for
|
||||
* {@see strtotime()} and
|
||||
* {@see DateTime} will be used to construct the
|
||||
* {@see DateInterval}.</p>
|
||||
* @return DateInterval
|
||||
* <p>Returns a new DateInterval instance.</p>
|
||||
*/
|
||||
function date_interval_create_from_date_string ($time) {}
|
||||
function date_interval_create_from_date_string ($datetime) {}
|
||||
|
||||
/**
|
||||
* &Alias; <methodname>DateInterval::format</methodname>
|
||||
|
@ -1257,7 +1257,7 @@ function date_interval_format ($object, $format) {}
|
|||
/**
|
||||
* Sets the default timezone used by all date/time functions in a script
|
||||
* @link https://php.net/manual/en/function.date-default-timezone-set.php
|
||||
* @param string $timezone_identifier <p>
|
||||
* @param string $timezoneID <p>
|
||||
* The timezone identifier, like UTC or
|
||||
* Europe/Lisbon. The list of valid identifiers is
|
||||
* available in the .
|
||||
|
@ -1266,7 +1266,7 @@ function date_interval_format ($object, $format) {}
|
|||
* timezone_identifier isn't valid, or true
|
||||
* otherwise.
|
||||
*/
|
||||
function date_default_timezone_set ($timezone_identifier) {}
|
||||
function date_default_timezone_set ($timezoneID) {}
|
||||
|
||||
/**
|
||||
* Gets the default timezone used by all date/time functions in a script
|
||||
|
@ -1282,7 +1282,7 @@ function date_default_timezone_get () {}
|
|||
* The timestamp of the day from which the sunrise
|
||||
* time is taken.
|
||||
* </p>
|
||||
* @param int $format [optional] <p>
|
||||
* @param int $returnFormat [optional] <p>
|
||||
* <table>
|
||||
* format constants
|
||||
* <tr valign="top">
|
||||
|
@ -1318,11 +1318,11 @@ function date_default_timezone_get () {}
|
|||
* @param float $zenith [optional] <p>
|
||||
* Default: date.sunrise_zenith
|
||||
* </p>
|
||||
* @param float $gmt_offset [optional]
|
||||
* @param float $utcOffset [optional]
|
||||
* @return mixed the sunrise time in a specified format on
|
||||
* success or false on failure.
|
||||
*/
|
||||
function date_sunrise ($timestamp, $format = null, $latitude = null, $longitude = null, $zenith = null, $gmt_offset = null) {}
|
||||
function date_sunrise ($timestamp, $returnFormat = null, $latitude = null, $longitude = null, $zenith = null, $utcOffset = null) {}
|
||||
|
||||
/**
|
||||
* Returns time of sunset for a given day and location
|
||||
|
@ -1331,7 +1331,7 @@ function date_sunrise ($timestamp, $format = null, $latitude = null, $longitude
|
|||
* The timestamp of the day from which the sunset
|
||||
* time is taken.
|
||||
* </p>
|
||||
* @param int $format [optional] <p>
|
||||
* @param int $returnFormat [optional] <p>
|
||||
* <table>
|
||||
* format constants
|
||||
* <tr valign="top">
|
||||
|
@ -1367,16 +1367,16 @@ function date_sunrise ($timestamp, $format = null, $latitude = null, $longitude
|
|||
* @param float $zenith [optional] <p>
|
||||
* Default: date.sunset_zenith
|
||||
* </p>
|
||||
* @param float $gmt_offset [optional]
|
||||
* @param float $utcOffset [optional]
|
||||
* @return mixed the sunset time in a specified format on
|
||||
* success or false on failure.
|
||||
*/
|
||||
function date_sunset ($timestamp, $format = null, $latitude = null, $longitude = null, $zenith = null, $gmt_offset = null) {}
|
||||
function date_sunset ($timestamp, $returnFormat = null, $latitude = null, $longitude = null, $zenith = null, $utcOffset = null) {}
|
||||
|
||||
/**
|
||||
* Returns an array with information about sunset/sunrise and twilight begin/end
|
||||
* @link https://php.net/manual/en/function.date-sun-info.php
|
||||
* @param int $time <p>
|
||||
* @param int $timestamp <p>
|
||||
* Timestamp.
|
||||
* </p>
|
||||
* @param float $latitude <p>
|
||||
|
@ -1388,6 +1388,6 @@ function date_sunset ($timestamp, $format = null, $latitude = null, $longitude =
|
|||
* @return array|false array on success or false on failure.
|
||||
* @since 5.1.2
|
||||
*/
|
||||
function date_sun_info ($time, $latitude, $longitude) {}
|
||||
function date_sun_info ($timestamp, $latitude, $longitude) {}
|
||||
|
||||
// End of date v.5.3.2-0.dotdeb.1
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
/**
|
||||
* Reads the EXIF headers from JPEG or TIFF
|
||||
* @link https://php.net/manual/en/function.exif-read-data.php
|
||||
* @param string|resource $stream <p>
|
||||
* @param string|resource $filename <p>
|
||||
* The location of the image file. This cannot be an URL.
|
||||
* Since 7.2.0 this can either be a path to the file (stream wrappers are also supported as usual)
|
||||
* or a stream resource.
|
||||
* </p>
|
||||
* @param string $sections [optional] <p>
|
||||
* @param string $sections_needed [optional] <p>
|
||||
* Is a comma separated list of sections that need to be present in file
|
||||
* to produce a result array. If none of the requested
|
||||
* sections could be found the return value is <b>FALSE</b>.
|
||||
|
@ -60,14 +60,14 @@
|
|||
* </td>
|
||||
* </tr>
|
||||
* </p>
|
||||
* @param bool $arrays [optional] <p>
|
||||
* @param bool $sub_arrays [optional] <p>
|
||||
* Specifies whether or not each section becomes an array. The
|
||||
* <i>sections</i> COMPUTED,
|
||||
* THUMBNAIL, and COMMENT
|
||||
* always become arrays as they may contain values whose names conflict
|
||||
* with other sections.
|
||||
* </p>
|
||||
* @param bool $thumbnail [optional] <p>
|
||||
* @param bool $read_thumbnail [optional] <p>
|
||||
* When set to <b>TRUE</b> the thumbnail itself is read. Otherwise, only the
|
||||
* tagged data is read.
|
||||
* </p>
|
||||
|
@ -76,7 +76,7 @@
|
|||
* those headers. If no data can be returned,
|
||||
* <b>exif_read_data</b> will return <b>FALSE</b>.
|
||||
*/
|
||||
function exif_read_data ($stream, $sections = null, $arrays = false, $thumbnail = false) {}
|
||||
function exif_read_data ($filename, $sections_needed = null, $sub_arrays = false, $read_thumbnail = false) {}
|
||||
|
||||
/**
|
||||
* Alias of <b>exif_read_data</b>
|
||||
|
@ -104,7 +104,7 @@ function exif_tagname ($index) {}
|
|||
/**
|
||||
* Retrieve the embedded thumbnail of a TIFF or JPEG image
|
||||
* @link https://php.net/manual/en/function.exif-thumbnail.php
|
||||
* @param string|resource $stream <p>
|
||||
* @param string|resource $filename <p>
|
||||
* The location of the image file. This cannot be an URL.
|
||||
* Since 7.2.0 this can either be a path to the file (stream wrappers are also supported as usual)
|
||||
* or a stream resource.
|
||||
|
@ -122,7 +122,7 @@ function exif_tagname ($index) {}
|
|||
* @return string|false the embedded thumbnail, or <b>FALSE</b> if the image contains no
|
||||
* thumbnail.
|
||||
*/
|
||||
function exif_thumbnail ($stream, &$width = null, &$height = null, &$imagetype = null) {}
|
||||
function exif_thumbnail ($filename, &$width = null, &$height = null, &$imagetype = null) {}
|
||||
|
||||
/**
|
||||
* Determine the type of an image
|
||||
|
|
|
@ -64,11 +64,11 @@ class finfo {
|
|||
* (PHP >= 5.3.0, PECL fileinfo >= 0.1.0)<br/>
|
||||
* Create a new fileinfo resource
|
||||
* @link https://php.net/manual/en/function.finfo-open.php
|
||||
* @param int $options [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* One or disjunction of more Fileinfo
|
||||
* constants.
|
||||
* </p>
|
||||
* @param string $magic_file [optional] <p>
|
||||
* @param string $magic_database [optional] <p>
|
||||
* Name of a magic database file, usually something like
|
||||
* /path/to/magic.mime. If not specified,
|
||||
* the MAGIC environment variable is used. If this variable
|
||||
|
@ -78,7 +78,7 @@ class finfo {
|
|||
* </p>
|
||||
* @return resource|false a magic database resource on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function finfo_open ($options = null, $magic_file = null) {}
|
||||
function finfo_open ($flags = null, $magic_database = null) {}
|
||||
|
||||
/**
|
||||
* (PHP >= 5.3.0, PECL fileinfo >= 0.1.0)<br/>
|
||||
|
@ -98,13 +98,13 @@ function finfo_close ($finfo) {}
|
|||
* @param resource $finfo <p>
|
||||
* Fileinfo resource returned by finfo_open.
|
||||
* </p>
|
||||
* @param int $options <p>
|
||||
* @param int $flags <p>
|
||||
* One or disjunction of more Fileinfo
|
||||
* constants.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function finfo_set_flags ($finfo, $options) {}
|
||||
function finfo_set_flags ($finfo, $flags) {}
|
||||
|
||||
/**
|
||||
* (PHP >= 5.3.0, PECL fileinfo >= 0.1.0)<br/>
|
||||
|
@ -113,10 +113,10 @@ function finfo_set_flags ($finfo, $options) {}
|
|||
* @param resource $finfo <p>
|
||||
* Fileinfo resource returned by finfo_open.
|
||||
* </p>
|
||||
* @param string $file_name <p>
|
||||
* @param string $filename <p>
|
||||
* Name of a file to be checked.
|
||||
* </p>
|
||||
* @param int $options [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* One or disjunction of more Fileinfo
|
||||
* constants.
|
||||
* </p>
|
||||
|
@ -126,7 +126,7 @@ function finfo_set_flags ($finfo, $options) {}
|
|||
* @return mixed a textual description of the contents of the
|
||||
* <i>filename</i> argument, or <b>FALSE</b> if an error occurred.
|
||||
*/
|
||||
function finfo_file ($finfo, $file_name, $options = null, $context = null) {}
|
||||
function finfo_file ($finfo, $filename, $flags = null, $context = null) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.3.0, PECL fileinfo >= 0.1.0)<br/>
|
||||
|
@ -138,20 +138,20 @@ function finfo_file ($finfo, $file_name, $options = null, $context = null) {}
|
|||
* @param string $string <p>
|
||||
* Content of a file to be checked.
|
||||
* </p>
|
||||
* @param int $options [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* One or disjunction of more Fileinfo
|
||||
* constants.
|
||||
* </p>
|
||||
* @param resource $context [optional] <p>
|
||||
* </p>
|
||||
* @param string $string
|
||||
* @param int $options [optional] One or disjunction of more
|
||||
* @param int $flags [optional] One or disjunction of more
|
||||
* <a href="https://php.net/manual/en/fileinfo.constants.php">Fileinfo</a> constants.
|
||||
* @param resource $context [optional]
|
||||
* @return string|false a textual description of the <i>string</i>
|
||||
* argument, or <b>FALSE</b> if an error occurred.
|
||||
*/
|
||||
function finfo_buffer ($finfo ,$string, $options = FILEINFO_NONE, $context = null) {}
|
||||
function finfo_buffer ($finfo , $string, $flags = FILEINFO_NONE, $context = null) {}
|
||||
|
||||
/**
|
||||
* Detect MIME Content-type for a file
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
* <b>INPUT_COOKIE</b>, <b>INPUT_SERVER</b>, or
|
||||
* <b>INPUT_ENV</b>.
|
||||
* </p>
|
||||
* @param string $variable_name <p>
|
||||
* @param string $var_name <p>
|
||||
* Name of a variable to get.
|
||||
* </p>
|
||||
* @param int $filter [optional] <p>
|
||||
|
@ -26,12 +26,12 @@
|
|||
* If the flag <b>FILTER_NULL_ON_FAILURE</b> is used, it
|
||||
* returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter fails.
|
||||
*/
|
||||
function filter_input ($type, $variable_name, $filter = FILTER_DEFAULT, $options = null) {}
|
||||
function filter_input ($type, $var_name, $filter = FILTER_DEFAULT, $options = null) {}
|
||||
|
||||
/**
|
||||
* Filters a variable with a specified filter
|
||||
* @link https://php.net/manual/en/function.filter-var.php
|
||||
* @param mixed $variable <p>
|
||||
* @param mixed $value <p>
|
||||
* Value to filter.
|
||||
* </p>
|
||||
* @param int $filter [optional] <p>
|
||||
|
@ -81,7 +81,7 @@ function filter_input ($type, $variable_name, $filter = FILTER_DEFAULT, $options
|
|||
* </p>
|
||||
* @return mixed the filtered data, or <b>FALSE</b> if the filter fails.
|
||||
*/
|
||||
function filter_var ($variable, $filter = FILTER_DEFAULT, $options = null) {}
|
||||
function filter_var ($value, $filter = FILTER_DEFAULT, $options = null) {}
|
||||
|
||||
/**
|
||||
* Gets external variables and optionally filters them
|
||||
|
@ -91,7 +91,7 @@ function filter_var ($variable, $filter = FILTER_DEFAULT, $options = null) {}
|
|||
* <b>INPUT_COOKIE</b>, <b>INPUT_SERVER</b>, or
|
||||
* <b>INPUT_ENV</b>.
|
||||
* </p>
|
||||
* @param mixed $definition [optional] <p>
|
||||
* @param mixed $options [optional] <p>
|
||||
* An array defining the arguments. A valid key is a string
|
||||
* containing a variable name and a valid value is either a filter type, or an array
|
||||
* optionally specifying the filter, flags and options. If the value is an
|
||||
|
@ -114,15 +114,15 @@ function filter_var ($variable, $filter = FILTER_DEFAULT, $options = null) {}
|
|||
* is used, it returns <b>FALSE</b> if the variable is not set and <b>NULL</b> if the filter
|
||||
* fails.
|
||||
*/
|
||||
function filter_input_array ($type, $definition = null, $add_empty = true) {}
|
||||
function filter_input_array ($type, $options = null, $add_empty = true) {}
|
||||
|
||||
/**
|
||||
* Gets multiple variables and optionally filters them
|
||||
* @link https://php.net/manual/en/function.filter-var-array.php
|
||||
* @param array $data <p>
|
||||
* @param array $array <p>
|
||||
* An array with string keys containing the data to filter.
|
||||
* </p>
|
||||
* @param mixed $definition [optional] <p>
|
||||
* @param mixed $options [optional] <p>
|
||||
* An array defining the arguments. A valid key is a string
|
||||
* containing a variable name and a valid value is either a
|
||||
* filter type, or an
|
||||
|
@ -144,7 +144,7 @@ function filter_input_array ($type, $definition = null, $add_empty = true) {}
|
|||
* on failure. An array value will be <b>FALSE</b> if the filter fails, or <b>NULL</b> if
|
||||
* the variable is not set.
|
||||
*/
|
||||
function filter_var_array (array $data, $definition = null, $add_empty = true) {}
|
||||
function filter_var_array (array $array, $options = null, $add_empty = true) {}
|
||||
|
||||
/**
|
||||
* Returns a list of all supported filters
|
||||
|
@ -158,27 +158,27 @@ function filter_list () {}
|
|||
/**
|
||||
* Checks if variable of specified type exists
|
||||
* @link https://php.net/manual/en/function.filter-has-var.php
|
||||
* @param int $type <p>
|
||||
* @param int $input_type <p>
|
||||
* One of <b>INPUT_GET</b>, <b>INPUT_POST</b>,
|
||||
* <b>INPUT_COOKIE</b>, <b>INPUT_SERVER</b>, or
|
||||
* <b>INPUT_ENV</b>.
|
||||
* </p>
|
||||
* @param string $variable_name <p>
|
||||
* @param string $var_name <p>
|
||||
* Name of a variable to check.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function filter_has_var ($type, $variable_name) {}
|
||||
function filter_has_var ($input_type, $var_name) {}
|
||||
|
||||
/**
|
||||
* Returns the filter ID belonging to a named filter
|
||||
* @link https://php.net/manual/en/function.filter-id.php
|
||||
* @param string $filtername <p>
|
||||
* @param string $name <p>
|
||||
* Name of a filter to get.
|
||||
* </p>
|
||||
* @return int|false ID of a filter on success or <b>FALSE</b> if filter doesn't exist.
|
||||
*/
|
||||
function filter_id ($filtername) {}
|
||||
function filter_id ($name) {}
|
||||
|
||||
|
||||
/**
|
||||
|
|
158
ftp/ftp.php
158
ftp/ftp.php
|
@ -4,13 +4,13 @@
|
|||
|
||||
/**
|
||||
* @param resource $ftp
|
||||
* @param string $remote_file
|
||||
* @param string $remove_file
|
||||
* @param string $local_file
|
||||
* @param int $mode [optional]
|
||||
* @return bool
|
||||
* @since 7.2
|
||||
*/
|
||||
function ftp_append ($ftp, $remote_file, $local_file, $mode = FTP_BINARY){}
|
||||
function ftp_append ($ftp, $remove_file, $local_file, $mode = FTP_BINARY){}
|
||||
|
||||
/**
|
||||
* @param resource $ftp
|
||||
|
@ -65,7 +65,7 @@ function ftp_ssl_connect ($host, $port = 21, $timeout = 90) {}
|
|||
/**
|
||||
* Logs in to an FTP connection
|
||||
* @link https://php.net/manual/en/function.ftp-login.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $username <p>
|
||||
|
@ -77,32 +77,32 @@ function ftp_ssl_connect ($host, $port = 21, $timeout = 90) {}
|
|||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
* If login fails, PHP will also throw a warning.
|
||||
*/
|
||||
function ftp_login ($ftp_stream, $username, $password) {}
|
||||
function ftp_login ($ftp, $username, $password) {}
|
||||
|
||||
/**
|
||||
* Returns the current directory name
|
||||
* @link https://php.net/manual/en/function.ftp-pwd.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @return string|false the current directory name or <b>FALSE</b> on error.
|
||||
*/
|
||||
function ftp_pwd ($ftp_stream) {}
|
||||
function ftp_pwd ($ftp) {}
|
||||
|
||||
/**
|
||||
* Changes to the parent directory
|
||||
* @link https://php.net/manual/en/function.ftp-cdup.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ftp_cdup ($ftp_stream) {}
|
||||
function ftp_cdup ($ftp) {}
|
||||
|
||||
/**
|
||||
* Changes the current directory on a FTP server
|
||||
* @link https://php.net/manual/en/function.ftp-chdir.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $directory <p>
|
||||
|
@ -111,12 +111,12 @@ function ftp_cdup ($ftp_stream) {}
|
|||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
* If changing directory fails, PHP will also throw a warning.
|
||||
*/
|
||||
function ftp_chdir ($ftp_stream, $directory) {}
|
||||
function ftp_chdir ($ftp, $directory) {}
|
||||
|
||||
/**
|
||||
* Requests execution of a command on the FTP server
|
||||
* @link https://php.net/manual/en/function.ftp-exec.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $command <p>
|
||||
|
@ -125,12 +125,12 @@ function ftp_chdir ($ftp_stream, $directory) {}
|
|||
* @return bool <b>TRUE</b> if the command was successful (server sent response code:
|
||||
* 200); otherwise returns <b>FALSE</b>.
|
||||
*/
|
||||
function ftp_exec ($ftp_stream, $command) {}
|
||||
function ftp_exec ($ftp, $command) {}
|
||||
|
||||
/**
|
||||
* Sends an arbitrary command to an FTP server
|
||||
* @link https://php.net/manual/en/function.ftp-raw.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $command <p>
|
||||
|
@ -140,12 +140,12 @@ function ftp_exec ($ftp_stream, $command) {}
|
|||
* No parsing is performed on the response string, nor does
|
||||
* <b>ftp_raw</b> determine if the command succeeded.
|
||||
*/
|
||||
function ftp_raw ($ftp_stream, $command) {}
|
||||
function ftp_raw ($ftp, $command) {}
|
||||
|
||||
/**
|
||||
* Creates a directory
|
||||
* @link https://php.net/manual/en/function.ftp-mkdir.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $directory <p>
|
||||
|
@ -153,12 +153,12 @@ function ftp_raw ($ftp_stream, $command) {}
|
|||
* </p>
|
||||
* @return string|false the newly created directory name on success or <b>FALSE</b> on error.
|
||||
*/
|
||||
function ftp_mkdir ($ftp_stream, $directory) {}
|
||||
function ftp_mkdir ($ftp, $directory) {}
|
||||
|
||||
/**
|
||||
* Removes a directory
|
||||
* @link https://php.net/manual/en/function.ftp-rmdir.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $directory <p>
|
||||
|
@ -167,12 +167,12 @@ function ftp_mkdir ($ftp_stream, $directory) {}
|
|||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ftp_rmdir ($ftp_stream, $directory) {}
|
||||
function ftp_rmdir ($ftp, $directory) {}
|
||||
|
||||
/**
|
||||
* Set permissions on a file via FTP
|
||||
* @link https://php.net/manual/en/function.ftp-chmod.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param int $mode <p>
|
||||
|
@ -183,29 +183,29 @@ function ftp_rmdir ($ftp_stream, $directory) {}
|
|||
* </p>
|
||||
* @return int|false the new file permissions on success or <b>FALSE</b> on error.
|
||||
*/
|
||||
function ftp_chmod ($ftp_stream, $mode, $filename) {}
|
||||
function ftp_chmod ($ftp, $mode, $filename) {}
|
||||
|
||||
/**
|
||||
* Allocates space for a file to be uploaded
|
||||
* @link https://php.net/manual/en/function.ftp-alloc.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param int $filesize <p>
|
||||
* @param int $size <p>
|
||||
* The number of bytes to allocate.
|
||||
* </p>
|
||||
* @param string &$result [optional] <p>
|
||||
* @param string &$response [optional] <p>
|
||||
* A textual representation of the servers response will be returned by
|
||||
* reference in <i>result</i> if a variable is provided.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ftp_alloc ($ftp_stream, $filesize, &$result = null) {}
|
||||
function ftp_alloc ($ftp, $size, &$response = null) {}
|
||||
|
||||
/**
|
||||
* Returns a list of files in the given directory
|
||||
* @link https://php.net/manual/en/function.ftp-nlist.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $directory <p>
|
||||
|
@ -217,19 +217,19 @@ function ftp_alloc ($ftp_stream, $filesize, &$result = null) {}
|
|||
* @return array|false an array of filenames from the specified directory on success or
|
||||
* <b>FALSE</b> on error.
|
||||
*/
|
||||
function ftp_nlist ($ftp_stream, $directory) {}
|
||||
function ftp_nlist ($ftp, $directory) {}
|
||||
|
||||
/**
|
||||
* Returns a detailed list of files in the given directory
|
||||
* @link https://php.net/manual/en/function.ftp-rawlist.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $directory <p>
|
||||
* The directory path. May include arguments for the LIST
|
||||
* command.
|
||||
* </p>
|
||||
* @param bool $recursive [optional] <p>
|
||||
* @param bool $recurse [optional] <p>
|
||||
* If set to <b>TRUE</b>, the issued command will be LIST -R.
|
||||
* </p>
|
||||
* @return array an array where each element corresponds to one line of text.
|
||||
|
@ -239,22 +239,22 @@ function ftp_nlist ($ftp_stream, $directory) {}
|
|||
* <b>ftp_systype</b> can be used to determine how the results
|
||||
* should be interpreted.
|
||||
*/
|
||||
function ftp_rawlist ($ftp_stream, $directory, $recursive = false) {}
|
||||
function ftp_rawlist ($ftp, $directory, $recurse = false) {}
|
||||
|
||||
/**
|
||||
* Returns the system type identifier of the remote FTP server
|
||||
* @link https://php.net/manual/en/function.ftp-systype.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @return string|false the remote system type, or <b>FALSE</b> on error.
|
||||
*/
|
||||
function ftp_systype ($ftp_stream) {}
|
||||
function ftp_systype ($ftp) {}
|
||||
|
||||
/**
|
||||
* Turns passive mode on or off
|
||||
* @link https://php.net/manual/en/function.ftp-pasv.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param bool $pasv <p>
|
||||
|
@ -262,12 +262,12 @@ function ftp_systype ($ftp_stream) {}
|
|||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ftp_pasv ($ftp_stream, $pasv) {}
|
||||
function ftp_pasv ($ftp, $pasv) {}
|
||||
|
||||
/**
|
||||
* Downloads a file from the FTP server
|
||||
* @link https://php.net/manual/en/function.ftp-get.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $local_file <p>
|
||||
|
@ -285,15 +285,15 @@ function ftp_pasv ($ftp_stream, $pasv) {}
|
|||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ftp_get ($ftp_stream, $local_file, $remote_file, $mode = FTP_BINARY, $resumepos = 0) {}
|
||||
function ftp_get ($ftp, $local_file, $remote_file, $mode = FTP_BINARY, $resumepos = 0) {}
|
||||
|
||||
/**
|
||||
* Downloads a file from the FTP server and saves to an open file
|
||||
* @link https://php.net/manual/en/function.ftp-fget.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param resource $handle <p>
|
||||
* @param resource $fp <p>
|
||||
* An open file pointer in which we store the data.
|
||||
* </p>
|
||||
* @param string $remote_file <p>
|
||||
|
@ -308,12 +308,12 @@ function ftp_get ($ftp_stream, $local_file, $remote_file, $mode = FTP_BINARY, $r
|
|||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ftp_fget ($ftp_stream, $handle, $remote_file, $mode = FTP_BINARY, $resumepos = 0) {}
|
||||
function ftp_fget ($ftp, $fp, $remote_file, $mode = FTP_BINARY, $resumepos = 0) {}
|
||||
|
||||
/**
|
||||
* Uploads a file to the FTP server
|
||||
* @link https://php.net/manual/en/function.ftp-put.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $remote_file <p>
|
||||
|
@ -329,18 +329,18 @@ function ftp_fget ($ftp_stream, $handle, $remote_file, $mode = FTP_BINARY, $resu
|
|||
* @param int $startpos [optional] <p>The position in the remote file to start uploading to.</p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ftp_put ($ftp_stream, $remote_file, $local_file, $mode = FTP_BINARY, $startpos = 0) {}
|
||||
function ftp_put ($ftp, $remote_file, $local_file, $mode = FTP_BINARY, $startpos = 0) {}
|
||||
|
||||
/**
|
||||
* Uploads from an open file to the FTP server
|
||||
* @link https://php.net/manual/en/function.ftp-fput.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $remote_file <p>
|
||||
* The remote file path.
|
||||
* </p>
|
||||
* @param resource $handle <p>
|
||||
* @param resource $fp <p>
|
||||
* An open file pointer on the local file. Reading stops at end of file.
|
||||
* </p>
|
||||
* @param int $mode [optional] <p>
|
||||
|
@ -350,92 +350,92 @@ function ftp_put ($ftp_stream, $remote_file, $local_file, $mode = FTP_BINARY, $s
|
|||
* @param int $startpos [optional] <p>The position in the remote file to start uploading to.</p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ftp_fput ($ftp_stream, $remote_file, $handle, $mode = FTP_BINARY, $startpos = 0) {}
|
||||
function ftp_fput ($ftp, $remote_file, $fp, $mode = FTP_BINARY, $startpos = 0) {}
|
||||
|
||||
/**
|
||||
* Returns the size of the given file
|
||||
* @link https://php.net/manual/en/function.ftp-size.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $remote_file <p>
|
||||
* @param string $filename <p>
|
||||
* The remote file.
|
||||
* </p>
|
||||
* @return int the file size on success, or -1 on error.
|
||||
*/
|
||||
function ftp_size ($ftp_stream, $remote_file) {}
|
||||
function ftp_size ($ftp, $filename) {}
|
||||
|
||||
/**
|
||||
* Returns the last modified time of the given file
|
||||
* @link https://php.net/manual/en/function.ftp-mdtm.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $remote_file <p>
|
||||
* @param string $filename <p>
|
||||
* The file from which to extract the last modification time.
|
||||
* </p>
|
||||
* @return int the last modified time as a Unix timestamp on success, or -1 on
|
||||
* error.
|
||||
*/
|
||||
function ftp_mdtm ($ftp_stream, $remote_file) {}
|
||||
function ftp_mdtm ($ftp, $filename) {}
|
||||
|
||||
/**
|
||||
* Renames a file or a directory on the FTP server
|
||||
* @link https://php.net/manual/en/function.ftp-rename.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $oldname <p>
|
||||
* @param string $src <p>
|
||||
* The old file/directory name.
|
||||
* </p>
|
||||
* @param string $newname <p>
|
||||
* @param string $dest <p>
|
||||
* The new name.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ftp_rename ($ftp_stream, $oldname, $newname) {}
|
||||
function ftp_rename ($ftp, $src, $dest) {}
|
||||
|
||||
/**
|
||||
* Deletes a file on the FTP server
|
||||
* @link https://php.net/manual/en/function.ftp-delete.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $path <p>
|
||||
* @param string $file <p>
|
||||
* The file to delete.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ftp_delete ($ftp_stream, $path) {}
|
||||
function ftp_delete ($ftp, $file) {}
|
||||
|
||||
/**
|
||||
* Sends a SITE command to the server
|
||||
* @link https://php.net/manual/en/function.ftp-site.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $command <p>
|
||||
* @param string $cmd <p>
|
||||
* The SITE command. Note that this parameter isn't escaped so there may
|
||||
* be some issues with filenames containing spaces and other characters.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ftp_site ($ftp_stream, $command) {}
|
||||
function ftp_site ($ftp, $cmd) {}
|
||||
|
||||
/**
|
||||
* Closes an FTP connection
|
||||
* @link https://php.net/manual/en/function.ftp-close.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ftp_close ($ftp_stream) {}
|
||||
function ftp_close ($ftp) {}
|
||||
|
||||
/**
|
||||
* Set miscellaneous runtime FTP options
|
||||
* @link https://php.net/manual/en/function.ftp-set-option.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param int $option <p>
|
||||
|
@ -470,12 +470,12 @@ function ftp_close ($ftp_stream) {}
|
|||
* supported or the passed <i>value</i> doesn't match the
|
||||
* expected value for the given <i>option</i>.
|
||||
*/
|
||||
function ftp_set_option ($ftp_stream, $option, $value) {}
|
||||
function ftp_set_option ($ftp, $option, $value) {}
|
||||
|
||||
/**
|
||||
* Retrieves various runtime behaviours of the current FTP stream
|
||||
* @link https://php.net/manual/en/function.ftp-get-option.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param int $option <p>
|
||||
|
@ -500,15 +500,15 @@ function ftp_set_option ($ftp_stream, $option, $value) {}
|
|||
* <i>option</i> is not supported. In the latter case, a
|
||||
* warning message is also thrown.
|
||||
*/
|
||||
function ftp_get_option ($ftp_stream, $option) {}
|
||||
function ftp_get_option ($ftp, $option) {}
|
||||
|
||||
/**
|
||||
* Retrieves a file from the FTP server and writes it to an open file (non-blocking)
|
||||
* @link https://php.net/manual/en/function.ftp-nb-fget.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param resource $handle <p>
|
||||
* @param resource $fp <p>
|
||||
* An open file pointer in which we store the data.
|
||||
* </p>
|
||||
* @param string $remote_file <p>
|
||||
|
@ -518,16 +518,16 @@ function ftp_get_option ($ftp_stream, $option) {}
|
|||
* The transfer mode. Must be either <b>FTP_ASCII</b> or
|
||||
* <b>FTP_BINARY</b>.
|
||||
* </p>
|
||||
* @param int $resumepos [optional] <p>The position in the remote file to start downloading from.</p>
|
||||
* @param int $resumpos [optional] <p>The position in the remote file to start downloading from.</p>
|
||||
* @return int <b>FTP_FAILED</b> or <b>FTP_FINISHED</b>
|
||||
* or <b>FTP_MOREDATA</b>.
|
||||
*/
|
||||
function ftp_nb_fget ($ftp_stream, $handle, $remote_file, $mode = FTP_BINARY, $resumepos = 0) {}
|
||||
function ftp_nb_fget ($ftp, $fp, $remote_file, $mode = FTP_BINARY, $resumpos = 0) {}
|
||||
|
||||
/**
|
||||
* Retrieves a file from the FTP server and writes it to a local file (non-blocking)
|
||||
* @link https://php.net/manual/en/function.ftp-nb-get.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $local_file <p>
|
||||
|
@ -540,27 +540,27 @@ function ftp_nb_fget ($ftp_stream, $handle, $remote_file, $mode = FTP_BINARY, $r
|
|||
* The transfer mode. Must be either <b>FTP_ASCII</b> or
|
||||
* <b>FTP_BINARY</b>.
|
||||
* </p>
|
||||
* @param int $resumepos [optional] <p>The position in the remote file to start downloading from.</p>
|
||||
* @param int $resume_pos [optional] <p>The position in the remote file to start downloading from.</p>
|
||||
* @return int <b>FTP_FAILED</b> or <b>FTP_FINISHED</b>
|
||||
* or <b>FTP_MOREDATA</b>.
|
||||
*/
|
||||
function ftp_nb_get ($ftp_stream, $local_file, $remote_file, $mode = FTP_BINARY, $resumepos = 0) {}
|
||||
function ftp_nb_get ($ftp, $local_file, $remote_file, $mode = FTP_BINARY, $resume_pos = 0) {}
|
||||
|
||||
/**
|
||||
* Continues retrieving/sending a file (non-blocking)
|
||||
* @link https://php.net/manual/en/function.ftp-nb-continue.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @return int <b>FTP_FAILED</b> or <b>FTP_FINISHED</b>
|
||||
* or <b>FTP_MOREDATA</b>.
|
||||
*/
|
||||
function ftp_nb_continue ($ftp_stream) {}
|
||||
function ftp_nb_continue ($ftp) {}
|
||||
|
||||
/**
|
||||
* Stores a file on the FTP server (non-blocking)
|
||||
* @link https://php.net/manual/en/function.ftp-nb-put.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $remote_file <p>
|
||||
|
@ -577,18 +577,18 @@ function ftp_nb_continue ($ftp_stream) {}
|
|||
* @return int <b>FTP_FAILED</b> or <b>FTP_FINISHED</b>
|
||||
* or <b>FTP_MOREDATA</b>.
|
||||
*/
|
||||
function ftp_nb_put ($ftp_stream, $remote_file, $local_file, $mode = FTP_BINARY, $startpos = 0) {}
|
||||
function ftp_nb_put ($ftp, $remote_file, $local_file, $mode = FTP_BINARY, $startpos = 0) {}
|
||||
|
||||
/**
|
||||
* Stores a file from an open file to the FTP server (non-blocking)
|
||||
* @link https://php.net/manual/en/function.ftp-nb-fput.php
|
||||
* @param resource $ftp_stream <p>
|
||||
* @param resource $ftp <p>
|
||||
* The link identifier of the FTP connection.
|
||||
* </p>
|
||||
* @param string $remote_file <p>
|
||||
* The remote file path.
|
||||
* </p>
|
||||
* @param resource $handle <p>
|
||||
* @param resource $fp <p>
|
||||
* An open file pointer on the local file. Reading stops at end of file.
|
||||
* </p>
|
||||
* @param int $mode [optional] <p>
|
||||
|
@ -599,7 +599,7 @@ function ftp_nb_put ($ftp_stream, $remote_file, $local_file, $mode = FTP_BINARY,
|
|||
* @return int <b>FTP_FAILED</b> or <b>FTP_FINISHED</b>
|
||||
* or <b>FTP_MOREDATA</b>.
|
||||
*/
|
||||
function ftp_nb_fput ($ftp_stream, $remote_file, $handle, $mode = FTP_BINARY, $startpos = 0) {}
|
||||
function ftp_nb_fput ($ftp, $remote_file, $fp, $mode = FTP_BINARY, $startpos = 0) {}
|
||||
|
||||
/**
|
||||
* Alias of <b>ftp_close</b>
|
||||
|
|
|
@ -5,36 +5,36 @@
|
|||
/**
|
||||
* Sets the default domain
|
||||
* @link https://php.net/manual/en/function.textdomain.php
|
||||
* @param string|null $text_domain <p>
|
||||
* @param string|null $domain <p>
|
||||
* The new message domain, or <b>NULL</b> to get the current setting without
|
||||
* changing it
|
||||
* </p>
|
||||
* @return string If successful, this function returns the current message
|
||||
* domain, after possibly changing it.
|
||||
*/
|
||||
function textdomain ($text_domain) {}
|
||||
function textdomain ($domain) {}
|
||||
|
||||
/**
|
||||
* Lookup a message in the current domain
|
||||
* @link https://php.net/manual/en/function.gettext.php
|
||||
* @param string $message <p>
|
||||
* @param string $msgid <p>
|
||||
* The message being translated.
|
||||
* </p>
|
||||
* @return string a translated string if one is found in the
|
||||
* translation table, or the submitted message if not found.
|
||||
*/
|
||||
function gettext ($message) {}
|
||||
function gettext ($msgid) {}
|
||||
|
||||
/**
|
||||
* Lookup a message in the current domain
|
||||
* @link https://php.net/manual/en/function.gettext.php
|
||||
* @param string $message <p>
|
||||
* @param string $msgid <p>
|
||||
* The message being translated.
|
||||
* </p>
|
||||
* @return string a translated string if one is found in the
|
||||
* translation table, or the submitted message if not found.
|
||||
*/
|
||||
function _ ($message) {}
|
||||
function _ ($msgid) {}
|
||||
|
||||
/**
|
||||
* Override the current domain
|
||||
|
@ -42,12 +42,12 @@ function _ ($message) {}
|
|||
* @param string $domain <p>
|
||||
* The domain
|
||||
* </p>
|
||||
* @param string $message <p>
|
||||
* @param string $msgid <p>
|
||||
* The message
|
||||
* </p>
|
||||
* @return string A string on success.
|
||||
*/
|
||||
function dgettext ($domain, $message) {}
|
||||
function dgettext ($domain, $msgid) {}
|
||||
|
||||
/**
|
||||
* Overrides the domain for a single lookup
|
||||
|
@ -55,7 +55,7 @@ function dgettext ($domain, $message) {}
|
|||
* @param string $domain <p>
|
||||
* The domain
|
||||
* </p>
|
||||
* @param string $message <p>
|
||||
* @param string $msgid <p>
|
||||
* The message
|
||||
* </p>
|
||||
* @param int $category <p>
|
||||
|
@ -63,7 +63,7 @@ function dgettext ($domain, $message) {}
|
|||
* </p>
|
||||
* @return string A string on success.
|
||||
*/
|
||||
function dcgettext ($domain, $message, $category) {}
|
||||
function dcgettext ($domain, $msgid, $category) {}
|
||||
|
||||
/**
|
||||
* Sets the path for a domain
|
||||
|
@ -71,12 +71,12 @@ function dcgettext ($domain, $message, $category) {}
|
|||
* @param string $domain <p>
|
||||
* The domain
|
||||
* </p>
|
||||
* @param string $directory <p>
|
||||
* @param string $dir <p>
|
||||
* The directory path
|
||||
* </p>
|
||||
* @return string The full pathname for the <i>domain</i> currently being set.
|
||||
*/
|
||||
function bindtextdomain ($domain, $directory) {}
|
||||
function bindtextdomain ($domain, $dir) {}
|
||||
|
||||
/**
|
||||
* Plural version of gettext
|
||||
|
@ -98,10 +98,10 @@ function ngettext ($msgid1, $msgid2, $n) {}
|
|||
* </p>
|
||||
* @param string $msgid1
|
||||
* @param string $msgid2
|
||||
* @param int $n
|
||||
* @param int $count
|
||||
* @return string A string on success.
|
||||
*/
|
||||
function dngettext ($domain, $msgid1, $msgid2, $n) {}
|
||||
function dngettext ($domain, $msgid1, $msgid2, $count) {}
|
||||
|
||||
/**
|
||||
* Plural version of dcgettext
|
||||
|
@ -111,11 +111,11 @@ function dngettext ($domain, $msgid1, $msgid2, $n) {}
|
|||
* </p>
|
||||
* @param string $msgid1
|
||||
* @param string $msgid2
|
||||
* @param int $n
|
||||
* @param int $count
|
||||
* @param int $category
|
||||
* @return string A string on success.
|
||||
*/
|
||||
function dcngettext ($domain, $msgid1, $msgid2, $n, $category) {}
|
||||
function dcngettext ($domain, $msgid1, $msgid2, $count, $category) {}
|
||||
|
||||
/**
|
||||
* Specify the character encoding in which the messages from the DOMAIN message catalog will be returned
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
* @param string $data <p>
|
||||
* Message to be hashed.
|
||||
* </p>
|
||||
* @param bool $raw_output [optional] <p>
|
||||
* @param bool $binary [optional] <p>
|
||||
* When set to <b>TRUE</b>, outputs raw binary data.
|
||||
* <b>FALSE</b> outputs lowercase hexits.
|
||||
* </p>
|
||||
|
@ -20,7 +20,7 @@
|
|||
* unless <i>raw_output</i> is set to true in which case the raw
|
||||
* binary representation of the message digest is returned.
|
||||
*/
|
||||
function hash ($algo, $data, $raw_output = false) {}
|
||||
function hash ($algo, $data, $binary = false) {}
|
||||
|
||||
/**
|
||||
* Timing attack safe string comparison
|
||||
|
@ -42,7 +42,7 @@ function hash_equals($known_string, $user_string) {}
|
|||
* @param string $filename <p>
|
||||
* URL describing location of file to be hashed; Supports fopen wrappers.
|
||||
* </p>
|
||||
* @param bool $raw_output [optional] <p>
|
||||
* @param bool $binary [optional] <p>
|
||||
* When set to <b>TRUE</b>, outputs raw binary data.
|
||||
* <b>FALSE</b> outputs lowercase hexits.
|
||||
* </p>
|
||||
|
@ -50,7 +50,7 @@ function hash_equals($known_string, $user_string) {}
|
|||
* unless <i>raw_output</i> is set to true in which case the raw
|
||||
* binary representation of the message digest is returned.
|
||||
*/
|
||||
function hash_file ($algo, $filename, $raw_output = false) {}
|
||||
function hash_file ($algo, $filename, $binary = false) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.1.2, PECL hash >= 1.1)<br/>
|
||||
|
@ -66,7 +66,7 @@ function hash_file ($algo, $filename, $raw_output = false) {}
|
|||
* @param string $key <p>
|
||||
* Shared secret key used for generating the HMAC variant of the message digest.
|
||||
* </p>
|
||||
* @param bool $raw_output [optional] <p>
|
||||
* @param bool $binary [optional] <p>
|
||||
* When set to <b>TRUE</b>, outputs raw binary data.
|
||||
* <b>FALSE</b> outputs lowercase hexits.
|
||||
* </p>
|
||||
|
@ -74,7 +74,7 @@ function hash_file ($algo, $filename, $raw_output = false) {}
|
|||
* unless <i>raw_output</i> is set to true in which case the raw
|
||||
* binary representation of the message digest is returned.
|
||||
*/
|
||||
function hash_hmac ($algo, $data, $key, $raw_output = false) {}
|
||||
function hash_hmac ($algo, $data, $key, $binary = false) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.1.2, PECL hash >= 1.1)<br/>
|
||||
|
@ -84,13 +84,13 @@ function hash_hmac ($algo, $data, $key, $raw_output = false) {}
|
|||
* Name of selected hashing algorithm (i.e. "md5", "sha256", "haval160,4", etc..) See <b>hash_algos</b> for a list of supported algorithms.<br/>
|
||||
* Since 7.2.0 usage of non-cryptographic hash functions (adler32, crc32, crc32b, fnv132, fnv1a32, fnv164, fnv1a64, joaat) was disabled.
|
||||
* </p>
|
||||
* @param string $filename <p>
|
||||
* @param string $data <p>
|
||||
* URL describing location of file to be hashed; Supports fopen wrappers.
|
||||
* </p>
|
||||
* @param string $key <p>
|
||||
* Shared secret key used for generating the HMAC variant of the message digest.
|
||||
* </p>
|
||||
* @param bool $raw_output [optional] <p>
|
||||
* @param bool $binary [optional] <p>
|
||||
* When set to <b>TRUE</b>, outputs raw binary data.
|
||||
* <b>FALSE</b> outputs lowercase hexits.
|
||||
* </p>
|
||||
|
@ -98,7 +98,7 @@ function hash_hmac ($algo, $data, $key, $raw_output = false) {}
|
|||
* unless <i>raw_output</i> is set to true in which case the raw
|
||||
* binary representation of the message digest is returned.
|
||||
*/
|
||||
function hash_hmac_file ($algo, $filename, $key, $raw_output = false) {}
|
||||
function hash_hmac_file ($algo, $data, $key, $binary = false) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.1.2, PECL hash >= 1.1)<br/>
|
||||
|
@ -108,7 +108,7 @@ function hash_hmac_file ($algo, $filename, $key, $raw_output = false) {}
|
|||
* Name of selected hashing algorithm (i.e. "md5", "sha256", "haval160,4", etc..). For a list of supported algorithms see <b>hash_algos</b>.<br/>
|
||||
* Since 7.2.0 usage of non-cryptographic hash functions (adler32, crc32, crc32b, fnv132, fnv1a32, fnv164, fnv1a64, joaat) was disabled.
|
||||
* </p>
|
||||
* @param int $options [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* Optional settings for hash generation, currently supports only one option:
|
||||
* <b>HASH_HMAC</b>. When specified, the <i>key</i>
|
||||
* must be specified.
|
||||
|
@ -122,7 +122,7 @@ function hash_hmac_file ($algo, $filename, $key, $raw_output = false) {}
|
|||
* <b>hash_update_stream</b>, <b>hash_update_file</b>,
|
||||
* and <b>hash_final</b>.
|
||||
*/
|
||||
function hash_init ($algo, $options = 0, $key = null) {}
|
||||
function hash_init ($algo, $flags = 0, $key = null) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.1.2, PECL hash >= 1.1)<br/>
|
||||
|
@ -145,7 +145,7 @@ function hash_update ($context, $data) {}
|
|||
* @param resource $context <p>
|
||||
* Hashing context returned by <b>hash_init</b>.
|
||||
* </p>
|
||||
* @param resource $handle <p>
|
||||
* @param resource $stream <p>
|
||||
* Open file handle as returned by any stream creation function.
|
||||
* </p>
|
||||
* @param int $length [optional] <p>
|
||||
|
@ -154,24 +154,24 @@ function hash_update ($context, $data) {}
|
|||
* </p>
|
||||
* @return int Actual number of bytes added to the hashing context from <i>handle</i>.
|
||||
*/
|
||||
function hash_update_stream ($context, $handle, $length = -1) {}
|
||||
function hash_update_stream ($context, $stream, $length = -1) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.1.2, PECL hash >= 1.1)<br/>
|
||||
* Pump data into an active hashing context from a file
|
||||
* @link https://php.net/manual/en/function.hash-update-file.php
|
||||
* @param resource $hcontext <p>
|
||||
* @param resource $context <p>
|
||||
* Hashing context returned by <b>hash_init</b>.
|
||||
* </p>
|
||||
* @param string $filename <p>
|
||||
* URL describing location of file to be hashed; Supports fopen wrappers.
|
||||
* </p>
|
||||
* @param resource $scontext [optional] <p>
|
||||
* @param resource $stream_context [optional] <p>
|
||||
* Stream context as returned by <b>stream_context_create</b>.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function hash_update_file ($hcontext, $filename, $scontext = null) {}
|
||||
function hash_update_file ($context, $filename, $stream_context = null) {}
|
||||
|
||||
/**
|
||||
* (PHP 5 >= 5.1.2, PECL hash >= 1.1)<br/>
|
||||
|
@ -180,7 +180,7 @@ function hash_update_file ($hcontext, $filename, $scontext = null) {}
|
|||
* @param resource $context <p>
|
||||
* Hashing context returned by <b>hash_init</b>.
|
||||
* </p>
|
||||
* @param bool $raw_output [optional] <p>
|
||||
* @param bool $binary [optional] <p>
|
||||
* When set to <b>TRUE</b>, outputs raw binary data.
|
||||
* <b>FALSE</b> outputs lowercase hexits.
|
||||
* </p>
|
||||
|
@ -188,7 +188,7 @@ function hash_update_file ($hcontext, $filename, $scontext = null) {}
|
|||
* unless <i>raw_output</i> is set to true in which case the raw
|
||||
* binary representation of the message digest is returned.
|
||||
*/
|
||||
function hash_final ($context, $raw_output = false) {}
|
||||
function hash_final ($context, $binary = false) {}
|
||||
|
||||
/**
|
||||
* Copy hashing context
|
||||
|
@ -211,9 +211,6 @@ function hash_algos () {}
|
|||
|
||||
|
||||
/**
|
||||
* @since 7.1.2
|
||||
* Generate a HKDF key derivation of a supplied key input
|
||||
* @link https://php.net/manual/en/function.hash-hkdf.php
|
||||
* @param string $algo Name of selected hashing algorithm (i.e. "sha256", "sha512", "haval160,4", etc..)
|
||||
* See {@see hash_algos()} for a list of supported algorithms.
|
||||
* <blockquote>
|
||||
|
@ -222,14 +219,17 @@ function hash_algos () {}
|
|||
* Non-cryptographic hash functions are not allowed.
|
||||
* </p>
|
||||
* </blockquote>
|
||||
* @param string $ikm <p>Input keying material (raw binary). Cannot be empty.</p>
|
||||
* @param string $key <p>Input keying material (raw binary). Cannot be empty.</p>
|
||||
* @param int $length [optional] <p>Desired output length in bytes. Cannot be greater than 255 times the chosen hash function size.
|
||||
* If <b>length</b> is 0, the output length will default to the chosen hash function size.
|
||||
* @param string $info [optional] <p>Application/context-specific info string.</p>
|
||||
* @param string $salt [optional] <p>Salt to use during derivation. While optional, adding random salt significantly improves the strength of HKDF.</p>
|
||||
* @return string|false <p>Returns a string containing a raw binary representation of the derived key (also known as output keying material - OKM); or <b>FALSE</b> on failure.</p>
|
||||
* @since 7.1.2
|
||||
* Generate a HKDF key derivation of a supplied key input
|
||||
* @link https://php.net/manual/en/function.hash-hkdf.php
|
||||
*/
|
||||
function hash_hkdf(string $algo , string $ikm, int $length = 0, string $info = '', string $salt = '') {}
|
||||
function hash_hkdf(string $algo , string $key, int $length = 0, string $info = '', string $salt = '') {}
|
||||
|
||||
/**
|
||||
* @since 7.2
|
||||
|
@ -259,7 +259,7 @@ function hash_hmac_algos() {}
|
|||
* if raw_output is FALSE this corresponds to twice the byte-length of the derived key (as every byte of the key is returned as two hexits). <br/>
|
||||
* If 0 is passed, the entire output of the supplied algorithm is used.
|
||||
* </p>
|
||||
* @param bool $raw_output [optional] <p>
|
||||
* @param bool $binary [optional] <p>
|
||||
* When set to TRUE, outputs raw binary data. FALSE outputs lowercase hexits.
|
||||
* </p>
|
||||
* @return mixed a string containing the derived key as lowercase hexits unless
|
||||
|
@ -267,12 +267,12 @@ function hash_hmac_algos() {}
|
|||
* binary representation of the derived key is returned.
|
||||
* @since 5.5
|
||||
*/
|
||||
function hash_pbkdf2 ($algo, $password, $salt, $iterations, $length = 0, $raw_output = false) {}
|
||||
function hash_pbkdf2 ($algo, $password, $salt, $iterations, $length = 0, $binary = false) {}
|
||||
|
||||
/**
|
||||
* Generates a key
|
||||
* @link https://php.net/manual/en/function.mhash-keygen-s2k.php
|
||||
* @param int $hash <p>
|
||||
* @param int $algo <p>
|
||||
* The hash ID used to create the key.
|
||||
* One of the <b>MHASH_hashname</b> constants.
|
||||
* </p>
|
||||
|
@ -286,33 +286,33 @@ function hash_pbkdf2 ($algo, $password, $salt, $iterations, $length = 0, $raw_ou
|
|||
* the key to it. Salt has a fixed length of 8 bytes and will be padded
|
||||
* with zeros if you supply less bytes.
|
||||
* </p>
|
||||
* @param int $bytes <p>
|
||||
* @param int $length <p>
|
||||
* The key length, in bytes.
|
||||
* </p>
|
||||
* @return string|false the generated key as a string, or <b>FALSE</b> on error.
|
||||
*/
|
||||
function mhash_keygen_s2k ($hash, $password, $salt, $bytes) {}
|
||||
function mhash_keygen_s2k ($algo, $password, $salt, $length) {}
|
||||
|
||||
/**
|
||||
* Gets the block size of the specified hash
|
||||
* @link https://php.net/manual/en/function.mhash-get-block-size.php
|
||||
* @param int $hash <p>
|
||||
* @param int $algo <p>
|
||||
* The hash ID. One of the <b>MHASH_hashname</b> constants.
|
||||
* </p>
|
||||
* @return int|false the size in bytes or <b>FALSE</b>, if the <i>hash</i>
|
||||
* does not exist.
|
||||
*/
|
||||
function mhash_get_block_size ($hash) {}
|
||||
function mhash_get_block_size ($algo) {}
|
||||
|
||||
/**
|
||||
* Gets the name of the specified hash
|
||||
* @link https://php.net/manual/en/function.mhash-get-hash-name.php
|
||||
* @param int $hash <p>
|
||||
* @param int $algo <p>
|
||||
* The hash ID. One of the <b>MHASH_hashname</b> constants.
|
||||
* </p>
|
||||
* @return string|false the name of the hash or <b>FALSE</b>, if the hash does not exist.
|
||||
*/
|
||||
function mhash_get_hash_name ($hash) {}
|
||||
function mhash_get_hash_name ($algo) {}
|
||||
|
||||
/**
|
||||
* Gets the highest available hash ID
|
||||
|
@ -325,7 +325,7 @@ function mhash_count () {}
|
|||
/**
|
||||
* Computes hash
|
||||
* @link https://php.net/manual/en/function.mhash.php
|
||||
* @param int $hash <p>
|
||||
* @param int $algo <p>
|
||||
* The hash ID. One of the <b>MHASH_hashname</b> constants.
|
||||
* </p>
|
||||
* @param string $data <p>
|
||||
|
@ -340,7 +340,7 @@ function mhash_count () {}
|
|||
* @return string the resulting hash (also called digest) or HMAC as a string, or
|
||||
* <b>FALSE</b> on error.
|
||||
*/
|
||||
function mhash ($hash, $data, $key = null) {}
|
||||
function mhash ($algo, $data, $key = null) {}
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
/**
|
||||
* Convert string to requested character encoding
|
||||
* @link https://php.net/manual/en/function.iconv.php
|
||||
* @param string $in_charset <p>
|
||||
* @param string $from_encoding <p>
|
||||
* The input charset.
|
||||
* </p>
|
||||
* @param string $out_charset <p>
|
||||
* @param string $to_encoding <p>
|
||||
* The output charset.
|
||||
* </p>
|
||||
* <p>
|
||||
|
@ -21,12 +21,12 @@
|
|||
* discarded. Otherwise, <i>str</i> is cut from the first
|
||||
* illegal character and an <b>E_NOTICE</b> is generated.
|
||||
* </p>
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string to be converted.
|
||||
* </p>
|
||||
* @return string|false the converted string or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function iconv ($in_charset, $out_charset, $str) {}
|
||||
function iconv ($from_encoding, $to_encoding, $string) {}
|
||||
|
||||
/**
|
||||
* Convert character encoding as output buffer handler
|
||||
|
@ -67,32 +67,32 @@ function iconv_get_encoding ($type = "all") {}
|
|||
* output_encoding
|
||||
* internal_encoding
|
||||
* </p>
|
||||
* @param string $charset <p>
|
||||
* @param string $encoding <p>
|
||||
* The character set.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function iconv_set_encoding ($type, $charset) {}
|
||||
function iconv_set_encoding ($type, $encoding) {}
|
||||
|
||||
/**
|
||||
* Returns the character count of string
|
||||
* @link https://php.net/manual/en/function.iconv-strlen.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string.
|
||||
* </p>
|
||||
* @param string $charset [optional] <p>
|
||||
* @param string $encoding [optional] <p>
|
||||
* If <i>charset</i> parameter is omitted,
|
||||
* <i>str</i> is assumed to be encoded in
|
||||
* iconv.internal_encoding.
|
||||
* </p>
|
||||
* @return int|false the character count of <i>str</i>, as an integer. False on error.
|
||||
*/
|
||||
function iconv_strlen ($str, $charset = 'ini_get("iconv.internal_encoding")') {}
|
||||
function iconv_strlen ($string, $encoding = 'ini_get("iconv.internal_encoding")') {}
|
||||
|
||||
/**
|
||||
* Cut out part of a string
|
||||
* @link https://php.net/manual/en/function.iconv-substr.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The original string.
|
||||
* </p>
|
||||
* @param int $offset <p>
|
||||
|
@ -122,7 +122,7 @@ function iconv_strlen ($str, $charset = 'ini_get("iconv.internal_encoding")') {}
|
|||
* In case <i>offset</i> is also negative, the start position
|
||||
* is calculated beforehand according to the rule explained above.
|
||||
* </p>
|
||||
* @param string $charset [optional] <p>
|
||||
* @param string $encoding [optional] <p>
|
||||
* If <i>charset</i> parameter is omitted,
|
||||
* <i>string</i> are assumed to be encoded in
|
||||
* iconv.internal_encoding.
|
||||
|
@ -141,7 +141,7 @@ function iconv_strlen ($str, $charset = 'ini_get("iconv.internal_encoding")') {}
|
|||
* If <i>str</i> is shorter than <i>offset</i>
|
||||
* characters long, <b>FALSE</b> will be returned.
|
||||
*/
|
||||
function iconv_substr ($str, $offset, $length = 'iconv_strlen($str, $charset)', $charset = 'ini_get("iconv.internal_encoding")') {}
|
||||
function iconv_substr ($string, $offset, $length = 'iconv_strlen($str, $charset)', $encoding = 'ini_get("iconv.internal_encoding")') {}
|
||||
|
||||
/**
|
||||
* Finds position of first occurrence of a needle within a haystack
|
||||
|
@ -156,7 +156,7 @@ function iconv_substr ($str, $offset, $length = 'iconv_strlen($str, $charset)',
|
|||
* The optional <i>offset</i> parameter specifies
|
||||
* the position from which the search should be performed.
|
||||
* </p>
|
||||
* @param string $charset [optional] <p>
|
||||
* @param string $encoding [optional] <p>
|
||||
* If <i>charset</i> parameter is omitted,
|
||||
* <i>string</i> are assumed to be encoded in
|
||||
* iconv.internal_encoding.
|
||||
|
@ -168,7 +168,7 @@ function iconv_substr ($str, $offset, $length = 'iconv_strlen($str, $charset)',
|
|||
* If <i>needle</i> is not found,
|
||||
* <b>iconv_strpos</b> will return <b>FALSE</b>.
|
||||
*/
|
||||
function iconv_strpos ($haystack, $needle, $offset = 0, $charset = 'ini_get("iconv.internal_encoding")') {}
|
||||
function iconv_strpos ($haystack, $needle, $offset = 0, $encoding = 'ini_get("iconv.internal_encoding")') {}
|
||||
|
||||
/**
|
||||
* Finds the last occurrence of a needle within a haystack
|
||||
|
@ -179,7 +179,7 @@ function iconv_strpos ($haystack, $needle, $offset = 0, $charset = 'ini_get("ico
|
|||
* @param string $needle <p>
|
||||
* The searched substring.
|
||||
* </p>
|
||||
* @param string $charset [optional] <p>
|
||||
* @param string $encoding [optional] <p>
|
||||
* If <i>charset</i> parameter is omitted,
|
||||
* <i>string</i> are assumed to be encoded in
|
||||
* iconv.internal_encoding.
|
||||
|
@ -191,7 +191,7 @@ function iconv_strpos ($haystack, $needle, $offset = 0, $charset = 'ini_get("ico
|
|||
* If <i>needle</i> is not found,
|
||||
* <b>iconv_strrpos</b> will return <b>FALSE</b>.
|
||||
*/
|
||||
function iconv_strrpos ($haystack, $needle, $charset = 'ini_get("iconv.internal_encoding")') {}
|
||||
function iconv_strrpos ($haystack, $needle, $encoding = 'ini_get("iconv.internal_encoding")') {}
|
||||
|
||||
/**
|
||||
* Composes a MIME header field
|
||||
|
@ -202,7 +202,7 @@ function iconv_strrpos ($haystack, $needle, $charset = 'ini_get("iconv.internal_
|
|||
* @param string $field_value <p>
|
||||
* The field value.
|
||||
* </p>
|
||||
* @param array $preferences [optional] <p>
|
||||
* @param array $options [optional] <p>
|
||||
* You can control the behaviour of <b>iconv_mime_encode</b>
|
||||
* by specifying an associative array that contains configuration items
|
||||
* to the optional third parameter <i>preferences</i>.
|
||||
|
@ -291,12 +291,12 @@ function iconv_strrpos ($haystack, $needle, $charset = 'ini_get("iconv.internal_
|
|||
* @return string|false an encoded MIME field on success,
|
||||
* or <b>FALSE</b> if an error occurs during the encoding.
|
||||
*/
|
||||
function iconv_mime_encode ($field_name, $field_value, array $preferences = null) {}
|
||||
function iconv_mime_encode ($field_name, $field_value, array $options = null) {}
|
||||
|
||||
/**
|
||||
* Decodes a MIME header field
|
||||
* @link https://php.net/manual/en/function.iconv-mime-decode.php
|
||||
* @param string $encoded_header <p>
|
||||
* @param string $string <p>
|
||||
* The encoded header, as a string.
|
||||
* </p>
|
||||
* @param int $mode [optional] <p>
|
||||
|
@ -333,7 +333,7 @@ function iconv_mime_encode ($field_name, $field_value, array $preferences = null
|
|||
* </tr>
|
||||
* </table>
|
||||
* </p>
|
||||
* @param string $charset [optional] <p>
|
||||
* @param string $encoding [optional] <p>
|
||||
* The optional <i>charset</i> parameter specifies the
|
||||
* character set to represent the result by. If omitted,
|
||||
* iconv.internal_encoding
|
||||
|
@ -342,12 +342,12 @@ function iconv_mime_encode ($field_name, $field_value, array $preferences = null
|
|||
* @return string|false a decoded MIME field on success,
|
||||
* or <b>FALSE</b> if an error occurs during the decoding.
|
||||
*/
|
||||
function iconv_mime_decode ($encoded_header, $mode = 0, $charset = 'ini_get("iconv.internal_encoding")') {}
|
||||
function iconv_mime_decode ($string, $mode = 0, $encoding = 'ini_get("iconv.internal_encoding")') {}
|
||||
|
||||
/**
|
||||
* Decodes multiple MIME header fields at once
|
||||
* @link https://php.net/manual/en/function.iconv-mime-decode-headers.php
|
||||
* @param string $encoded_headers <p>
|
||||
* @param string $headers <p>
|
||||
* The encoded headers, as a string.
|
||||
* </p>
|
||||
* @param int $mode [optional] <p>
|
||||
|
@ -384,7 +384,7 @@ function iconv_mime_decode ($encoded_header, $mode = 0, $charset = 'ini_get("ico
|
|||
* </tr>
|
||||
* </table>
|
||||
* </p>
|
||||
* @param string $charset [optional] <p>
|
||||
* @param string $encoding [optional] <p>
|
||||
* The optional <i>charset</i> parameter specifies the
|
||||
* character set to represent the result by. If omitted,
|
||||
* iconv.internal_encoding
|
||||
|
@ -402,7 +402,7 @@ function iconv_mime_decode ($encoded_header, $mode = 0, $charset = 'ini_get("ico
|
|||
* <b>iconv_mime_decode_headers</b> automatically incorporates
|
||||
* them into a numerically indexed array in the order of occurrence.
|
||||
*/
|
||||
function iconv_mime_decode_headers ($encoded_headers, $mode = 0, $charset = 'ini_get("iconv.internal_encoding")') {}
|
||||
function iconv_mime_decode_headers ($headers, $mode = 0, $encoding = 'ini_get("iconv.internal_encoding")') {}
|
||||
|
||||
|
||||
/**
|
||||
|
|
344
ldap/ldap.php
344
ldap/ldap.php
|
@ -5,61 +5,61 @@
|
|||
/**
|
||||
* PASSWD extended operation helper
|
||||
* @link https://www.php.net/manual/en/function.ldap-exop-passwd.php
|
||||
* @param resource $link An LDAP link identifier, returned by ldap_connect().
|
||||
* @param resource $ldap An LDAP link identifier, returned by ldap_connect().
|
||||
* @param string $user [optional] dn of the user to change the password of.
|
||||
* @param string $oldpw [optional] The old password of this user. May be omitted depending of server configuration.
|
||||
* @param string $newpw [optional] The new password for this user. May be omitted or empty to have a generated password.
|
||||
* @param array &$serverctrls [optional] If provided, a password policy request control is send with the request and this is filled with an array of LDAP Controls returned with the request.
|
||||
* @param string $old_password [optional] The old password of this user. May be omitted depending of server configuration.
|
||||
* @param string $new_password [optional] The new password for this user. May be omitted or empty to have a generated password.
|
||||
* @param array &$controls [optional] If provided, a password policy request control is send with the request and this is filled with an array of LDAP Controls returned with the request.
|
||||
* @return string|bool Returns the generated password if newpw is empty or omitted. Otherwise returns TRUE on success and FALSE on failure.
|
||||
* @since 7.2
|
||||
*/
|
||||
function ldap_exop_passwd ($link , $user = "" , $oldpw = "" , $newpw = "" , array &$serverctrls = []) {}
|
||||
function ldap_exop_passwd ($ldap , $user = "" , $old_password = "" , $new_password = "" , array &$controls = []) {}
|
||||
|
||||
/**
|
||||
* Refresh extended operation helper
|
||||
* @link https://www.php.net/manual/en/function.ldap-exop-refresh.php
|
||||
* @param resource $link An LDAP link identifier, returned by ldap_connect().
|
||||
* @param resource $ldap An LDAP link identifier, returned by ldap_connect().
|
||||
* @param string $dn dn of the entry to refresh.
|
||||
* @param int $ttl $ttl Time in seconds (between 1 and 31557600) that the client requests that the entry exists in the directory before being automatically removed.
|
||||
* @return int|false From RFC: The responseTtl field is the time in seconds which the server chooses to have as the time-to-live field for that entry. It must not be any smaller than that which the client requested, and it may be larger. However, to allow servers to maintain a relatively accurate directory, and to prevent clients from abusing the dynamic extensions, servers are permitted to shorten a client-requested time-to-live value, down to a minimum of 86400 seconds (one day). FALSE will be returned on error.
|
||||
* @since 7.3
|
||||
*/
|
||||
function ldap_exop_refresh ($link, $dn ,$ttl) {}
|
||||
function ldap_exop_refresh ($ldap, $dn ,$ttl) {}
|
||||
|
||||
/**
|
||||
* WHOAMI extended operation helper
|
||||
* @link https://www.php.net/manual/en/function.ldap-exop-whoami.php
|
||||
* @param resource $link An LDAP link identifier, returned by ldap_connect().
|
||||
* @param resource $ldap An LDAP link identifier, returned by ldap_connect().
|
||||
* @return string|false The data returned by the server, or FALSE on error.
|
||||
* @since 7.2
|
||||
*/
|
||||
function ldap_exop_whoami ($link) {}
|
||||
function ldap_exop_whoami ($ldap) {}
|
||||
|
||||
/**
|
||||
* Performs an extended operation on the specified link with reqoid the OID of the operation and reqdata the data.
|
||||
* @link https://www.php.net/manual/en/function.ldap-exop.php
|
||||
* @param resource $link An LDAP link identifier, returned by ldap_connect().
|
||||
* @param string $reqoid The extended operation request OID. You may use one of LDAP_EXOP_START_TLS, LDAP_EXOP_MODIFY_PASSWD, LDAP_EXOP_REFRESH, LDAP_EXOP_WHO_AM_I, LDAP_EXOP_TURN, or a string with the OID of the operation you want to send.
|
||||
* @param string $reqdata [optional] The extended operation request data. May be NULL for some operations like LDAP_EXOP_WHO_AM_I, may also need to be BER encoded.
|
||||
* @param array $serverctrls [optional] If provided, a password policy request control is send with the request and this is filled with an array of LDAP Controls returned with the request.
|
||||
* @param string &$retdata [optional] Will be filled with the extended operation response data if provided. If not provided you may use ldap_parse_exop on the result object later to get this data.
|
||||
* @param string &$retoid [optional] Will be filled with the response OID if provided, usually equal to the request OID.
|
||||
* @param resource $ldap An LDAP link identifier, returned by ldap_connect().
|
||||
* @param string $request_oid The extended operation request OID. You may use one of LDAP_EXOP_START_TLS, LDAP_EXOP_MODIFY_PASSWD, LDAP_EXOP_REFRESH, LDAP_EXOP_WHO_AM_I, LDAP_EXOP_TURN, or a string with the OID of the operation you want to send.
|
||||
* @param string $request_data [optional] The extended operation request data. May be NULL for some operations like LDAP_EXOP_WHO_AM_I, may also need to be BER encoded.
|
||||
* @param array $controls [optional] If provided, a password policy request control is send with the request and this is filled with an array of LDAP Controls returned with the request.
|
||||
* @param string &$response_data [optional] Will be filled with the extended operation response data if provided. If not provided you may use ldap_parse_exop on the result object later to get this data.
|
||||
* @param string &$response_oid [optional] Will be filled with the response OID if provided, usually equal to the request OID.
|
||||
* @return resource|bool When used with retdata, returns TRUE on success or FALSE on error. When used without retdata, returns a result identifier or FALSE on error.
|
||||
* @since 7.2
|
||||
*/
|
||||
function ldap_exop ($link , $reqoid , $reqdata = null , $serverctrls = [], &$retdata, &$retoid) {}
|
||||
function ldap_exop ($ldap , $request_oid , $request_data = null , $controls = [], &$response_data, &$response_oid) {}
|
||||
|
||||
/**
|
||||
* Parse LDAP extended operation data from result object result
|
||||
* @link https://www.php.net/manual/en/function.ldap-parse-exop.php
|
||||
* @param resource $link An LDAP link identifier, returned by ldap_connect().
|
||||
* @param resource $ldap An LDAP link identifier, returned by ldap_connect().
|
||||
* @param resource $result An LDAP result resource, returned by ldap_exop().
|
||||
* @param string &$retdata [optional] Will be filled by the response data.
|
||||
* @param string &$retoid [optional] Will be filled by the response OID.
|
||||
* @param string &$response_data [optional] Will be filled by the response data.
|
||||
* @param string &$response_oid [optional] Will be filled by the response OID.
|
||||
* @return bool Returns TRUE on success or FALSE on failure.
|
||||
* @since 7.2
|
||||
*/
|
||||
function ldap_parse_exop ($link , $result, &$retdata, &$retoid) {}
|
||||
function ldap_parse_exop ($ldap , $result, &$response_data, &$response_oid) {}
|
||||
|
||||
/**
|
||||
* Translate 8859 characters to t61 characters
|
||||
|
@ -80,7 +80,7 @@ function ldap_t61_to_8859($value) {}
|
|||
/**
|
||||
* Connect to an LDAP server
|
||||
* @link https://php.net/manual/en/function.ldap-connect.php
|
||||
* @param string $hostname [optional] <p>
|
||||
* @param string $uri [optional] <p>
|
||||
* If you are using OpenLDAP 2.x.x you can specify a URL instead of the
|
||||
* hostname. To use LDAP with SSL, compile OpenLDAP 2.x.x with SSL
|
||||
* support, configure PHP with SSL, and set this parameter as
|
||||
|
@ -100,47 +100,47 @@ function ldap_t61_to_8859($value) {}
|
|||
* If no arguments are specified then the link identifier of the already
|
||||
* opened link will be returned.
|
||||
*/
|
||||
function ldap_connect ($hostname = null, $port = 389) {}
|
||||
function ldap_connect ($uri = null, $port = 389) {}
|
||||
|
||||
/**
|
||||
* Alias of <b>ldap_unbind</b>
|
||||
* @link https://php.net/manual/en/function.ldap-close.php
|
||||
* @param $link_identifier
|
||||
* @param $ldap
|
||||
*/
|
||||
function ldap_close ($link_identifier) {}
|
||||
function ldap_close ($ldap) {}
|
||||
|
||||
/**
|
||||
* Bind to LDAP directory
|
||||
* @link https://php.net/manual/en/function.ldap-bind.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $bind_rdn [optional]
|
||||
* @param string $bind_password [optional]
|
||||
* @param string $dn [optional]
|
||||
* @param string $password [optional]
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ldap_bind ($link_identifier, $bind_rdn = null, $bind_password = null) {}
|
||||
function ldap_bind ($ldap, $dn = null, $password = null) {}
|
||||
|
||||
/**
|
||||
* Bind to LDAP directory
|
||||
* Does the same thing as ldap_bind() but returns the LDAP result resource to be parsed with ldap_parse_result().
|
||||
* @link https://php.net/manual/en/function.ldap-bind.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $bind_rdn [optional]
|
||||
* @param string $bind_password [optional]
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param string $dn [optional]
|
||||
* @param string $password [optional]
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return resource|false
|
||||
* @since 7.3
|
||||
*/
|
||||
function ldap_bind_ext ($link_identifier, $bind_rdn = null, $bind_password = null, $serverctrls = []) {}
|
||||
function ldap_bind_ext ($ldap, $dn = null, $password = null, $controls = []) {}
|
||||
|
||||
|
||||
/**
|
||||
* Bind to LDAP directory using SASL
|
||||
* @link https://php.net/manual/en/function.ldap-sasl-bind.php
|
||||
* @param resource $link
|
||||
* @param resource $ldap
|
||||
* @param string $binddn [optional]
|
||||
* @param string $password [optional]
|
||||
* @param string $sasl_mech [optional]
|
||||
|
@ -150,25 +150,25 @@ function ldap_bind_ext ($link_identifier, $bind_rdn = null, $bind_password = nul
|
|||
* @param string $props [optional]
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ldap_sasl_bind ($link, $binddn = null, $password = null, $sasl_mech = null, $sasl_realm = null, $sasl_authc_id = null, $sasl_authz_id = null, $props = null) {}
|
||||
function ldap_sasl_bind ($ldap, $binddn = null, $password = null, $sasl_mech = null, $sasl_realm = null, $sasl_authc_id = null, $sasl_authz_id = null, $props = null) {}
|
||||
|
||||
/**
|
||||
* Unbind from LDAP directory
|
||||
* @link https://php.net/manual/en/function.ldap-unbind.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ldap_unbind ($link_identifier) {}
|
||||
function ldap_unbind ($ldap) {}
|
||||
|
||||
/**
|
||||
* Read an entry
|
||||
* @link https://php.net/manual/en/function.ldap-read.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $base_dn <p>
|
||||
* @param string $base <p>
|
||||
* The base DN for the directory.
|
||||
* </p>
|
||||
* @param string $filter <p>
|
||||
|
@ -189,7 +189,7 @@ function ldap_unbind ($link_identifier) {}
|
|||
* The use of this parameter should therefore be considered good
|
||||
* practice.
|
||||
* </p>
|
||||
* @param int $attrsonly [optional] <p>
|
||||
* @param int $attributes_only [optional] <p>
|
||||
* Should be set to 1 if only attribute types are wanted. If set to 0
|
||||
* both attributes types and attribute values are fetched which is the
|
||||
* default behaviour.
|
||||
|
@ -221,18 +221,18 @@ function ldap_unbind ($link_identifier) {}
|
|||
* one of the following:
|
||||
* <b>LDAP_DEREF_NEVER</b> - (default) aliases are never
|
||||
* dereferenced.
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return resource|false a search result identifier or <b>FALSE</b> on error.
|
||||
*/
|
||||
function ldap_read ($link_identifier, $base_dn, $filter, array $attributes = null, $attrsonly = null, $sizelimit = null, $timelimit = null, $deref = null, $serverctrls = []) {}
|
||||
function ldap_read ($ldap, $base, $filter, array $attributes = null, $attributes_only = null, $sizelimit = null, $timelimit = null, $deref = null, $controls = []) {}
|
||||
|
||||
/**
|
||||
* Single-level search
|
||||
* @link https://php.net/manual/en/function.ldap-list.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $base_dn <p>
|
||||
* @param string $base <p>
|
||||
* The base DN for the directory.
|
||||
* </p>
|
||||
* @param string $filter
|
||||
|
@ -247,7 +247,7 @@ function ldap_read ($link_identifier, $base_dn, $filter, array $attributes = nul
|
|||
* The use of this parameter should therefore be considered good
|
||||
* practice.
|
||||
* </p>
|
||||
* @param int $attrsonly [optional] <p>
|
||||
* @param int $attributes_only [optional] <p>
|
||||
* Should be set to 1 if only attribute types are wanted. If set to 0
|
||||
* both attributes types and attribute values are fetched which is the
|
||||
* default behaviour.
|
||||
|
@ -279,18 +279,18 @@ function ldap_read ($link_identifier, $base_dn, $filter, array $attributes = nul
|
|||
* one of the following:
|
||||
* <b>LDAP_DEREF_NEVER</b> - (default) aliases are never
|
||||
* dereferenced.
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return resource|false a search result identifier or <b>FALSE</b> on error.
|
||||
*/
|
||||
function ldap_list ($link_identifier, $base_dn, $filter, array $attributes = null, $attrsonly = null, $sizelimit = null, $timelimit = null, $deref = null, $serverctrls = []) {}
|
||||
function ldap_list ($ldap, $base, $filter, array $attributes = null, $attributes_only = null, $sizelimit = null, $timelimit = null, $deref = null, $controls = []) {}
|
||||
|
||||
/**
|
||||
* Search LDAP tree
|
||||
* @link https://php.net/manual/en/function.ldap-search.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $base_dn <p>
|
||||
* @param string $base <p>
|
||||
* The base DN for the directory.
|
||||
* </p>
|
||||
* @param string $filter <p>
|
||||
|
@ -309,7 +309,7 @@ function ldap_list ($link_identifier, $base_dn, $filter, array $attributes = nul
|
|||
* The use of this parameter should therefore be considered good
|
||||
* practice.
|
||||
* </p>
|
||||
* @param int $attrsonly [optional] <p>
|
||||
* @param int $attributes_only [optional] <p>
|
||||
* Should be set to 1 if only attribute types are wanted. If set to 0
|
||||
* both attributes types and attribute values are fetched which is the
|
||||
* default behaviour.
|
||||
|
@ -341,64 +341,64 @@ function ldap_list ($link_identifier, $base_dn, $filter, array $attributes = nul
|
|||
* one of the following:
|
||||
* <b>LDAP_DEREF_NEVER</b> - (default) aliases are never
|
||||
* dereferenced.
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return resource|false a search result identifier or <b>FALSE</b> on error.
|
||||
*/
|
||||
function ldap_search ($link_identifier, $base_dn, $filter, array $attributes = null, $attrsonly = null, $sizelimit = null, $timelimit = null, $deref = null, $serverctrls = []) {}
|
||||
function ldap_search ($ldap, $base, $filter, array $attributes = null, $attributes_only = null, $sizelimit = null, $timelimit = null, $deref = null, $controls = []) {}
|
||||
|
||||
/**
|
||||
* Free result memory
|
||||
* @link https://php.net/manual/en/function.ldap-free-result.php
|
||||
* @param resource $result_identifier
|
||||
* @param resource $ldap
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ldap_free_result ($result_identifier) {}
|
||||
function ldap_free_result ($ldap) {}
|
||||
|
||||
/**
|
||||
* Count the number of entries in a search
|
||||
* @link https://php.net/manual/en/function.ldap-count-entries.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param resource $result_identifier <p>
|
||||
* @param resource $result <p>
|
||||
* The internal LDAP result.
|
||||
* </p>
|
||||
* @return int|false number of entries in the result or <b>FALSE</b> on error.
|
||||
*/
|
||||
function ldap_count_entries ($link_identifier, $result_identifier) {}
|
||||
function ldap_count_entries ($ldap, $result) {}
|
||||
|
||||
/**
|
||||
* Return first result id
|
||||
* @link https://php.net/manual/en/function.ldap-first-entry.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param resource $result_identifier
|
||||
* @param resource $result
|
||||
* @return resource|false the result entry identifier for the first entry on success and
|
||||
* <b>FALSE</b> on error.
|
||||
*/
|
||||
function ldap_first_entry ($link_identifier, $result_identifier) {}
|
||||
function ldap_first_entry ($ldap, $result) {}
|
||||
|
||||
/**
|
||||
* Get next result entry
|
||||
* @link https://php.net/manual/en/function.ldap-next-entry.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param resource $result_entry_identifier
|
||||
* @param resource $result
|
||||
* @return resource|false entry identifier for the next entry in the result whose entries
|
||||
* are being read starting with <b>ldap_first_entry</b>. If
|
||||
* there are no more entries in the result then it returns <b>FALSE</b>.
|
||||
*/
|
||||
function ldap_next_entry ($link_identifier, $result_entry_identifier) {}
|
||||
function ldap_next_entry ($ldap, $result) {}
|
||||
|
||||
/**
|
||||
* Get all result entries
|
||||
* @link https://php.net/manual/en/function.ldap-get-entries.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param resource $result_identifier
|
||||
* @param resource $result
|
||||
* @return array a complete result information in a multi-dimensional array on
|
||||
* success and <b>FALSE</b> on error.
|
||||
* </p>
|
||||
|
@ -418,53 +418,51 @@ function ldap_next_entry ($link_identifier, $result_entry_identifier) {}
|
|||
* return_value[i]["attribute"][j] = jth value of attribute in ith entry
|
||||
* </pre>
|
||||
*/
|
||||
function ldap_get_entries ($link_identifier, $result_identifier) {}
|
||||
function ldap_get_entries ($ldap, $result) {}
|
||||
|
||||
/**
|
||||
* Return first attribute
|
||||
* @link https://php.net/manual/en/function.ldap-first-attribute.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param resource $result_entry_identifier
|
||||
* @param int $dummy_ber [optional] is the identifier to internal memory location pointer. This parameter is no longer used as this is now handled automatically by PHP. For backwards compatibility PHP will not throw an error if this parameter is passed.
|
||||
* @param resource $entry
|
||||
* @return string|false the first attribute in the entry on success and <b>FALSE</b> on
|
||||
* error.
|
||||
*/
|
||||
function ldap_first_attribute ($link_identifier, $result_entry_identifier, $dummy_ber = null) {}
|
||||
function ldap_first_attribute ($ldap, $entry) {}
|
||||
|
||||
/**
|
||||
* Get the next attribute in result
|
||||
* @link https://php.net/manual/en/function.ldap-next-attribute.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param resource $result_entry_identifier
|
||||
* @param int $dummy_ber [optional] The internal state of the pointer is maintained by this parameter. This parameter is no longer used as this is now handled automatically by PHP. For backwards compatibility PHP will not throw an error if this parameter is passed.
|
||||
* @param resource $entry
|
||||
* @return string|false the next attribute in an entry on success and <b>FALSE</b> on
|
||||
* error.
|
||||
*/
|
||||
function ldap_next_attribute ($link_identifier, $result_entry_identifier, $dummy_ber) {}
|
||||
function ldap_next_attribute ($ldap, $entry) {}
|
||||
|
||||
/**
|
||||
* Get attributes from a search result entry
|
||||
* @link https://php.net/manual/en/function.ldap-get-attributes.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param resource $result_entry_identifier
|
||||
* @param resource $entry
|
||||
* @return array a complete entry information in a multi-dimensional array
|
||||
* on success and <b>FALSE</b> on error.
|
||||
*/
|
||||
function ldap_get_attributes ($link_identifier, $result_entry_identifier) {}
|
||||
function ldap_get_attributes ($ldap, $entry) {}
|
||||
|
||||
/**
|
||||
* Get all values from a result entry
|
||||
* @link https://php.net/manual/en/function.ldap-get-values.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param resource $result_entry_identifier
|
||||
* @param resource $entry
|
||||
* @param string $attribute
|
||||
* @return array|false an array of values for the attribute on success and <b>FALSE</b> on
|
||||
* error. The number of values can be found by indexing "count" in the
|
||||
|
@ -479,33 +477,33 @@ function ldap_get_attributes ($link_identifier, $result_entry_identifier) {}
|
|||
* return_value[0] = first value of attribute
|
||||
* return_value[i] = ith value of attribute
|
||||
*/
|
||||
function ldap_get_values ($link_identifier, $result_entry_identifier, $attribute) {}
|
||||
function ldap_get_values ($ldap, $entry, $attribute) {}
|
||||
|
||||
/**
|
||||
* Get all binary values from a result entry
|
||||
* @link https://php.net/manual/en/function.ldap-get-values-len.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param resource $result_entry_identifier
|
||||
* @param resource $entry
|
||||
* @param string $attribute
|
||||
* @return array|false an array of values for the attribute on success and <b>FALSE</b> on
|
||||
* error. Individual values are accessed by integer index in the array. The
|
||||
* first index is 0. The number of values can be found by indexing "count"
|
||||
* in the resultant array.
|
||||
*/
|
||||
function ldap_get_values_len ($link_identifier, $result_entry_identifier, $attribute) {}
|
||||
function ldap_get_values_len ($ldap, $entry, $attribute) {}
|
||||
|
||||
/**
|
||||
* Get the DN of a result entry
|
||||
* @link https://php.net/manual/en/function.ldap-get-dn.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param resource $result_entry_identifier
|
||||
* @param resource $entry
|
||||
* @return string|false the DN of the result entry and <b>FALSE</b> on error.
|
||||
*/
|
||||
function ldap_get_dn ($link_identifier, $result_entry_identifier) {}
|
||||
function ldap_get_dn ($ldap, $entry) {}
|
||||
|
||||
/**
|
||||
* Splits DN into its component parts
|
||||
|
@ -539,7 +537,7 @@ function ldap_dn2ufn ($dn) {}
|
|||
/**
|
||||
* Add entries to LDAP directory
|
||||
* @link https://php.net/manual/en/function.ldap-add.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $dn <p>
|
||||
|
@ -556,16 +554,16 @@ function ldap_dn2ufn ($dn) {}
|
|||
* $entree["attribut2"][1] = "value2";
|
||||
* </code>
|
||||
* </p>
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ldap_add ($link_identifier, $dn, array $entry, $serverctrls = []) {}
|
||||
function ldap_add ($ldap, $dn, array $entry, $controls = []) {}
|
||||
|
||||
/**
|
||||
* Add entries to LDAP directory
|
||||
* Does the same thing as ldap_add() but returns the LDAP result resource to be parsed with ldap_parse_result().
|
||||
* @link https://www.php.net/manual/en/function.ldap-add-ext.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $dn <p>
|
||||
|
@ -582,164 +580,164 @@ function ldap_add ($link_identifier, $dn, array $entry, $serverctrls = []) {}
|
|||
* $entree["attribut2"][1] = "value2";
|
||||
* </code>
|
||||
* </p>
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return resource|false
|
||||
* @since 7.4
|
||||
*/
|
||||
function ldap_add_ext ($link_identifier, $dn, array $entry, $serverctrls = []) {}
|
||||
function ldap_add_ext ($ldap, $dn, array $entry, $controls = []) {}
|
||||
|
||||
/**
|
||||
* Delete an entry from a directory
|
||||
* @link https://php.net/manual/en/function.ldap-delete.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $dn <p>
|
||||
* The distinguished name of an LDAP entity.
|
||||
* </p>
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ldap_delete ($link_identifier, $dn, $serverctrls = []) {}
|
||||
function ldap_delete ($ldap, $dn, $controls = []) {}
|
||||
|
||||
/**
|
||||
* Delete an entry from a directory
|
||||
* Does the same thing as ldap_delete() but returns the LDAP result resource to be parsed with ldap_parse_result().
|
||||
* @link https://php.net/manual/en/function.ldap-delete-ext.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $dn <p>
|
||||
* The distinguished name of an LDAP entity.
|
||||
* </p>
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return resource|false
|
||||
* @since 7.3
|
||||
*/
|
||||
function ldap_delete_ext ($link_identifier, $dn, $serverctrls = []) {}
|
||||
function ldap_delete_ext ($ldap, $dn, $controls = []) {}
|
||||
|
||||
/**
|
||||
* This function is an alias of: ldap_mod_replace().
|
||||
* Replace attribute values with new ones
|
||||
* @link https://php.net/manual/en/function.ldap-mod-replace.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $dn <p>
|
||||
* The distinguished name of an LDAP entity.
|
||||
* </p>
|
||||
* @param array $entry
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
* @since 7.0
|
||||
*/
|
||||
function ldap_modify ($link_identifier, $dn, array $entry, $serverctrls = []) {}
|
||||
function ldap_modify ($ldap, $dn, array $entry, $controls = []) {}
|
||||
|
||||
/**
|
||||
* Add attribute values to current attributes
|
||||
* @link https://php.net/manual/en/function.ldap-mod-add.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $dn <p>
|
||||
* The distinguished name of an LDAP entity.
|
||||
* </p>
|
||||
* @param array $entry
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ldap_mod_add ($link_identifier, $dn, array $entry, $serverctrls = []) {}
|
||||
function ldap_mod_add ($ldap, $dn, array $entry, $controls = []) {}
|
||||
|
||||
/**
|
||||
* Add attribute values to current attributes
|
||||
* Does the same thing as ldap_mod_add() but returns the LDAP result resource to be parsed with ldap_parse_result().
|
||||
* @link https://php.net/manual/en/function.ldap-mod-add-ext.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $dn <p>
|
||||
* The distinguished name of an LDAP entity.
|
||||
* </p>
|
||||
* @param array $entry
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return resource|false
|
||||
*/
|
||||
function ldap_mod_add_ext ($link_identifier, $dn, array $entry, $serverctrls = []) {}
|
||||
function ldap_mod_add_ext ($ldap, $dn, array $entry, $controls = []) {}
|
||||
|
||||
/**
|
||||
* Replace attribute values with new ones
|
||||
* @link https://php.net/manual/en/function.ldap-mod-replace.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $dn <p>
|
||||
* The distinguished name of an LDAP entity.
|
||||
* </p>
|
||||
* @param array $entry
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ldap_mod_replace ($link_identifier, $dn, array $entry, $serverctrls = []) {}
|
||||
function ldap_mod_replace ($ldap, $dn, array $entry, $controls = []) {}
|
||||
|
||||
/**
|
||||
* Replace attribute values with new ones
|
||||
* Does the same thing as ldap_mod_replace() but returns the LDAP result resource to be parsed with ldap_parse_result().
|
||||
* @link https://php.net/manual/en/function.ldap-mod-replace-ext.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $dn <p>
|
||||
* The distinguished name of an LDAP entity.
|
||||
* </p>
|
||||
* @param array $entry
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return resource|false
|
||||
* @since 7.3
|
||||
*/
|
||||
function ldap_mod_replace_ext ($link_identifier, $dn, array $entry, $serverctrls = []) {}
|
||||
function ldap_mod_replace_ext ($ldap, $dn, array $entry, $controls = []) {}
|
||||
|
||||
/**
|
||||
* Delete attribute values from current attributes
|
||||
* @link https://php.net/manual/en/function.ldap-mod-del.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $dn <p>
|
||||
* The distinguished name of an LDAP entity.
|
||||
* </p>
|
||||
* @param array $entry
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ldap_mod_del ($link_identifier, $dn, array $entry, $serverctrls = []) {}
|
||||
function ldap_mod_del ($ldap, $dn, array $entry, $controls = []) {}
|
||||
|
||||
/**
|
||||
* Delete attribute values from current attributes
|
||||
* Does the same thing as ldap_mod_del() but returns the LDAP result resource to be parsed with ldap_parse_result().
|
||||
* @link https://php.net/manual/en/function.ldap-mod-del-ext.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $dn <p>
|
||||
* The distinguished name of an LDAP entity.
|
||||
* </p>
|
||||
* @param array $entry
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return resource|false
|
||||
* @since 7.3
|
||||
*/
|
||||
function ldap_mod_del_ext ($link_identifier, $dn, array $entry, $serverctrls = []) {}
|
||||
function ldap_mod_del_ext ($ldap, $dn, array $entry, $controls = []) {}
|
||||
|
||||
/**
|
||||
* Return the LDAP error number of the last LDAP command
|
||||
* @link https://php.net/manual/en/function.ldap-errno.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @return int Return the LDAP error number of the last LDAP command for this
|
||||
* link.
|
||||
*/
|
||||
function ldap_errno ($link_identifier) {}
|
||||
function ldap_errno ($ldap) {}
|
||||
|
||||
/**
|
||||
* Convert LDAP error number into string error message
|
||||
|
@ -754,17 +752,17 @@ function ldap_err2str ($errno) {}
|
|||
/**
|
||||
* Return the LDAP error message of the last LDAP command
|
||||
* @link https://php.net/manual/en/function.ldap-error.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @return string string error message.
|
||||
*/
|
||||
function ldap_error ($link_identifier) {}
|
||||
function ldap_error ($ldap) {}
|
||||
|
||||
/**
|
||||
* Compare value of attribute found in entry specified with DN
|
||||
* @link https://php.net/manual/en/function.ldap-compare.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $dn <p>
|
||||
|
@ -776,16 +774,16 @@ function ldap_error ($link_identifier) {}
|
|||
* @param string $value <p>
|
||||
* The compared value.
|
||||
* </p>
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return mixed <b>TRUE</b> if <i>value</i> matches otherwise returns
|
||||
* <b>FALSE</b>. Returns -1 on error.
|
||||
*/
|
||||
function ldap_compare ($link_identifier, $dn, $attribute, $value, $serverctrls = []) {}
|
||||
function ldap_compare ($ldap, $dn, $attribute, $value, $controls = []) {}
|
||||
|
||||
/**
|
||||
* Sort LDAP result entries
|
||||
* @link https://php.net/manual/en/function.ldap-sort.php
|
||||
* @param resource $link <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param resource $result <p>
|
||||
|
@ -799,62 +797,62 @@ function ldap_compare ($link_identifier, $dn, $attribute, $value, $serverctrls =
|
|||
* @removed 8.0
|
||||
* @return bool
|
||||
*/
|
||||
function ldap_sort ($link, $result, $sortfilter) {}
|
||||
function ldap_sort ($ldap, $result, $sortfilter) {}
|
||||
|
||||
/**
|
||||
* Modify the name of an entry
|
||||
* @link https://php.net/manual/en/function.ldap-rename.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $dn <p>
|
||||
* The distinguished name of an LDAP entity.
|
||||
* </p>
|
||||
* @param string $newrdn <p>
|
||||
* @param string $new_rdn <p>
|
||||
* The new RDN.
|
||||
* </p>
|
||||
* @param string $newparent <p>
|
||||
* @param string $new_parent <p>
|
||||
* The new parent/superior entry.
|
||||
* </p>
|
||||
* @param bool $deleteoldrdn <p>
|
||||
* @param bool $delete_old_rdn <p>
|
||||
* If <b>TRUE</b> the old RDN value(s) is removed, else the old RDN value(s)
|
||||
* is retained as non-distinguished values of the entry.
|
||||
* </p>
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ldap_rename ($link_identifier, $dn, $newrdn, $newparent, $deleteoldrdn, $serverctrls = []) {}
|
||||
function ldap_rename ($ldap, $dn, $new_rdn, $new_parent, $delete_old_rdn, $controls = []) {}
|
||||
|
||||
/**
|
||||
* Modify the name of an entry
|
||||
* Does the same thing as ldap_rename() but returns the LDAP result resource to be parsed with ldap_parse_result().
|
||||
* @link https://php.net/manual/en/function.ldap-rename-ext.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param string $dn <p>
|
||||
* The distinguished name of an LDAP entity.
|
||||
* </p>
|
||||
* @param string $newrdn <p>
|
||||
* @param string $new_rdn <p>
|
||||
* The new RDN.
|
||||
* </p>
|
||||
* @param string $newparent <p>
|
||||
* @param string $new_parent <p>
|
||||
* The new parent/superior entry.
|
||||
* </p>
|
||||
* @param bool $deleteoldrdn <p>
|
||||
* @param bool $delete_old_rdn <p>
|
||||
* If <b>TRUE</b> the old RDN value(s) is removed, else the old RDN value(s)
|
||||
* is retained as non-distinguished values of the entry.
|
||||
* </p>
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return resource|false
|
||||
* @since 7.3
|
||||
*/
|
||||
function ldap_rename_ext ($link_identifier, $dn, $newrdn, $newparent, $deleteoldrdn, $serverctrls = []) {}
|
||||
function ldap_rename_ext ($ldap, $dn, $new_rdn, $new_parent, $delete_old_rdn, $controls = []) {}
|
||||
|
||||
/**
|
||||
* Get the current value for given option
|
||||
* @link https://php.net/manual/en/function.ldap-get-option.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param int $option <p>
|
||||
|
@ -916,17 +914,17 @@ function ldap_rename_ext ($link_identifier, $dn, $newrdn, $newparent, $deleteold
|
|||
* <td>array</td>
|
||||
* </tr>
|
||||
* </p>
|
||||
* @param mixed &$retval <p>
|
||||
* @param mixed &$value <p>
|
||||
* This will be set to the option value.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ldap_get_option ($link_identifier, $option, &$retval) {}
|
||||
function ldap_get_option ($ldap, $option, &$value) {}
|
||||
|
||||
/**
|
||||
* Set the value of the given option
|
||||
* @link https://php.net/manual/en/function.ldap-set-option.php
|
||||
* @param resource $link_identifier <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param int $option <p>
|
||||
|
@ -1017,76 +1015,76 @@ function ldap_get_option ($link_identifier, $option, &$retval) {}
|
|||
* if not supplied. See draft-ietf-ldapext-ldap-c-api-xx.txt
|
||||
* for details. See also the second example below.
|
||||
* </p>
|
||||
* @param mixed $newval <p>
|
||||
* @param mixed $value <p>
|
||||
* The new value for the specified <i>option</i>.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function ldap_set_option ($link_identifier, $option, $newval) {}
|
||||
function ldap_set_option ($ldap, $option, $value) {}
|
||||
|
||||
/**
|
||||
* Return first reference
|
||||
* @link https://php.net/manual/en/function.ldap-first-reference.php
|
||||
* @param resource $link
|
||||
* @param resource $ldap
|
||||
* @param resource $result
|
||||
* @return resource
|
||||
*/
|
||||
function ldap_first_reference ($link, $result) {}
|
||||
function ldap_first_reference ($ldap, $result) {}
|
||||
|
||||
/**
|
||||
* Get next reference
|
||||
* @link https://php.net/manual/en/function.ldap-next-reference.php
|
||||
* @param resource $link
|
||||
* @param resource $ldap
|
||||
* @param resource $entry
|
||||
* @return resource
|
||||
*/
|
||||
function ldap_next_reference ($link, $entry) {}
|
||||
function ldap_next_reference ($ldap, $entry) {}
|
||||
|
||||
/**
|
||||
* Extract information from reference entry
|
||||
* @link https://php.net/manual/en/function.ldap-parse-reference.php
|
||||
* @param resource $link
|
||||
* @param resource $ldap
|
||||
* @param resource $entry
|
||||
* @param array &$referrals
|
||||
* @return bool
|
||||
*/
|
||||
function ldap_parse_reference ($link, $entry, array &$referrals) {}
|
||||
function ldap_parse_reference ($ldap, $entry, array &$referrals) {}
|
||||
|
||||
/**
|
||||
* Extract information from result
|
||||
* @link https://php.net/manual/en/function.ldap-parse-result.php
|
||||
* @param resource $link
|
||||
* @param resource $ldap
|
||||
* @param resource $result
|
||||
* @param int &$errcode
|
||||
* @param string &$matcheddn [optional]
|
||||
* @param string &$errmsg [optional]
|
||||
* @param int &$error_code
|
||||
* @param string &$matched_dn [optional]
|
||||
* @param string &$error_message [optional]
|
||||
* @param array &$referrals [optional]
|
||||
* @param array &$serverctrls [optional] An array of LDAP Controls which have been sent with the response.
|
||||
* @param array &$controls [optional] An array of LDAP Controls which have been sent with the response.
|
||||
* @return bool
|
||||
*/
|
||||
function ldap_parse_result ($link, $result, &$errcode, &$matcheddn = null, &$errmsg = null, array &$referrals = null, &$serverctrls = []) {}
|
||||
function ldap_parse_result ($ldap, $result, &$error_code, &$matched_dn = null, &$error_message = null, array &$referrals = null, &$controls = []) {}
|
||||
|
||||
/**
|
||||
* Start TLS
|
||||
* @link https://php.net/manual/en/function.ldap-start-tls.php
|
||||
* @param resource $link
|
||||
* @param resource $ldap
|
||||
* @return bool
|
||||
*/
|
||||
function ldap_start_tls ($link) {}
|
||||
function ldap_start_tls ($ldap) {}
|
||||
|
||||
/**
|
||||
* Set a callback function to do re-binds on referral chasing
|
||||
* @link https://php.net/manual/en/function.ldap-set-rebind-proc.php
|
||||
* @param resource $link
|
||||
* @param resource $ldap
|
||||
* @param callable $callback
|
||||
* @return bool
|
||||
*/
|
||||
function ldap_set_rebind_proc ($link, callable $callback) {}
|
||||
function ldap_set_rebind_proc ($ldap, callable $callback) {}
|
||||
|
||||
/**
|
||||
* Send LDAP pagination control
|
||||
* @link https://php.net/manual/en/function.ldap-control-paged-result.php
|
||||
* @param resource $link <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param int $pagesize <p>
|
||||
|
@ -1105,12 +1103,12 @@ function ldap_set_rebind_proc ($link, callable $callback) {}
|
|||
* @since 5.4
|
||||
* @deprecated 7.4
|
||||
*/
|
||||
function ldap_control_paged_result ($link, $pagesize, $iscritical = false, $cookie = "") {}
|
||||
function ldap_control_paged_result ($ldap, $pagesize, $iscritical = false, $cookie = "") {}
|
||||
|
||||
/**
|
||||
* Retrieve the LDAP pagination cookie
|
||||
* @link https://php.net/manual/en/function.ldap-control-paged-result-response.php
|
||||
* @param resource $link <p>
|
||||
* @param resource $ldap <p>
|
||||
* An LDAP link identifier, returned by <b>ldap_connect</b>.
|
||||
* </p>
|
||||
* @param resource $result
|
||||
|
@ -1124,7 +1122,7 @@ function ldap_control_paged_result ($link, $pagesize, $iscritical = false, $cook
|
|||
* @since 5.4
|
||||
* @deprecated 7.4
|
||||
*/
|
||||
function ldap_control_paged_result_response ($link, $result, &$cookie = null, &$estimated = null) {}
|
||||
function ldap_control_paged_result_response ($ldap, $result, &$cookie = null, &$estimated = null) {}
|
||||
|
||||
/**
|
||||
* Escape a string for use in an LDAP filter or DN
|
||||
|
@ -1141,12 +1139,12 @@ function ldap_escape ($value, $ignore = "", $flags = 0) {}
|
|||
* (PHP 5.4 >= 5.4.26, PHP 5.5 >= 5.5.10, PHP 5.6 >= 5.6.0)
|
||||
* Batch and execute modifications on an LDAP entry
|
||||
* @link https://php.net/manual/en/function.ldap-modify-batch.php
|
||||
* @param $link_identifier <p>
|
||||
* @param $ldap <p>
|
||||
* An LDAP link identifier, returned by
|
||||
* {@see ldap_connect()}.
|
||||
* </p>
|
||||
* @param $dn <p>The distinguished name of an LDAP entity.</p>
|
||||
* @param $entry <p>An array that specifies the modifications to make. Each entry in this
|
||||
* @param $modifications_info <p>An array that specifies the modifications to make. Each entry in this
|
||||
* array is an associative array with two or three keys:
|
||||
* <em>attrib</em> maps to the name of the attribute to modify,
|
||||
* <em>modtype</em> maps to the type of modification to perform,
|
||||
|
@ -1212,19 +1210,19 @@ function ldap_escape ($value, $ignore = "", $flags = 0) {}
|
|||
* any value for <em>modtype</em> must be one of the
|
||||
* <b>LDAP_MODIFY_BATCH_*</b> constants listed above.
|
||||
* </p></p>
|
||||
* @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
|
||||
* @param array $controls [optional] Array of LDAP Controls to send with the request.
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
* @since 5.4
|
||||
*/
|
||||
function ldap_modify_batch ( $link_identifier , $dn , $entry, $serverctrls = []) {}
|
||||
function ldap_modify_batch ($ldap , $dn , $modifications_info, $controls = []) {}
|
||||
|
||||
/**
|
||||
* @param resource $link_identifier
|
||||
* @param resource $result_identifier
|
||||
* @param resource $ldap
|
||||
* @param resource $result
|
||||
* @return int returns the number of reference messages in a search result.
|
||||
* @since 8.0
|
||||
*/
|
||||
function ldap_count_references($link_identifier, $result_identifier){}
|
||||
function ldap_count_references($ldap, $result){}
|
||||
|
||||
define('LDAP_ESCAPE_FILTER', 1);
|
||||
define ('LDAP_ESCAPE_DN', 2);
|
||||
|
|
|
@ -63,13 +63,13 @@ class LibXMLError {
|
|||
/**
|
||||
* Set the streams context for the next libxml document load or write
|
||||
* @link https://php.net/manual/en/function.libxml-set-streams-context.php
|
||||
* @param resource $streams_context <p>
|
||||
* @param resource $context <p>
|
||||
* The stream context resource (created with
|
||||
* <b>stream_context_create</b>)
|
||||
* </p>
|
||||
* @return void No value is returned.
|
||||
*/
|
||||
function libxml_set_streams_context ($streams_context) {}
|
||||
function libxml_set_streams_context ($context) {}
|
||||
|
||||
/**
|
||||
* Disable libxml errors and allow user to fetch error information as needed
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
/**
|
||||
* Perform case folding on a string
|
||||
* @link https://php.net/manual/en/function.mb-convert-case.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string being converted.
|
||||
* </p>
|
||||
* @param int $mode <p>
|
||||
|
@ -18,29 +18,29 @@
|
|||
* @return string A case folded version of string converted in the
|
||||
* way specified by mode.
|
||||
*/
|
||||
function mb_convert_case ($str, $mode, $encoding = null) {}
|
||||
function mb_convert_case ($string, $mode, $encoding = null) {}
|
||||
|
||||
/**
|
||||
* Make a string uppercase
|
||||
* @link https://php.net/manual/en/function.mb-strtoupper.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string being uppercased.
|
||||
* </p>
|
||||
* @param string $encoding [optional] &mbstring.encoding.parameter;
|
||||
* @return string str with all alphabetic characters converted to uppercase.
|
||||
*/
|
||||
function mb_strtoupper ($str, $encoding = null) {}
|
||||
function mb_strtoupper ($string, $encoding = null) {}
|
||||
|
||||
/**
|
||||
* Make a string lowercase
|
||||
* @link https://php.net/manual/en/function.mb-strtolower.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string being lowercased.
|
||||
* </p>
|
||||
* @param string $encoding [optional] &mbstring.encoding.parameter;
|
||||
* @return string str with all alphabetic characters converted to lowercase.
|
||||
*/
|
||||
function mb_strtolower ($str, $encoding = null) {}
|
||||
function mb_strtolower ($string, $encoding = null) {}
|
||||
|
||||
/**
|
||||
* Set/Get current language
|
||||
|
@ -120,7 +120,7 @@ function mb_http_output ($encoding = null) {}
|
|||
/**
|
||||
* Set/Get character encoding detection order
|
||||
* @link https://php.net/manual/en/function.mb-detect-order.php
|
||||
* @param mixed $encoding_list [optional] <p>
|
||||
* @param mixed $encoding [optional] <p>
|
||||
* encoding_list is an array or
|
||||
* comma separated list of character encoding. ("auto" is expanded to
|
||||
* "ASCII, JIS, UTF-8, EUC-JP, SJIS")
|
||||
|
@ -160,12 +160,12 @@ function mb_http_output ($encoding = null) {}
|
|||
* When getting the encoding detection order, an ordered array
|
||||
* of the encodings is returned.
|
||||
*/
|
||||
function mb_detect_order ($encoding_list = null) {}
|
||||
function mb_detect_order ($encoding = null) {}
|
||||
|
||||
/**
|
||||
* Set/Get substitution character
|
||||
* @link https://php.net/manual/en/function.mb-substitute-character.php
|
||||
* @param int|string $substrchar [optional] <p>
|
||||
* @param int|string $substitute_character [optional] <p>
|
||||
* Specify the Unicode value as an integer,
|
||||
* or as one of the following strings:<ul>
|
||||
* <li>"none" : no output
|
||||
|
@ -176,12 +176,12 @@ function mb_detect_order ($encoding_list = null) {}
|
|||
* If substchar is not set, it returns the Unicode value,
|
||||
* or "none" or "long".
|
||||
*/
|
||||
function mb_substitute_character ($substrchar = null) {}
|
||||
function mb_substitute_character ($substitute_character = null) {}
|
||||
|
||||
/**
|
||||
* Parse GET/POST/COOKIE data and set global variable
|
||||
* @link https://php.net/manual/en/function.mb-parse-str.php
|
||||
* @param string $encoded_string <p>
|
||||
* @param string $string <p>
|
||||
* The URL encoded data.
|
||||
* </p>
|
||||
* @param array &$result [optional] <p>
|
||||
|
@ -189,12 +189,12 @@ function mb_substitute_character ($substrchar = null) {}
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function mb_parse_str ($encoded_string, array &$result = null) {}
|
||||
function mb_parse_str ($string, array &$result = null) {}
|
||||
|
||||
/**
|
||||
* Callback function converts character encoding in output buffer
|
||||
* @link https://php.net/manual/en/function.mb-output-handler.php
|
||||
* @param string $contents <p>
|
||||
* @param string $string <p>
|
||||
* The contents of the output buffer.
|
||||
* </p>
|
||||
* @param int $status <p>
|
||||
|
@ -202,7 +202,7 @@ function mb_parse_str ($encoded_string, array &$result = null) {}
|
|||
* </p>
|
||||
* @return string The converted string.
|
||||
*/
|
||||
function mb_output_handler ($contents, $status) {}
|
||||
function mb_output_handler ($string, $status) {}
|
||||
|
||||
/**
|
||||
* Get MIME charset string
|
||||
|
@ -218,7 +218,7 @@ function mb_preferred_mime_name ($encoding) {}
|
|||
/**
|
||||
* Get string length
|
||||
* @link https://php.net/manual/en/function.mb-strlen.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string being checked for length.
|
||||
* </p>
|
||||
* @param string $encoding [optional] &mbstring.encoding.parameter;
|
||||
|
@ -227,7 +227,7 @@ function mb_preferred_mime_name ($encoding) {}
|
|||
* encoding. A multi-byte character is
|
||||
* counted as 1.
|
||||
*/
|
||||
function mb_strlen ($str, $encoding = null) {}
|
||||
function mb_strlen ($string, $encoding = null) {}
|
||||
|
||||
/**
|
||||
* Find position of first occurrence of string in a string
|
||||
|
@ -446,7 +446,7 @@ function mb_substr_count ($haystack, $needle, $encoding = null) {}
|
|||
/**
|
||||
* Get part of string
|
||||
* @link https://php.net/manual/en/function.mb-substr.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string being checked.
|
||||
* </p>
|
||||
* @param int $start <p>
|
||||
|
@ -461,12 +461,12 @@ function mb_substr_count ($haystack, $needle, $encoding = null) {}
|
|||
* start and
|
||||
* length parameters.
|
||||
*/
|
||||
function mb_substr ($str, $start, $length = null, $encoding = null) {}
|
||||
function mb_substr ($string, $start, $length = null, $encoding = null) {}
|
||||
|
||||
/**
|
||||
* Get part of string
|
||||
* @link https://php.net/manual/en/function.mb-strcut.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string being cut.
|
||||
* </p>
|
||||
* @param int $start <p>
|
||||
|
@ -481,23 +481,23 @@ function mb_substr ($str, $start, $length = null, $encoding = null) {}
|
|||
* start and
|
||||
* length parameters.
|
||||
*/
|
||||
function mb_strcut ($str, $start, $length = null, $encoding = null) {}
|
||||
function mb_strcut ($string, $start, $length = null, $encoding = null) {}
|
||||
|
||||
/**
|
||||
* Return width of string
|
||||
* @link https://php.net/manual/en/function.mb-strwidth.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string being decoded.
|
||||
* </p>
|
||||
* @param string $encoding [optional] &mbstring.encoding.parameter;
|
||||
* @return int The width of string str.
|
||||
*/
|
||||
function mb_strwidth ($str, $encoding = null) {}
|
||||
function mb_strwidth ($string, $encoding = null) {}
|
||||
|
||||
/**
|
||||
* Get truncated string with specified width
|
||||
* @link https://php.net/manual/en/function.mb-strimwidth.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string being decoded.
|
||||
* </p>
|
||||
* @param int $start <p>
|
||||
|
@ -507,7 +507,7 @@ function mb_strwidth ($str, $encoding = null) {}
|
|||
* @param int $width <p>
|
||||
* The width of the desired trim.
|
||||
* </p>
|
||||
* @param string $trimmarker [optional] <p>
|
||||
* @param string $trim_marker [optional] <p>
|
||||
* A string that is added to the end of string
|
||||
* when string is truncated.
|
||||
* </p>
|
||||
|
@ -515,12 +515,12 @@ function mb_strwidth ($str, $encoding = null) {}
|
|||
* @return string The truncated string. If trimmarker is set,
|
||||
* trimmarker is appended to the return value.
|
||||
*/
|
||||
function mb_strimwidth ($str, $start, $width, $trimmarker = null, $encoding = null) {}
|
||||
function mb_strimwidth ($string, $start, $width, $trim_marker = null, $encoding = null) {}
|
||||
|
||||
/**
|
||||
* Convert character encoding
|
||||
* @link https://php.net/manual/en/function.mb-convert-encoding.php
|
||||
* @param string|array $str <p>
|
||||
* @param string|array $string <p>
|
||||
* The string being encoded.
|
||||
* </p>
|
||||
* @param string $to_encoding <p>
|
||||
|
@ -538,15 +538,15 @@ function mb_strimwidth ($str, $start, $width, $trimmarker = null, $encoding = nu
|
|||
* </p>
|
||||
* @return string The encoded string.
|
||||
*/
|
||||
function mb_convert_encoding ($str, $to_encoding, $from_encoding = null) {}
|
||||
function mb_convert_encoding ($string, $to_encoding, $from_encoding = null) {}
|
||||
|
||||
/**
|
||||
* Detect character encoding
|
||||
* @link https://php.net/manual/en/function.mb-detect-encoding.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string being detected.
|
||||
* </p>
|
||||
* @param string|string[] $encoding_list [optional] <p>
|
||||
* @param string|string[] $encodings [optional] <p>
|
||||
* encoding_list is list of character
|
||||
* encoding. Encoding order may be specified by array or comma
|
||||
* separated list string.
|
||||
|
@ -563,7 +563,7 @@ function mb_convert_encoding ($str, $to_encoding, $from_encoding = null) {}
|
|||
* @return string|false The detected character encoding or false if the encoding cannot be
|
||||
* detected from the given string.
|
||||
*/
|
||||
function mb_detect_encoding ($str, $encoding_list = null, $strict = false) {}
|
||||
function mb_detect_encoding ($string, $encodings = null, $strict = false) {}
|
||||
|
||||
/**
|
||||
* Returns an array of all supported encodings
|
||||
|
@ -583,10 +583,10 @@ function mb_encoding_aliases ($encoding) {}
|
|||
/**
|
||||
* Convert "kana" one from another ("zen-kaku", "han-kaku" and more)
|
||||
* @link https://php.net/manual/en/function.mb-convert-kana.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string being converted.
|
||||
* </p>
|
||||
* @param string $option [optional] <p>
|
||||
* @param string $mode [optional] <p>
|
||||
* The conversion option.
|
||||
* </p>
|
||||
* <p>
|
||||
|
@ -694,12 +694,12 @@ function mb_encoding_aliases ($encoding) {}
|
|||
* @param string $encoding [optional] &mbstring.encoding.parameter;
|
||||
* @return string The converted string.
|
||||
*/
|
||||
function mb_convert_kana ($str, $option = null, $encoding = null) {}
|
||||
function mb_convert_kana ($string, $mode = null, $encoding = null) {}
|
||||
|
||||
/**
|
||||
* Encode string for MIME header
|
||||
* @link https://php.net/manual/en/function.mb-encode-mimeheader.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string being encoded.
|
||||
* </p>
|
||||
* @param string $charset [optional] <p>
|
||||
|
@ -714,7 +714,7 @@ function mb_convert_kana ($str, $option = null, $encoding = null) {}
|
|||
* "Q" (Quoted-Printable). Falls back to
|
||||
* "B" if not given.
|
||||
* </p>
|
||||
* @param string $linefeed [optional] <p>
|
||||
* @param string $newline [optional] <p>
|
||||
* linefeed specifies the EOL (end-of-line) marker
|
||||
* with which mb_encode_mimeheader performs
|
||||
* line-folding (a RFC term,
|
||||
|
@ -728,17 +728,17 @@ function mb_convert_kana ($str, $option = null, $encoding = null) {}
|
|||
* </p>
|
||||
* @return string A converted version of the string represented in ASCII.
|
||||
*/
|
||||
function mb_encode_mimeheader ($str, $charset = null, $transfer_encoding = null, $linefeed = null, $indent = null) {}
|
||||
function mb_encode_mimeheader ($string, $charset = null, $transfer_encoding = null, $newline = null, $indent = null) {}
|
||||
|
||||
/**
|
||||
* Decode string in MIME header field
|
||||
* @link https://php.net/manual/en/function.mb-decode-mimeheader.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string being decoded.
|
||||
* </p>
|
||||
* @return string The decoded string in internal character encoding.
|
||||
*/
|
||||
function mb_decode_mimeheader ($str) {}
|
||||
function mb_decode_mimeheader ($string) {}
|
||||
|
||||
/**
|
||||
* Convert character code in variable(s)
|
||||
|
@ -762,23 +762,23 @@ function mb_decode_mimeheader ($str) {}
|
|||
* @return string|false The character encoding before conversion for success,
|
||||
* or false for failure.
|
||||
*/
|
||||
function mb_convert_variables ($to, $from, &$var, &...$vars) {}
|
||||
function mb_convert_variables ($to_encoding, $from_encoding, &$var, &...$vars) {}
|
||||
|
||||
/**
|
||||
* Encode character to HTML numeric string reference
|
||||
* @link https://php.net/manual/en/function.mb-encode-numericentity.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string being encoded.
|
||||
* </p>
|
||||
* @param int[] $convmap <p>
|
||||
* @param int[] $map <p>
|
||||
* convmap is array specifies code area to
|
||||
* convert.
|
||||
* </p>
|
||||
* @param string $encoding &mbstring.encoding.parameter;
|
||||
* @param bool $is_hex [optional]
|
||||
* @param bool $hex [optional]
|
||||
* @return string|false|null The converted string.
|
||||
*/
|
||||
function mb_encode_numericentity ($str, array $convmap, $encoding = null, $is_hex = false) {}
|
||||
function mb_encode_numericentity ($string, array $map, $encoding = null, $hex = false) {}
|
||||
|
||||
/**
|
||||
* Decode HTML numeric string reference to character
|
||||
|
@ -786,7 +786,7 @@ function mb_encode_numericentity ($str, array $convmap, $encoding = null, $is_he
|
|||
* @param string $str <p>
|
||||
* The string being decoded.
|
||||
* </p>
|
||||
* @param int[] $convmap <p>
|
||||
* @param int[] $map <p>
|
||||
* convmap is an array that specifies
|
||||
* the code area to convert.
|
||||
* </p>
|
||||
|
@ -796,7 +796,7 @@ function mb_encode_numericentity ($str, array $convmap, $encoding = null, $is_he
|
|||
* </p>
|
||||
* @return string|false|null The converted string.
|
||||
*/
|
||||
function mb_decode_numericentity ($string, array $convmap, $encoding = null, $is_hex = false) {}
|
||||
function mb_decode_numericentity ($string, array $map, $encoding = null, $is_hex = false) {}
|
||||
|
||||
/**
|
||||
* Send encoded mail
|
||||
|
@ -820,14 +820,14 @@ function mb_decode_numericentity ($string, array $convmap, $encoding = null, $is
|
|||
* headers. Multiple extra headers are separated with a
|
||||
* newline ("\n").
|
||||
* </p>
|
||||
* @param string $additional_parameter [optional] <p>
|
||||
* @param string $additional_params [optional] <p>
|
||||
* additional_parameter is a MTA command line
|
||||
* parameter. It is useful when setting the correct Return-Path
|
||||
* header when using sendmail.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function mb_send_mail ($to, $subject, $message, $additional_headers = null, $additional_parameter = null) {}
|
||||
function mb_send_mail ($to, $subject, $message, $additional_headers = null, $additional_params = null) {}
|
||||
|
||||
/**
|
||||
* Get internal settings of mbstring
|
||||
|
@ -851,7 +851,7 @@ function mb_get_info ($type = null) {}
|
|||
/**
|
||||
* Check if the string is valid for the specified encoding
|
||||
* @link https://php.net/manual/en/function.mb-check-encoding.php
|
||||
* @param string|array $var [optional] <p>
|
||||
* @param string|array $value [optional] <p>
|
||||
* The byte stream to check. If it is omitted, this function checks
|
||||
* all the input from the beginning of the request.
|
||||
* </p>
|
||||
|
@ -861,7 +861,7 @@ function mb_get_info ($type = null) {}
|
|||
* @return bool true on success or false on failure.
|
||||
* @since 5.1.3
|
||||
*/
|
||||
function mb_check_encoding ($var = null, $encoding = null) {}
|
||||
function mb_check_encoding ($value = null, $encoding = null) {}
|
||||
|
||||
/**
|
||||
* Returns current encoding for multibyte regex as string
|
||||
|
@ -894,12 +894,12 @@ function mb_regex_set_options ($options = null) {}
|
|||
* @param string $string <p>
|
||||
* The search string.
|
||||
* </p>
|
||||
* @param string[] &$regs [optional] <p>
|
||||
* @param string[] &$matches [optional] <p>
|
||||
* Contains a substring of the matched string.
|
||||
* </p>
|
||||
* @return int
|
||||
*/
|
||||
function mb_ereg ($pattern, $string, array &$regs = null) {}
|
||||
function mb_ereg ($pattern, $string, array &$matches = null) {}
|
||||
|
||||
/**
|
||||
* Regular expression match ignoring case with multibyte support
|
||||
|
@ -910,12 +910,12 @@ function mb_ereg ($pattern, $string, array &$regs = null) {}
|
|||
* @param string $string <p>
|
||||
* The string being searched.
|
||||
* </p>
|
||||
* @param string[] &$regs [optional] <p>
|
||||
* @param string[] &$matches [optional] <p>
|
||||
* Contains a substring of the matched string.
|
||||
* </p>
|
||||
* @return int
|
||||
*/
|
||||
function mb_eregi ($pattern, $string, array &$regs = null) {}
|
||||
function mb_eregi ($pattern, $string, array &$matches = null) {}
|
||||
|
||||
/**
|
||||
* Replace regular expression with multibyte support
|
||||
|
@ -932,7 +932,7 @@ function mb_eregi ($pattern, $string, array &$regs = null) {}
|
|||
* @param string $string <p>
|
||||
* The string being checked.
|
||||
* </p>
|
||||
* @param string $option [optional] Matching condition can be set by option
|
||||
* @param string $options [optional] Matching condition can be set by option
|
||||
* parameter. If i is specified for this
|
||||
* parameter, the case will be ignored. If x is
|
||||
* specified, white space will be ignored. If m
|
||||
|
@ -945,7 +945,7 @@ function mb_eregi ($pattern, $string, array &$regs = null) {}
|
|||
* <p>PHP 7.1: The <i>e</i> modifier has been deprecated.</p>
|
||||
* @return string|false The resultant string on success, or false on error.
|
||||
*/
|
||||
function mb_ereg_replace ($pattern, $replacement, $string, $option = "msr") {}
|
||||
function mb_ereg_replace ($pattern, $replacement, $string, $options = "msr") {}
|
||||
|
||||
/**
|
||||
* Perform a regular expresssion seach and replace with multibyte support using a callback
|
||||
|
@ -974,7 +974,7 @@ function mb_ereg_replace ($pattern, $replacement, $string, $option = "msr") {}
|
|||
* @param string $string <p>
|
||||
* The string being checked.
|
||||
* </p>
|
||||
* @param string $option [optional <p>
|
||||
* @param string $options [optional <p>
|
||||
* Matching condition can be set by <em><b>option</b></em>
|
||||
* parameter. If <em>i</em> is specified for this
|
||||
* parameter, the case will be ignored. If <em>x</em> is
|
||||
|
@ -990,7 +990,7 @@ function mb_ereg_replace ($pattern, $replacement, $string, $option = "msr") {}
|
|||
* </p>
|
||||
* @since 5.4.1
|
||||
*/
|
||||
function mb_ereg_replace_callback ($pattern, callable $callback, $string, $option = "msr") {}
|
||||
function mb_ereg_replace_callback ($pattern, callable $callback, $string, $options = "msr") {}
|
||||
|
||||
/**
|
||||
* Replace regular expression with multibyte support ignoring case
|
||||
|
@ -998,18 +998,18 @@ function mb_ereg_replace_callback ($pattern, callable $callback, $string, $optio
|
|||
* @param string $pattern <p>
|
||||
* The regular expression pattern. Multibyte characters may be used. The case will be ignored.
|
||||
* </p>
|
||||
* @param string $replace <p>
|
||||
* @param string $replacement <p>
|
||||
* The replacement text.
|
||||
* </p>
|
||||
* @param string $string <p>
|
||||
* The searched string.
|
||||
* </p>
|
||||
* @param string $option [optional] option has the same meaning as in
|
||||
* @param string $options [optional] option has the same meaning as in
|
||||
* mb_ereg_replace.
|
||||
* <p>PHP 7.1: The <i>e</i> modifier has been deprecated.</p>
|
||||
* @return string|false The resultant string or false on error.
|
||||
*/
|
||||
function mb_eregi_replace ($pattern, $replace, $string, $option = "msr") {}
|
||||
function mb_eregi_replace ($pattern, $replacement, $string, $options = "msr") {}
|
||||
|
||||
/**
|
||||
* Split multibyte string using regular expression
|
||||
|
@ -1036,11 +1036,11 @@ function mb_split ($pattern, $string, $limit = null) {}
|
|||
* @param string $string <p>
|
||||
* The string being evaluated.
|
||||
* </p>
|
||||
* @param string $option [optional] <p>
|
||||
* @param string $options [optional] <p>
|
||||
* </p>
|
||||
* @return bool
|
||||
*/
|
||||
function mb_ereg_match ($pattern, $string, $option = null) {}
|
||||
function mb_ereg_match ($pattern, $string, $options = null) {}
|
||||
|
||||
/**
|
||||
* Multibyte regular expression match for predefined multibyte string
|
||||
|
@ -1048,12 +1048,12 @@ function mb_ereg_match ($pattern, $string, $option = null) {}
|
|||
* @param string $pattern [optional] <p>
|
||||
* The search pattern.
|
||||
* </p>
|
||||
* @param string $option [optional] <p>
|
||||
* @param string $options [optional] <p>
|
||||
* The search option.
|
||||
* </p>
|
||||
* @return bool
|
||||
*/
|
||||
function mb_ereg_search ($pattern = null, $option = null) {}
|
||||
function mb_ereg_search ($pattern = null, $options = null) {}
|
||||
|
||||
/**
|
||||
* Returns position and length of a matched part of the multibyte regular expression for a predefined multibyte string
|
||||
|
@ -1061,7 +1061,7 @@ function mb_ereg_search ($pattern = null, $option = null) {}
|
|||
* @param string $pattern [optional] <p>
|
||||
* The search pattern.
|
||||
* </p>
|
||||
* @param string $option [optional] <p>
|
||||
* @param string $options [optional] <p>
|
||||
* The search option.
|
||||
* </p>
|
||||
* @return int[]|false An array containing two elements. The first
|
||||
|
@ -1069,7 +1069,7 @@ function mb_ereg_search ($pattern = null, $option = null) {}
|
|||
* to the start of the search string, and the second element is the
|
||||
* length in bytes of the match. If an error occurs, FALSE is returned.
|
||||
*/
|
||||
function mb_ereg_search_pos ($pattern = null, $option = null) {}
|
||||
function mb_ereg_search_pos ($pattern = null, $options = null) {}
|
||||
|
||||
/**
|
||||
* Returns the matched part of a multibyte regular expression
|
||||
|
@ -1077,7 +1077,7 @@ function mb_ereg_search_pos ($pattern = null, $option = null) {}
|
|||
* @param string $pattern [optional] <p>
|
||||
* The search pattern.
|
||||
* </p>
|
||||
* @param string $option [optional] <p>
|
||||
* @param string $options [optional] <p>
|
||||
* The search option.
|
||||
* </p>
|
||||
* @return string[]|false mb_ereg_search_regs() executes the multibyte
|
||||
|
@ -1086,7 +1086,7 @@ function mb_ereg_search_pos ($pattern = null, $option = null) {}
|
|||
* the first grouped part with brackets as second element, the second grouped
|
||||
* part as third element, and so on. It returns FALSE on error.
|
||||
*/
|
||||
function mb_ereg_search_regs ($pattern = null, $option = null) {}
|
||||
function mb_ereg_search_regs ($pattern = null, $options = null) {}
|
||||
|
||||
/**
|
||||
* Setup string and regular expression for a multibyte regular expression match
|
||||
|
@ -1097,12 +1097,12 @@ function mb_ereg_search_regs ($pattern = null, $option = null) {}
|
|||
* @param string $pattern [optional] <p>
|
||||
* The search pattern.
|
||||
* </p>
|
||||
* @param string $option [optional] <p>
|
||||
* @param string $options [optional] <p>
|
||||
* The search option.
|
||||
* </p>
|
||||
* @return bool
|
||||
*/
|
||||
function mb_ereg_search_init ($string, $pattern = null, $option = null) {}
|
||||
function mb_ereg_search_init ($string, $pattern = null, $options = null) {}
|
||||
|
||||
/**
|
||||
* Retrieve the result from the last multibyte regular expression match
|
||||
|
@ -1127,12 +1127,12 @@ function mb_ereg_search_getpos () {}
|
|||
/**
|
||||
* Set start point of next regular expression match
|
||||
* @link https://php.net/manual/en/function.mb-ereg-search-setpos.php
|
||||
* @param int $position <p>
|
||||
* @param int $offset <p>
|
||||
* The position to set.
|
||||
* </p>
|
||||
* @return bool
|
||||
*/
|
||||
function mb_ereg_search_setpos ($position) {}
|
||||
function mb_ereg_search_setpos ($offset) {}
|
||||
|
||||
/**
|
||||
* @param $encoding [optional]
|
||||
|
@ -1246,32 +1246,32 @@ function mbereg_search_getpos () {}
|
|||
/**
|
||||
* Get a specific character.
|
||||
* @link https://www.php.net/manual/en/function.mb-chr.php
|
||||
* @param int $cp
|
||||
* @param int $codepoint
|
||||
* @param string $encoding [optional]
|
||||
* @return string|false specific character or FALSE on failure.
|
||||
* @since 7.2
|
||||
*/
|
||||
function mb_chr ($cp, $encoding = null) {}
|
||||
function mb_chr ($codepoint, $encoding = null) {}
|
||||
|
||||
/**
|
||||
* Get code point of character
|
||||
* @link https://www.php.net/manual/en/function.mb-ord.php
|
||||
* @param string $str
|
||||
* @param string $string
|
||||
* @param string $encoding [optional]
|
||||
* @return int|false code point of character or FALSE on failure.
|
||||
* @since 7.2
|
||||
*/
|
||||
function mb_ord ($str, $encoding = null) {}
|
||||
function mb_ord ($string, $encoding = null) {}
|
||||
|
||||
/**
|
||||
* Scrub broken multibyte strings.
|
||||
* @link https://www.php.net/manual/en/function.mb-scrub.php
|
||||
* @param string $str
|
||||
* @param string $string
|
||||
* @param string $encoding [optional]
|
||||
* @return string|false
|
||||
* @since 7.2
|
||||
*/
|
||||
function mb_scrub ($str, $encoding = null) {}
|
||||
function mb_scrub ($string, $encoding = null) {}
|
||||
|
||||
/**
|
||||
* @param $position
|
||||
|
@ -1281,10 +1281,10 @@ function mbereg_search_setpos ($position) {}
|
|||
|
||||
/**
|
||||
* Function performs string splitting to an array of defined size chunks.
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string to split into characters or chunks.
|
||||
* </p>
|
||||
* @param int $split_length [optional] <p>
|
||||
* @param int $length [optional] <p>
|
||||
* If specified, each element of the returned array will be composed of multiple characters instead of a single character.
|
||||
* </p>
|
||||
* @param string $encoding [optional] <p>
|
||||
|
@ -1294,7 +1294,7 @@ function mbereg_search_setpos ($position) {}
|
|||
* @return string[]|false
|
||||
* @since 7.4
|
||||
*/
|
||||
function mb_str_split ($str, $split_length = 1, $encoding = null) {}
|
||||
function mb_str_split ($string, $length = 1, $encoding = null) {}
|
||||
|
||||
/**
|
||||
* @removed 8.0
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -16,7 +16,7 @@ function openssl_pkey_free($key) { }
|
|||
/**
|
||||
* Generates a new private key
|
||||
* @link https://php.net/manual/en/function.openssl-pkey-new.php
|
||||
* @param array $configargs [optional] <p>
|
||||
* @param array $options [optional] <p>
|
||||
* You can finetune the key generation (such as specifying the number of
|
||||
* bits) using <i>configargs</i>. See
|
||||
* <b>openssl_csr_new</b> for more information about
|
||||
|
@ -25,17 +25,17 @@ function openssl_pkey_free($key) { }
|
|||
* @return resource|false a resource identifier for the pkey on success, or false on
|
||||
* error.
|
||||
*/
|
||||
function openssl_pkey_new(array $configargs = null) { }
|
||||
function openssl_pkey_new(array $options = null) { }
|
||||
|
||||
/**
|
||||
* Gets an exportable representation of a key into a string
|
||||
* @link https://php.net/manual/en/function.openssl-pkey-export.php
|
||||
* @param mixed $key
|
||||
* @param string &$out
|
||||
* @param string &$output
|
||||
* @param string $passphrase [optional] <p>
|
||||
* The key is optionally protected by <i>passphrase</i>.
|
||||
* </p>
|
||||
* @param array $configargs [optional] <p>
|
||||
* @param array $options [optional] <p>
|
||||
* <i>configargs</i> can be used to fine-tune the export
|
||||
* process by specifying and/or overriding options for the openssl
|
||||
* configuration file. See <b>openssl_csr_new</b> for more
|
||||
|
@ -43,20 +43,20 @@ function openssl_pkey_new(array $configargs = null) { }
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function openssl_pkey_export($key, &$out, $passphrase = null, array $configargs = null) { }
|
||||
function openssl_pkey_export($key, &$output, $passphrase = null, array $options = null) { }
|
||||
|
||||
/**
|
||||
* Gets an exportable representation of a key into a file
|
||||
* @link https://php.net/manual/en/function.openssl-pkey-export-to-file.php
|
||||
* @param mixed $key
|
||||
* @param string $outfilename <p>
|
||||
* @param string $output_filename <p>
|
||||
* Path to the output file.
|
||||
* </p>
|
||||
* @param string $passphrase [optional] <p>
|
||||
* The key can be optionally protected by a
|
||||
* <i>passphrase</i>.
|
||||
* </p>
|
||||
* @param array $configargs [optional] <p>
|
||||
* @param array $options [optional] <p>
|
||||
* <i>configargs</i> can be used to fine-tune the export
|
||||
* process by specifying and/or overriding options for the openssl
|
||||
* configuration file. See <b>openssl_csr_new</b> for more
|
||||
|
@ -64,12 +64,12 @@ function openssl_pkey_export($key, &$out, $passphrase = null, array $configargs
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function openssl_pkey_export_to_file($key, $outfilename, $passphrase = null, array $configargs = null) { }
|
||||
function openssl_pkey_export_to_file($key, $output_filename, $passphrase = null, array $options = null) { }
|
||||
|
||||
/**
|
||||
* Get a private key
|
||||
* @link https://php.net/manual/en/function.openssl-pkey-get-private.php
|
||||
* @param $key
|
||||
* @param $private_key
|
||||
* <p>
|
||||
* <b><em>key</em></b> can be one of the following:
|
||||
* <ol>
|
||||
|
@ -85,12 +85,12 @@ function openssl_pkey_export_to_file($key, $outfilename, $passphrase = null, arr
|
|||
* </p>
|
||||
* @return resource|false Returns a positive key resource identifier on success, or <b>FALSE</b> on error.
|
||||
*/
|
||||
function openssl_pkey_get_private($key, $passphrase = "") { }
|
||||
function openssl_pkey_get_private($private_key, $passphrase = "") { }
|
||||
|
||||
/**
|
||||
* Extract public key from certificate and prepare it for use
|
||||
* @link https://php.net/manual/en/function.openssl-pkey-get-public.php
|
||||
* @param mixed $certificate <p><em><b>certificate</b></em> can be one of the following:
|
||||
* @param mixed $public_key <p><em><b>certificate</b></em> can be one of the following:
|
||||
* <ol>
|
||||
* <li>an X.509 certificate resource</li>
|
||||
* <li>a string having the format
|
||||
|
@ -102,7 +102,7 @@ function openssl_pkey_get_private($key, $passphrase = "") { }
|
|||
* </ol></p>
|
||||
* @return resource|false a positive key resource identifier on success, or false on error.
|
||||
*/
|
||||
function openssl_pkey_get_public($certificate) { }
|
||||
function openssl_pkey_get_public($public_key) { }
|
||||
|
||||
/**
|
||||
* Returns an array with the key details
|
||||
|
@ -128,16 +128,16 @@ function openssl_pkey_get_details($key) { }
|
|||
/**
|
||||
* Free key resource
|
||||
* @link https://php.net/manual/en/function.openssl-free-key.php
|
||||
* @param resource $key_identifier
|
||||
* @param resource $key
|
||||
* @return void
|
||||
* @deprecated 8.0
|
||||
*/
|
||||
function openssl_free_key($key_identifier) { }
|
||||
function openssl_free_key($key) { }
|
||||
|
||||
/**
|
||||
* Alias of <b>openssl_pkey_get_private</b>
|
||||
* @link https://php.net/manual/en/function.openssl-get-privatekey.php
|
||||
* @param $key
|
||||
* @param $private_key
|
||||
* <p>
|
||||
* <b><em>key</em></b> can be one of the following:
|
||||
* <ol>
|
||||
|
@ -153,12 +153,12 @@ function openssl_free_key($key_identifier) { }
|
|||
* </p>
|
||||
* @return resource|false Returns a positive key resource identifier on success, or <b>FALSE</b> on error.
|
||||
*/
|
||||
function openssl_get_privatekey($key, $passphrase) { }
|
||||
function openssl_get_privatekey($private_key, $passphrase) { }
|
||||
|
||||
/**
|
||||
* Alias of <b>openssl_pkey_get_public</b>
|
||||
* @link https://php.net/manual/en/function.openssl-get-publickey.php
|
||||
* @param mixed $certificate <p>
|
||||
* @param mixed $public_key <p>
|
||||
* <em><b>certificate</b></em> can be one of the following:
|
||||
* <ol>
|
||||
* <li>an X.509 certificate resource</li>
|
||||
|
@ -171,12 +171,12 @@ function openssl_get_privatekey($key, $passphrase) { }
|
|||
* </ol> </p>
|
||||
* @return resource|false a positive key resource identifier on success, or FALSE on error.
|
||||
*/
|
||||
function openssl_get_publickey($certificate) { }
|
||||
function openssl_get_publickey($public_key) { }
|
||||
|
||||
/**
|
||||
* Generate a new signed public key and challenge
|
||||
* @link https://php.net/manual/en/function.openssl-spki-new.php
|
||||
* @param resource &$privkey <p>
|
||||
* @param resource &$private_key <p>
|
||||
* <b>privkey</b> should be set to a private key that was
|
||||
* previously generated by {@link https://php.net/en/manual/function.openssl-pkey-new.php openssl_pkey_new()} (or
|
||||
* otherwise obtained from the other openssl_pkey family of functions).
|
||||
|
@ -184,70 +184,70 @@ function openssl_get_publickey($certificate) { }
|
|||
* CSR.
|
||||
* </p>
|
||||
* @param string &$challenge <p>The challenge associated to associate with the SPKAC</p>
|
||||
* @param int $algorithm <p>The digest algorithm. See openssl_get_md_method().</p>
|
||||
* @param int $digest_algo <p>The digest algorithm. See openssl_get_md_method().</p>
|
||||
* @return string|null Returns a signed public key and challenge string or NULL on failure.
|
||||
* @since 5.6
|
||||
*/
|
||||
function openssl_spki_new(&$privkey, &$challenge, $algorithm = 0) {}
|
||||
function openssl_spki_new(&$private_key, &$challenge, $digest_algo = 0) {}
|
||||
|
||||
|
||||
/**
|
||||
* Verifies a signed public key and challenge
|
||||
* @link https://php.net/manual/en/function.openssl-spki-verify.php
|
||||
* @param string &$spkac <p>Expects a valid signed public key and challenge</p>
|
||||
* @param string &$spki <p>Expects a valid signed public key and challenge</p>
|
||||
* @return bool Returns a boolean on success or failure.
|
||||
* @since 5.6
|
||||
*/
|
||||
function openssl_spki_verify(&$spkac) {}
|
||||
function openssl_spki_verify(&$spki) {}
|
||||
|
||||
/**
|
||||
* Exports the challenge associated with a signed public key and challenge
|
||||
* @link https://php.net/manual/en/function.openssl-spki-export-challenge.php
|
||||
* @param string &$spkac <p>Expects a valid signed public key and challenge</p>
|
||||
* @param string &$spki <p>Expects a valid signed public key and challenge</p>
|
||||
* @return string|null Returns the associated challenge string or NULL on failure.
|
||||
* @since 5.6
|
||||
*/
|
||||
function openssl_spki_export_challenge (&$spkac ) {}
|
||||
function openssl_spki_export_challenge (&$spki ) {}
|
||||
|
||||
/**
|
||||
* Exports a valid PEM formatted public key signed public key and challenge
|
||||
* @link https://php.net/manual/en/function.openssl-spki-export.php
|
||||
* @param string &$spkac <p>Expects a valid signed public key and challenge</p>
|
||||
* @param string &$spki <p>Expects a valid signed public key and challenge</p>
|
||||
* @return string|null Returns the associated PEM formatted public key or NULL on failure.
|
||||
* @since 5.6
|
||||
*/
|
||||
function openssl_spki_export (&$spkac ) {}
|
||||
function openssl_spki_export (&$spki ) {}
|
||||
/**
|
||||
* Parse an X.509 certificate and return a resource identifier for
|
||||
* it
|
||||
* @link https://php.net/manual/en/function.openssl-x509-read.php
|
||||
* @param mixed $x509certdata
|
||||
* @param mixed $certificate
|
||||
* @return resource|false a resource identifier on success or false on failure.
|
||||
*/
|
||||
function openssl_x509_read($x509certdata) { }
|
||||
function openssl_x509_read($certificate) { }
|
||||
|
||||
/**
|
||||
* @param string $x509
|
||||
* @param string $type [optional] hash method
|
||||
* @param string $certificate
|
||||
* @param string $digest_algo [optional] hash method
|
||||
* @param bool $binary [optional]
|
||||
* @return string|false <b>FALSE</b> on failure
|
||||
* @since 5.6
|
||||
*/
|
||||
function openssl_x509_fingerprint($x509, $type, $binary) {}
|
||||
function openssl_x509_fingerprint($certificate, $digest_algo, $binary) {}
|
||||
/**
|
||||
* Free certificate resource
|
||||
* @link https://php.net/manual/en/function.openssl-x509-free.php
|
||||
* @param resource $x509cert
|
||||
* @param resource $certificate
|
||||
* @return void
|
||||
* @deprecated 8.0
|
||||
*/
|
||||
function openssl_x509_free($x509cert) { }
|
||||
function openssl_x509_free($certificate) { }
|
||||
|
||||
/**
|
||||
* Parse an X509 certificate and return the information as an array
|
||||
* @link https://php.net/manual/en/function.openssl-x509-parse.php
|
||||
* @param mixed $x509cert
|
||||
* @param bool $shortnames [optional] <p>
|
||||
* @param mixed $certificate
|
||||
* @param bool $short_names [optional] <p>
|
||||
* <i>shortnames</i> controls how the data is indexed in the
|
||||
* array - if <i>shortnames</i> is true (the default) then
|
||||
* fields will be indexed with the short name form, otherwise, the long name
|
||||
|
@ -256,12 +256,12 @@ function openssl_x509_free($x509cert) { }
|
|||
* @return array|false The structure of the returned data is (deliberately) not
|
||||
* yet documented, as it is still subject to change.
|
||||
*/
|
||||
function openssl_x509_parse($x509cert, $shortnames = true) { }
|
||||
function openssl_x509_parse($certificate, $short_names = true) { }
|
||||
|
||||
/**
|
||||
* Verifies if a certificate can be used for a particular purpose
|
||||
* @link https://php.net/manual/en/function.openssl-x509-checkpurpose.php
|
||||
* @param mixed $x509cert <p>
|
||||
* @param mixed $certificate <p>
|
||||
* The examined certificate.
|
||||
* </p>
|
||||
* @param int $purpose <p>
|
||||
|
@ -305,12 +305,12 @@ function openssl_x509_parse($x509cert, $shortnames = true) { }
|
|||
* </table>
|
||||
* These options are not bitfields - you may specify one only!
|
||||
* </p>
|
||||
* @param array $cainfo [optional] <p>
|
||||
* @param array $ca_info [optional] <p>
|
||||
* <i>cainfo</i> should be an array of trusted CA files/dirs
|
||||
* as described in Certificate
|
||||
* Verification.
|
||||
* </p>
|
||||
* @param string $untrustedfile [optional] <p>
|
||||
* @param string $untrusted_certificates_file [optional] <p>
|
||||
* If specified, this should be the name of a PEM encoded file holding
|
||||
* certificates that can be used to help verify the certificate, although
|
||||
* no trust is placed in the certificates that come from that file.
|
||||
|
@ -318,123 +318,123 @@ function openssl_x509_parse($x509cert, $shortnames = true) { }
|
|||
* @return int|bool true if the certificate can be used for the intended purpose,
|
||||
* false if it cannot, or -1 on error.
|
||||
*/
|
||||
function openssl_x509_checkpurpose($x509cert, $purpose, array $cainfo = null, $untrustedfile = null) { }
|
||||
function openssl_x509_checkpurpose($certificate, $purpose, array $ca_info = null, $untrusted_certificates_file = null) { }
|
||||
|
||||
/**
|
||||
* Checks if a private key corresponds to a certificate
|
||||
* @link https://php.net/manual/en/function.openssl-x509-check-private-key.php
|
||||
* @param mixed $cert <p>
|
||||
* @param mixed $certificate <p>
|
||||
* The certificate.
|
||||
* </p>
|
||||
* @param mixed $key <p>
|
||||
* @param mixed $private_key <p>
|
||||
* The private key.
|
||||
* </p>
|
||||
* @return bool true if <i>key</i> is the private key that
|
||||
* corresponds to <i>cert</i>, or false otherwise.
|
||||
*/
|
||||
function openssl_x509_check_private_key($cert, $key) { }
|
||||
function openssl_x509_check_private_key($certificate, $private_key) { }
|
||||
|
||||
/**
|
||||
* Exports a certificate as a string
|
||||
* @link https://php.net/manual/en/function.openssl-x509-export.php
|
||||
* @param mixed $x509
|
||||
* @param mixed $certificate
|
||||
* @param string &$output <p>
|
||||
* On success, this will hold the PEM.
|
||||
* </p>
|
||||
* @param bool $notext [optional] ¬e.openssl.param-notext;
|
||||
* @param bool $no_text [optional] ¬e.openssl.param-notext;
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function openssl_x509_export($x509, &$output, $notext = true) { }
|
||||
function openssl_x509_export($certificate, &$output, $no_text = true) { }
|
||||
|
||||
/**
|
||||
* Exports a certificate to file
|
||||
* @link https://php.net/manual/en/function.openssl-x509-export-to-file.php
|
||||
* @param mixed $x509
|
||||
* @param string $outfilename <p>
|
||||
* @param mixed $certificate
|
||||
* @param string $output_filename <p>
|
||||
* Path to the output file.
|
||||
* </p>
|
||||
* @param bool $notext [optional] ¬e.openssl.param-notext;
|
||||
* @param bool $no_text [optional] ¬e.openssl.param-notext;
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function openssl_x509_export_to_file($x509, $outfilename, $notext = true) { }
|
||||
function openssl_x509_export_to_file($certificate, $output_filename, $no_text = true) { }
|
||||
|
||||
/**
|
||||
* Verifies digital signature of x509 certificate against a public key
|
||||
* @link https://www.php.net/manual/en/function.openssl-x509-verify.php
|
||||
* @param mixed $x509
|
||||
* @param mixed $pub_key_id
|
||||
* @param mixed $public_key
|
||||
* @return int Returns 1 if the signature is correct, 0 if it is incorrect, and -1 on error.
|
||||
* @since 7.4
|
||||
*/
|
||||
function openssl_x509_verify($cert, $pub_key_id) : int {}
|
||||
function openssl_x509_verify($certificate, $public_key) : int {}
|
||||
|
||||
/**
|
||||
* Exports a PKCS#12 Compatible Certificate Store File to variable.
|
||||
* @link https://php.net/manual/en/function.openssl-pkcs12-export.php
|
||||
* @param mixed $x509
|
||||
* @param string &$out <p>
|
||||
* @param mixed $certificate
|
||||
* @param string &$output <p>
|
||||
* On success, this will hold the PKCS#12.
|
||||
* </p>
|
||||
* @param mixed $priv_key <p>
|
||||
* @param mixed $private_key <p>
|
||||
* Private key component of PKCS#12 file.
|
||||
* </p>
|
||||
* @param string $pass <p>
|
||||
* @param string $passphrase <p>
|
||||
* Encryption password for unlocking the PKCS#12 file.
|
||||
* </p>
|
||||
* @param array $args [optional]
|
||||
* @param array $options [optional]
|
||||
* @return bool true on success or false on failure.
|
||||
* @since 5.2.2
|
||||
*/
|
||||
function openssl_pkcs12_export($x509, &$out, $priv_key, $pass, array $args = null) { }
|
||||
function openssl_pkcs12_export($certificate, &$output, $private_key, $passphrase, array $options = null) { }
|
||||
|
||||
/**
|
||||
* Exports a PKCS#12 Compatible Certificate Store File
|
||||
* @link https://php.net/manual/en/function.openssl-pkcs12-export-to-file.php
|
||||
* @param mixed $x509
|
||||
* @param string $filename <p>
|
||||
* @param mixed $certificate
|
||||
* @param string $output_filename <p>
|
||||
* Path to the output file.
|
||||
* </p>
|
||||
* @param mixed $priv_key <p>
|
||||
* @param mixed $private_key <p>
|
||||
* Private key component of PKCS#12 file.
|
||||
* </p>
|
||||
* @param string $pass <p>
|
||||
* @param string $passphrase <p>
|
||||
* Encryption password for unlocking the PKCS#12 file.
|
||||
* </p>
|
||||
* @param array $args [optional]
|
||||
* @param array $options [optional]
|
||||
* @return bool true on success or false on failure.
|
||||
* @since 5.2.2
|
||||
*/
|
||||
function openssl_pkcs12_export_to_file($x509, $filename, $priv_key, $pass, array $args = null) { }
|
||||
function openssl_pkcs12_export_to_file($certificate, $output_filename, $private_key, $passphrase, array $options = null) { }
|
||||
|
||||
/**
|
||||
* Parse a PKCS#12 Certificate Store into an array
|
||||
* @link https://php.net/manual/en/function.openssl-pkcs12-read.php
|
||||
* @param string $pkcs12
|
||||
* @param array &$certs <p>
|
||||
* @param array &$certificates <p>
|
||||
* On success, this will hold the Certificate Store Data.
|
||||
* </p>
|
||||
* @param string $pass <p>
|
||||
* @param string $passphrase <p>
|
||||
* Encryption password for unlocking the PKCS#12 file.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
* @since 5.2.2
|
||||
*/
|
||||
function openssl_pkcs12_read($pkcs12, array &$certs, $pass) { }
|
||||
function openssl_pkcs12_read($pkcs12, array &$certificates, $passphrase) { }
|
||||
|
||||
/**
|
||||
* Generates a CSR
|
||||
* @link https://php.net/manual/en/function.openssl-csr-new.php
|
||||
* @param array $dn <p>
|
||||
* @param array $distinguished_names <p>
|
||||
* The Distinguished Name to be used in the certificate.
|
||||
* </p>
|
||||
* @param resource &$privkey <p>
|
||||
* @param resource &$private_key <p>
|
||||
* <i>privkey</i> should be set to a private key that was
|
||||
* previously generated by <b>openssl_pkey_new</b> (or
|
||||
* otherwise obtained from the other openssl_pkey family of functions).
|
||||
* The corresponding public portion of the key will be used to sign the
|
||||
* CSR.
|
||||
* </p>
|
||||
* @param array $configargs [optional] <p>
|
||||
* @param array $options [optional] <p>
|
||||
* By default, the information in your system openssl.conf
|
||||
* is used to initialize the request; you can specify a configuration file
|
||||
* section by setting the config_section_section key of
|
||||
|
@ -506,7 +506,7 @@ function openssl_pkcs12_read($pkcs12, array &$certs, $pass) { }
|
|||
* </tr>
|
||||
* </table>
|
||||
* </p>
|
||||
* @param array $extraattribs [optional] <p>
|
||||
* @param array $extra_attributes [optional] <p>
|
||||
* <i>extraattribs</i> is used to specify additional
|
||||
* configuration options for the CSR. Both <i>dn</i> and
|
||||
* <i>extraattribs</i> are associative arrays whose keys are
|
||||
|
@ -514,29 +514,29 @@ function openssl_pkcs12_read($pkcs12, array &$certs, $pass) { }
|
|||
* </p>
|
||||
* @return false|resource the CSR.
|
||||
*/
|
||||
function openssl_csr_new(array $dn, &$privkey, array $configargs = null, array $extraattribs = null) { }
|
||||
function openssl_csr_new(array $distinguished_names, &$private_key, array $options = null, array $extra_attributes = null) { }
|
||||
|
||||
/**
|
||||
* Exports a CSR as a string
|
||||
* @link https://php.net/manual/en/function.openssl-csr-export.php
|
||||
* @param resource $csr
|
||||
* @param string &$out
|
||||
* @param bool $notext [optional] ¬e.openssl.param-notext;
|
||||
* @param string &$output
|
||||
* @param bool $no_text [optional] ¬e.openssl.param-notext;
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function openssl_csr_export($csr, &$out, $notext = true) { }
|
||||
function openssl_csr_export($csr, &$output, $no_text = true) { }
|
||||
|
||||
/**
|
||||
* Exports a CSR to a file
|
||||
* @link https://php.net/manual/en/function.openssl-csr-export-to-file.php
|
||||
* @param resource $csr
|
||||
* @param string $outfilename <p>
|
||||
* @param string $output_filename <p>
|
||||
* Path to the output file.
|
||||
* </p>
|
||||
* @param bool $notext [optional] ¬e.openssl.param-notext;
|
||||
* @param bool $no_text [optional] ¬e.openssl.param-notext;
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function openssl_csr_export_to_file($csr, $outfilename, $notext = true) { }
|
||||
function openssl_csr_export_to_file($csr, $output_filename, $no_text = true) { }
|
||||
|
||||
/**
|
||||
* Sign a CSR with another certificate (or itself) and generate a certificate
|
||||
|
@ -547,12 +547,12 @@ function openssl_csr_export_to_file($csr, $outfilename, $notext = true) { }
|
|||
* file://path/to/csr or an exported string generated
|
||||
* by <b>openssl_csr_export</b>.
|
||||
* </p>
|
||||
* @param mixed $cacert <p>
|
||||
* @param mixed $ca_certificate <p>
|
||||
* The generated certificate will be signed by <i>cacert</i>.
|
||||
* If <i>cacert</i> is null, the generated certificate
|
||||
* will be a self-signed certificate.
|
||||
* </p>
|
||||
* @param mixed $priv_key <p>
|
||||
* @param mixed $private_key <p>
|
||||
* <i>priv_key</i> is the private key that corresponds to
|
||||
* <i>cacert</i>.
|
||||
* </p>
|
||||
|
@ -560,7 +560,7 @@ function openssl_csr_export_to_file($csr, $outfilename, $notext = true) { }
|
|||
* <i>days</i> specifies the length of time for which the
|
||||
* generated certificate will be valid, in days.
|
||||
* </p>
|
||||
* @param array $configargs [optional] <p>
|
||||
* @param array $options [optional] <p>
|
||||
* You can finetune the CSR signing by <i>configargs</i>.
|
||||
* See <b>openssl_csr_new</b> for more information about
|
||||
* <i>configargs</i>.
|
||||
|
@ -571,25 +571,25 @@ function openssl_csr_export_to_file($csr, $outfilename, $notext = true) { }
|
|||
* </p>
|
||||
* @return resource|false an x509 certificate resource on success, false on failure.
|
||||
*/
|
||||
function openssl_csr_sign($csr, $cacert, $priv_key, $days, array $configargs = null, $serial = 0) { }
|
||||
function openssl_csr_sign($csr, $ca_certificate, $private_key, $days, array $options = null, $serial = 0) { }
|
||||
|
||||
/**
|
||||
* Returns the subject of a CERT
|
||||
* @link https://php.net/manual/en/function.openssl-csr-get-subject.php
|
||||
* @param mixed $csr
|
||||
* @param bool $use_shortnames [optional]
|
||||
* @param bool $short_names [optional]
|
||||
* @return array|false
|
||||
*/
|
||||
function openssl_csr_get_subject($csr, $use_shortnames = true) { }
|
||||
function openssl_csr_get_subject($csr, $short_names = true) { }
|
||||
|
||||
/**
|
||||
* Returns the public key of a CERT
|
||||
* @link https://php.net/manual/en/function.openssl-csr-get-public-key.php
|
||||
* @param mixed $csr
|
||||
* @param bool $use_shortnames [optional]
|
||||
* @param bool $short_names [optional]
|
||||
* @return resource|false
|
||||
*/
|
||||
function openssl_csr_get_public_key($csr, $use_shortnames = true) { }
|
||||
function openssl_csr_get_public_key($csr, $short_names = true) { }
|
||||
|
||||
/**
|
||||
* Computes a digest
|
||||
|
@ -597,16 +597,16 @@ function openssl_csr_get_public_key($csr, $use_shortnames = true) { }
|
|||
* @param string $data <p>
|
||||
* The data.
|
||||
* </p>
|
||||
* @param string $method <p>
|
||||
* @param string $digest_algo <p>
|
||||
* The digest method.
|
||||
* </p>
|
||||
* @param bool $raw_output [optional] <p>
|
||||
* @param bool $binary [optional] <p>
|
||||
* Setting to true will return as raw output data, otherwise the return
|
||||
* value is binhex encoded.
|
||||
* </p>
|
||||
* @return string|false the digested hash value on success or false on failure.
|
||||
*/
|
||||
function openssl_digest($data, $method, $raw_output = false) { }
|
||||
function openssl_digest($data, $digest_algo, $binary = false) { }
|
||||
|
||||
/**
|
||||
* Encrypts data
|
||||
|
@ -614,10 +614,10 @@ function openssl_digest($data, $method, $raw_output = false) { }
|
|||
* @param string $data <p>
|
||||
* The data.
|
||||
* </p>
|
||||
* @param string $method <p>
|
||||
* @param string $cipher_algo <p>
|
||||
* The cipher method. For a list of available cipher methods, use {@see openssl_get_cipher_methods()}.
|
||||
* </p>
|
||||
* @param string $key <p>
|
||||
* @param string $passphrase <p>
|
||||
* The key.
|
||||
* </p>
|
||||
* @param int $options [optional] <p>
|
||||
|
@ -633,7 +633,7 @@ function openssl_digest($data, $method, $raw_output = false) { }
|
|||
* </p>
|
||||
* @return string|false the encrypted string on success or false on failure.
|
||||
*/
|
||||
function openssl_encrypt($data, $method, $key, $options = 0, $iv = "", &$tag = null, $aad = "", $tag_length = 16) { }
|
||||
function openssl_encrypt($data, $cipher_algo, $passphrase, $options = 0, $iv = "", &$tag = null, $aad = "", $tag_length = 16) { }
|
||||
|
||||
/**
|
||||
* Decrypts data
|
||||
|
@ -641,10 +641,10 @@ function openssl_encrypt($data, $method, $key, $options = 0, $iv = "", &$tag = n
|
|||
* @param string $data <p>
|
||||
* The data.
|
||||
* </p>
|
||||
* @param string $method <p>
|
||||
* @param string $cipher_algo <p>
|
||||
* The cipher method.
|
||||
* </p>
|
||||
* @param string $password <p>
|
||||
* @param string $passphrase <p>
|
||||
* The password.
|
||||
* </p>
|
||||
* @param int $options [optional] <p>
|
||||
|
@ -661,18 +661,18 @@ function openssl_encrypt($data, $method, $key, $options = 0, $iv = "", &$tag = n
|
|||
* @param string $aad [optional] <p>Additional authentication data.</p>
|
||||
* @return string|false The decrypted string on success or false on failure.
|
||||
*/
|
||||
function openssl_decrypt($data, $method, $password, $options = 0, $iv = "", $tag = "", $aad = "") { }
|
||||
function openssl_decrypt($data, $cipher_algo, $passphrase, $options = 0, $iv = "", $tag = "", $aad = "") { }
|
||||
|
||||
/**
|
||||
* (PHP 5 >= PHP 5.3.3)<br/>
|
||||
* Gets the cipher iv length
|
||||
* @link https://php.net/manual/en/function.openssl-cipher-iv-length.php
|
||||
* @param string $method <p>
|
||||
* @param string $cipher_algo <p>
|
||||
* The method.
|
||||
* </p>
|
||||
* @return int|false the cipher length on success, or false on failure.
|
||||
*/
|
||||
function openssl_cipher_iv_length($method) { }
|
||||
function openssl_cipher_iv_length($cipher_algo) { }
|
||||
|
||||
/**
|
||||
* Generate signature
|
||||
|
@ -682,59 +682,59 @@ function openssl_cipher_iv_length($method) { }
|
|||
* If the call was successful the signature is returned in
|
||||
* <i>signature</i>.
|
||||
* </p>
|
||||
* @param mixed $priv_key_id
|
||||
* @param int $signature_alg [optional] <p>
|
||||
* @param mixed $private_key
|
||||
* @param int $algorithm [optional] <p>
|
||||
* For more information see the list of Signature Algorithms.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function openssl_sign($data, &$signature, $priv_key_id, $signature_alg = OPENSSL_ALGO_SHA1) { }
|
||||
function openssl_sign($data, &$signature, $private_key, $algorithm = OPENSSL_ALGO_SHA1) { }
|
||||
|
||||
/**
|
||||
* Verify signature
|
||||
* @link https://php.net/manual/en/function.openssl-verify.php
|
||||
* @param string $data
|
||||
* @param string $signature
|
||||
* @param mixed $pub_key_id
|
||||
* @param int $signature_alg [optional] <p>
|
||||
* @param mixed $public_key
|
||||
* @param int $algorithm [optional] <p>
|
||||
* For more information see the list of Signature Algorithms.
|
||||
* </p>
|
||||
* @return int 1 if the signature is correct, 0 if it is incorrect, and
|
||||
* -1 on error.
|
||||
*/
|
||||
function openssl_verify($data, $signature, $pub_key_id, $signature_alg = OPENSSL_ALGO_SHA1) { }
|
||||
function openssl_verify($data, $signature, $public_key, $algorithm = OPENSSL_ALGO_SHA1) { }
|
||||
|
||||
/**
|
||||
* Seal (encrypt) data
|
||||
* @link https://php.net/manual/en/function.openssl-seal.php
|
||||
* @param string $data
|
||||
* @param string &$sealed_data
|
||||
* @param array &$env_keys
|
||||
* @param array $pub_key_ids
|
||||
* @param string $method [optional]
|
||||
* @param array &$encrypted_keys
|
||||
* @param array $public_key
|
||||
* @param string $cipher_algo [optional]
|
||||
* @param string &$iv [optional]
|
||||
* @return int|false the length of the sealed data on success, or false on error.
|
||||
* If successful the sealed data is returned in
|
||||
* <i>sealed_data</i>, and the envelope keys in
|
||||
* <i>env_keys</i>.
|
||||
*/
|
||||
function openssl_seal($data, &$sealed_data, array &$env_keys, array $pub_key_ids, $method = null, &$iv = '') { }
|
||||
function openssl_seal($data, &$sealed_data, array &$encrypted_keys, array $public_key, $cipher_algo = null, &$iv = '') { }
|
||||
|
||||
/**
|
||||
* Open sealed data
|
||||
* @link https://php.net/manual/en/function.openssl-open.php
|
||||
* @param string $sealed_data
|
||||
* @param string &$open_data <p>
|
||||
* @param string $data
|
||||
* @param string &$output <p>
|
||||
* If the call is successful the opened data is returned in this
|
||||
* parameter.
|
||||
* </p>
|
||||
* @param string $env_key
|
||||
* @param mixed $priv_key_id
|
||||
* @param string $method [optional] The cipher method.
|
||||
* @param string $encrypted_key
|
||||
* @param mixed $private_key
|
||||
* @param string $cipher_algo [optional] The cipher method.
|
||||
* @param string $iv [optional] The initialization vector.
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function openssl_open($sealed_data, &$open_data, $env_key, $priv_key_id, $method = "RC4", string $iv) { }
|
||||
function openssl_open($data, &$output, $encrypted_key, $private_key, $cipher_algo = "RC4", string $iv) { }
|
||||
|
||||
/**
|
||||
* Generates a PKCS5 v2 PBKDF2 string, defaults to SHA-1
|
||||
|
@ -743,16 +743,16 @@ function openssl_open($sealed_data, &$open_data, $env_key, $priv_key_id, $method
|
|||
* @param string $salt
|
||||
* @param int $key_length
|
||||
* @param int $iterations
|
||||
* @param string $digest_algorithm [optional]
|
||||
* @param string $digest_algo [optional]
|
||||
* @return string|false Returns string or FALSE on failure.
|
||||
* @since 5.5
|
||||
*/
|
||||
function openssl_pbkdf2($password, $salt, $key_length, $iterations, $digest_algorithm) { }
|
||||
function openssl_pbkdf2($password, $salt, $key_length, $iterations, $digest_algo) { }
|
||||
|
||||
/**
|
||||
* Verifies the signature of an S/MIME signed message
|
||||
* @link https://php.net/manual/en/function.openssl-pkcs7-verify.php
|
||||
* @param string $filename <p>
|
||||
* @param string $input_filename <p>
|
||||
* Path to the message.
|
||||
* </p>
|
||||
* @param int $flags <p>
|
||||
|
@ -760,18 +760,18 @@ function openssl_pbkdf2($password, $salt, $key_length, $iterations, $digest_algo
|
|||
* verified - see PKCS7 constants
|
||||
* for more information.
|
||||
* </p>
|
||||
* @param string $outfilename [optional] <p>
|
||||
* @param string $signers_certificates_filename [optional] <p>
|
||||
* If the <i>outfilename</i> is specified, it should be a
|
||||
* string holding the name of a file into which the certificates of the
|
||||
* persons that signed the messages will be stored in PEM format.
|
||||
* </p>
|
||||
* @param array $cainfo [optional] <p>
|
||||
* @param array $ca_info [optional] <p>
|
||||
* If the <i>cainfo</i> is specified, it should hold
|
||||
* information about the trusted CA certificates to use in the verification
|
||||
* process - see certificate
|
||||
* verification for more information about this parameter.
|
||||
* </p>
|
||||
* @param string $extracerts [optional] <p>
|
||||
* @param string $untrusted_certificates_filename [optional] <p>
|
||||
* If the <i>extracerts</i> is specified, it is the filename
|
||||
* of a file containing a bunch of certificates to use as untrusted CAs.
|
||||
* </p>
|
||||
|
@ -779,35 +779,35 @@ function openssl_pbkdf2($password, $salt, $key_length, $iterations, $digest_algo
|
|||
* You can specify a filename with <i>content</i> that will
|
||||
* be filled with the verified data, but with the signature information
|
||||
* stripped.
|
||||
* @param string|null $pk7 [optional]
|
||||
* @param string|null $output_filename [optional]
|
||||
* </p>
|
||||
* @return bool|int true if the signature is verified, false if it is not correct
|
||||
* (the message has been tampered with, or the signing certificate is invalid),
|
||||
* or -1 on error.
|
||||
*/
|
||||
function openssl_pkcs7_verify($filename, $flags, $outfilename = null, array $cainfo = null, $extracerts = null, $content = null, $pk7 = null) { }
|
||||
function openssl_pkcs7_verify($input_filename, $flags, $signers_certificates_filename = null, array $ca_info = null, $untrusted_certificates_filename = null, $content = null, $output_filename = null) { }
|
||||
|
||||
/**
|
||||
* Decrypts an S/MIME encrypted message
|
||||
* @link https://php.net/manual/en/function.openssl-pkcs7-decrypt.php
|
||||
* @param string $infilename
|
||||
* @param string $outfilename <p>
|
||||
* @param string $input_filename
|
||||
* @param string $output_filename <p>
|
||||
* The decrypted message is written to the file specified by
|
||||
* <i>outfilename</i>.
|
||||
* </p>
|
||||
* @param mixed $recipcert
|
||||
* @param mixed $recipkey [optional]
|
||||
* @param mixed $certificate
|
||||
* @param mixed $private_key [optional]
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function openssl_pkcs7_decrypt($infilename, $outfilename, $recipcert, $recipkey = null) { }
|
||||
function openssl_pkcs7_decrypt($input_filename, $output_filename, $certificate, $private_key = null) { }
|
||||
|
||||
/**
|
||||
* Sign an S/MIME message
|
||||
* @link https://php.net/manual/en/function.openssl-pkcs7-sign.php
|
||||
* @param string $infilename
|
||||
* @param string $outfilename
|
||||
* @param mixed $signcert
|
||||
* @param mixed $privkey
|
||||
* @param string $input_filename
|
||||
* @param string $output_filename
|
||||
* @param mixed $certificate
|
||||
* @param mixed $private_key
|
||||
* @param array $headers <p>
|
||||
* <i>headers</i> is an array of headers that
|
||||
* will be prepended to the data after it has been signed (see
|
||||
|
@ -817,21 +817,21 @@ function openssl_pkcs7_decrypt($infilename, $outfilename, $recipcert, $recipkey
|
|||
* @param int $flags [optional] <p>
|
||||
* <i>flags</i> can be used to alter the output - see PKCS7 constants.
|
||||
* </p>
|
||||
* @param string $extracerts [optional] <p>
|
||||
* @param string $untrusted_certificates_filename [optional] <p>
|
||||
* <i>extracerts</i> specifies the name of a file containing
|
||||
* a bunch of extra certificates to include in the signature which can for
|
||||
* example be used to help the recipient to verify the certificate that you used.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function openssl_pkcs7_sign($infilename, $outfilename, $signcert, $privkey, array $headers, $flags = PKCS7_DETACHED, $extracerts = null) { }
|
||||
function openssl_pkcs7_sign($input_filename, $output_filename, $certificate, $private_key, array $headers, $flags = PKCS7_DETACHED, $untrusted_certificates_filename = null) { }
|
||||
|
||||
/**
|
||||
* Encrypt an S/MIME message
|
||||
* @link https://php.net/manual/en/function.openssl-pkcs7-encrypt.php
|
||||
* @param string $infile
|
||||
* @param string $outfile
|
||||
* @param mixed $recipcerts <p>
|
||||
* @param string $input_filename
|
||||
* @param string $output_filename
|
||||
* @param mixed $certificate <p>
|
||||
* Either a lone X.509 certificate, or an array of X.509 certificates.
|
||||
* </p>
|
||||
* @param array $headers <p>
|
||||
|
@ -848,19 +848,19 @@ function openssl_pkcs7_sign($infilename, $outfilename, $signcert, $privkey, arra
|
|||
* the encoding process - see PKCS7
|
||||
* constants.
|
||||
* </p>
|
||||
* @param int $cipherid [optional] <p>
|
||||
* @param int $cipher_algo [optional] <p>
|
||||
* One of cipher constants.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function openssl_pkcs7_encrypt($infile, $outfile, $recipcerts, array $headers, $flags = 0, $cipherid = OPENSSL_CIPHER_RC2_40) { }
|
||||
function openssl_pkcs7_encrypt($input_filename, $output_filename, $certificate, array $headers, $flags = 0, $cipher_algo = OPENSSL_CIPHER_RC2_40) { }
|
||||
|
||||
/**
|
||||
* Encrypts data with private key
|
||||
* @link https://php.net/manual/en/function.openssl-private-encrypt.php
|
||||
* @param string $data
|
||||
* @param string &$crypted
|
||||
* @param mixed $key
|
||||
* @param string &$encrypted_data
|
||||
* @param mixed $private_key
|
||||
* @param int $padding [optional] <p>
|
||||
* <i>padding</i> can be one of
|
||||
* <b>OPENSSL_PKCS1_PADDING</b>,
|
||||
|
@ -868,14 +868,14 @@ function openssl_pkcs7_encrypt($infile, $outfile, $recipcerts, array $headers, $
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function openssl_private_encrypt($data, &$crypted, $key, $padding = OPENSSL_PKCS1_PADDING) { }
|
||||
function openssl_private_encrypt($data, &$encrypted_data, $private_key, $padding = OPENSSL_PKCS1_PADDING) { }
|
||||
|
||||
/**
|
||||
* Decrypts data with private key
|
||||
* @link https://php.net/manual/en/function.openssl-private-decrypt.php
|
||||
* @param string $data
|
||||
* @param string &$decrypted
|
||||
* @param mixed $key <p>
|
||||
* @param string &$decrypted_data
|
||||
* @param mixed $private_key <p>
|
||||
* <i>key</i> must be the private key corresponding that
|
||||
* was used to encrypt the data.
|
||||
* </p>
|
||||
|
@ -888,16 +888,16 @@ function openssl_private_encrypt($data, &$crypted, $key, $padding = OPENSSL_PKCS
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function openssl_private_decrypt($data, &$decrypted, $key, $padding = OPENSSL_PKCS1_PADDING) { }
|
||||
function openssl_private_decrypt($data, &$decrypted_data, $private_key, $padding = OPENSSL_PKCS1_PADDING) { }
|
||||
|
||||
/**
|
||||
* Encrypts data with public key
|
||||
* @link https://php.net/manual/en/function.openssl-public-encrypt.php
|
||||
* @param string $data
|
||||
* @param string &$crypted <p>
|
||||
* @param string &$encrypted_data <p>
|
||||
* This will hold the result of the encryption.
|
||||
* </p>
|
||||
* @param mixed $key <p>
|
||||
* @param mixed $public_key <p>
|
||||
* The public key.
|
||||
* </p>
|
||||
* @param int $padding [optional] <p>
|
||||
|
@ -909,14 +909,14 @@ function openssl_private_decrypt($data, &$decrypted, $key, $padding = OPENSSL_PK
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function openssl_public_encrypt($data, &$crypted, $key, $padding = OPENSSL_PKCS1_PADDING) { }
|
||||
function openssl_public_encrypt($data, &$encrypted_data, $public_key, $padding = OPENSSL_PKCS1_PADDING) { }
|
||||
|
||||
/**
|
||||
* Decrypts data with public key
|
||||
* @link https://php.net/manual/en/function.openssl-public-decrypt.php
|
||||
* @param string $data
|
||||
* @param string &$decrypted
|
||||
* @param mixed $key <p>
|
||||
* @param string &$decrypted_data
|
||||
* @param mixed $public_key <p>
|
||||
* <i>key</i> must be the public key corresponding that
|
||||
* was used to encrypt the data.
|
||||
* </p>
|
||||
|
@ -927,7 +927,7 @@ function openssl_public_encrypt($data, &$crypted, $key, $padding = OPENSSL_PKCS1
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function openssl_public_decrypt($data, &$decrypted, $key, $padding = OPENSSL_PKCS1_PADDING) { }
|
||||
function openssl_public_decrypt($data, &$decrypted_data, $public_key, $padding = OPENSSL_PKCS1_PADDING) { }
|
||||
|
||||
/**
|
||||
* Gets available digest methods
|
||||
|
@ -955,23 +955,23 @@ function openssl_get_cipher_methods($aliases = false) { }
|
|||
* (No version information available, might only be in SVN)<br/>
|
||||
* Computes shared secret for public value of remote DH key and local DH key
|
||||
* @link https://php.net/manual/en/function.openssl-dh-compute-key.php
|
||||
* @param string $pub_key <p>
|
||||
* @param string $public_key <p>
|
||||
* Public key
|
||||
* </p>
|
||||
* @param resource $dh_key <p>
|
||||
* @param resource $private_key <p>
|
||||
* DH key
|
||||
* </p>
|
||||
* @return string|false computed key on success or false on failure.
|
||||
*/
|
||||
function openssl_dh_compute_key($pub_key, $dh_key) { }
|
||||
function openssl_dh_compute_key($public_key, $private_key) { }
|
||||
|
||||
/**
|
||||
* @param $peer_pub_key
|
||||
* @param $priv_key
|
||||
* @param $keylen
|
||||
* @param $public_key
|
||||
* @param $private_key
|
||||
* @param $key_length
|
||||
* @since 7.3
|
||||
*/
|
||||
function openssl_pkey_derive($peer_pub_key, $priv_key, $keylen) {}
|
||||
function openssl_pkey_derive($public_key, $private_key, $key_length) {}
|
||||
|
||||
/**
|
||||
* Generates a string of pseudo-random bytes, with the number of bytes determined by the length parameter.
|
||||
|
@ -982,14 +982,14 @@ function openssl_pkey_derive($peer_pub_key, $priv_key, $keylen) {}
|
|||
* The length of the desired string of bytes. Must be a positive integer. PHP will
|
||||
* try to cast this parameter to a non-null integer to use it.
|
||||
* </p>
|
||||
* @param bool &$crypto_strong [optional]<p>
|
||||
* @param bool &$strong_result [optional]<p>
|
||||
* If passed into the function, this will hold a boolean value that determines
|
||||
* if the algorithm used was "cryptographically strong", e.g., safe for usage with GPG,
|
||||
* passwords, etc. true if it did, otherwise false
|
||||
* </p>
|
||||
* @return string|false the generated string of bytes on success, or false on failure.
|
||||
*/
|
||||
function openssl_random_pseudo_bytes($length, &$crypto_strong = null) { }
|
||||
function openssl_random_pseudo_bytes($length, &$strong_result = null) { }
|
||||
|
||||
/**
|
||||
* Return openSSL error message
|
||||
|
@ -1010,47 +1010,47 @@ function openssl_get_cert_locations() { }
|
|||
function openssl_get_curve_names() {}
|
||||
|
||||
/**
|
||||
* @param string $P7B
|
||||
* @param array &$certs
|
||||
* @param string $input_filename
|
||||
* @param array &$certificates
|
||||
* @return bool
|
||||
* @since 7.2
|
||||
*/
|
||||
function openssl_pkcs7_read($P7B, &$certs) {}
|
||||
function openssl_pkcs7_read($input_filename, &$certificates) {}
|
||||
|
||||
/**
|
||||
* Verifies that the data block is intact, the signer is who they say they are, and returns the certs of the signers.
|
||||
* @since 8.0
|
||||
*/
|
||||
function openssl_cms_verify(string $filename, int $flags = 0, ?string $signerscerts = null, ?array $cainfo = null, ?string $extracerts = null, ?string $content = null, ?string $pk7 = null, ?string $sigfile = null, $encoding = OPENSSL_ENCODING_SMIME): bool {}
|
||||
function openssl_cms_verify(string $input_filename, int $flags = 0, ?string $certificates = null, ?array $ca_info = null, ?string $untrusted_certificates_filename = null, ?string $content = null, ?string $pk7 = null, ?string $sigfile = null, $encoding = OPENSSL_ENCODING_SMIME): bool {}
|
||||
|
||||
/**
|
||||
* Encrypts the message in the file with the certificates and outputs the result to the supplied file.
|
||||
* @param resource|string|array $recipcerts
|
||||
* @param resource|string|array $certificate
|
||||
* @since 8.0
|
||||
*/
|
||||
function openssl_cms_encrypt(string $infile, string $outfile, $recipcerts, ?array $headers, int $flags = 0, int $encoding = OPENSSL_ENCODING_SMIME, int $cipher = OPENSSL_CIPHER_RC2_40): bool {}
|
||||
function openssl_cms_encrypt(string $input_filename, string $output_filename, $certificate, ?array $headers, int $flags = 0, int $encoding = OPENSSL_ENCODING_SMIME, int $cipher_algo = OPENSSL_CIPHER_RC2_40): bool {}
|
||||
|
||||
/**
|
||||
* Signs the MIME message in the file with a cert and key and output the result to the supplied file.
|
||||
* @param resource|string $signcert
|
||||
* @param resource|string $certificate
|
||||
* @param resource|string|array $signkey8
|
||||
* @since 8.0
|
||||
*/
|
||||
function openssl_cms_sign(string $infile, string $outfile, $signcert, $signkey, ?array $headers, int $flags = 0, int $encoding = OPENSSL_ENCODING_SMIME, ?string $extracertsfilename = null): bool {}
|
||||
function openssl_cms_sign(string $input_filename, string $output_filename, $certificate, $private_key, ?array $headers, int $flags = 0, int $encoding = OPENSSL_ENCODING_SMIME, ?string $untrusted_certificates_filename = null): bool {}
|
||||
|
||||
/**
|
||||
* Decrypts the S/MIME message in the file and outputs the results to the supplied file.
|
||||
* @param resource|string $recipcert
|
||||
* @param resource|string|array $recipkey
|
||||
* @param resource|string $certificate
|
||||
* @param resource|string|array $private_key
|
||||
* @since 8.0
|
||||
*/
|
||||
function openssl_cms_decrypt(string $infilename, string $outfilename, $recipcert, $recipkey, int $encoding = OPENSSL_ENCODING_SMIME): bool {}
|
||||
function openssl_cms_decrypt(string $input_filename, string $output_filename, $certificate, $private_key, int $encoding = OPENSSL_ENCODING_SMIME): bool {}
|
||||
|
||||
/**
|
||||
* Exports the CMS file to an array of PEM certificates.
|
||||
* @since 8.0
|
||||
*/
|
||||
function openssl_cms_read(string $infilename, &$certs): bool {}
|
||||
function openssl_cms_read(string $input_filename, &$certificates): bool {}
|
||||
|
||||
define ('OPENSSL_VERSION_TEXT', "OpenSSL 1.0.0e 6 Sep 2011");
|
||||
define ('OPENSSL_VERSION_NUMBER', 268435551);
|
||||
|
|
|
@ -375,7 +375,7 @@ function pcntl_sigprocmask ($how, array $set, array &$oldset = null) {}
|
|||
* @param array $set <p>
|
||||
* Array of signals to wait for.
|
||||
* </p>
|
||||
* @param array &$siginfo [optional] <p>
|
||||
* @param array &$info [optional] <p>
|
||||
* The <i>siginfo</i> parameter is set to an array containing
|
||||
* informations about the signal.
|
||||
* </p>
|
||||
|
@ -407,7 +407,7 @@ function pcntl_sigprocmask ($how, array $set, array &$oldset = null) {}
|
|||
* </p>
|
||||
* @return int On success, <b>pcntl_sigwaitinfo</b> returns a signal number.
|
||||
*/
|
||||
function pcntl_sigwaitinfo (array $set, array &$siginfo = null) {}
|
||||
function pcntl_sigwaitinfo (array $set, array &$info = null) {}
|
||||
|
||||
/**
|
||||
* Waits for signals, with a timeout
|
||||
|
@ -415,7 +415,7 @@ function pcntl_sigwaitinfo (array $set, array &$siginfo = null) {}
|
|||
* @param array $set <p>
|
||||
* Array of signals to wait for.
|
||||
* </p>
|
||||
* @param array &$siginfo [optional] <p>
|
||||
* @param array &$info [optional] <p>
|
||||
* The <i>siginfo</i> is set to an array containing
|
||||
* informations about the signal. See
|
||||
* <b>pcntl_sigwaitinfo</b>.
|
||||
|
@ -428,7 +428,7 @@ function pcntl_sigwaitinfo (array $set, array &$siginfo = null) {}
|
|||
* </p>
|
||||
* @return int On success, <b>pcntl_sigtimedwait</b> returns a signal number.
|
||||
*/
|
||||
function pcntl_sigtimedwait (array $set, array &$siginfo = null, $seconds = 0, $nanoseconds = 0) {}
|
||||
function pcntl_sigtimedwait (array $set, array &$info = null, $seconds = 0, $nanoseconds = 0) {}
|
||||
|
||||
/**
|
||||
* Enable/disable asynchronous signal handling or return the old setting.<br>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
* @param string $subject <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @param string[] &$matches [optional] <p>
|
||||
* @param string[] &$subpatterns [optional] <p>
|
||||
* If <i>matches</i> is provided, then it is filled with
|
||||
* the results of search. $matches[0] will contain the
|
||||
* text that matched the full pattern, $matches[1]
|
||||
|
@ -154,7 +154,7 @@
|
|||
* matches given <i>subject</i>, 0 if it does not, or <b>FALSE</b>
|
||||
* if an error occurred.
|
||||
*/
|
||||
function preg_match ($pattern, $subject, array &$matches = null, $flags = 0, $offset = 0) {}
|
||||
function preg_match ($pattern, $subject, array &$subpatterns = null, $flags = 0, $offset = 0) {}
|
||||
|
||||
/**
|
||||
* Perform a global regular expression match
|
||||
|
@ -165,7 +165,7 @@ function preg_match ($pattern, $subject, array &$matches = null, $flags = 0, $of
|
|||
* @param string $subject <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @param string[][] &$matches [optional] <p>
|
||||
* @param string[][] &$subpatterns [optional] <p>
|
||||
* Array of all matches in multi-dimensional array ordered according to flags.
|
||||
* </p>
|
||||
* @param int $flags [optional] <p>
|
||||
|
@ -214,12 +214,12 @@ function preg_match ($pattern, $subject, array &$matches = null, $flags = 0, $of
|
|||
* @return int|false the number of full pattern matches (which might be zero),
|
||||
* or <b>FALSE</b> if an error occurred.
|
||||
*/
|
||||
function preg_match_all ($pattern, $subject, array &$matches = null, $flags = PREG_PATTERN_ORDER, $offset = 0) {}
|
||||
function preg_match_all ($pattern, $subject, array &$subpatterns = null, $flags = PREG_PATTERN_ORDER, $offset = 0) {}
|
||||
|
||||
/**
|
||||
* Perform a regular expression search and replace
|
||||
* @link https://php.net/manual/en/function.preg-replace.php
|
||||
* @param string|string[] $pattern <p>
|
||||
* @param string|string[] $regex <p>
|
||||
* The pattern to search for. It can be either a string or an array with
|
||||
* strings.
|
||||
* </p>
|
||||
|
@ -228,7 +228,7 @@ function preg_match_all ($pattern, $subject, array &$matches = null, $flags = PR
|
|||
* are also available, including the deprecated 'e'
|
||||
* (PREG_REPLACE_EVAL), which is specific to this function.
|
||||
* </p>
|
||||
* @param string|string[] $replacement <p>
|
||||
* @param string|string[] $replace <p>
|
||||
* The string or an array with strings to replace. If this parameter is a
|
||||
* string and the <i>pattern</i> parameter is an array,
|
||||
* all patterns will be replaced by that string. If both
|
||||
|
@ -302,7 +302,7 @@ function preg_match_all ($pattern, $subject, array &$matches = null, $flags = PR
|
|||
* be returned, otherwise <i>subject</i> will be
|
||||
* returned unchanged or <b>NULL</b> if an error occurred.
|
||||
*/
|
||||
function preg_replace ($pattern, $replacement, $subject, $limit = -1, &$count = null) {}
|
||||
function preg_replace ($regex, $replace, $subject, $limit = -1, &$count = null) {}
|
||||
|
||||
/**
|
||||
* Perform a regular expression search and replace using a callback
|
||||
|
@ -378,7 +378,7 @@ function preg_replace_callback ($regex, callable $callback, $subject, $limit = -
|
|||
/**
|
||||
* Perform a regular expression search and replace using callbacks
|
||||
* @link https://php.net/manual/en/function.preg-replace-callback-array.php
|
||||
* @param array|callable[] $patterns_and_callbacks An associative array mapping patterns (keys) to callbacks (values)
|
||||
* @param array|callable[] $pattern An associative array mapping patterns (keys) to callbacks (values)
|
||||
* @param string|string[] $subject
|
||||
* @param int $limit [optional]
|
||||
* @param int &$count [optional]
|
||||
|
@ -386,13 +386,13 @@ function preg_replace_callback ($regex, callable $callback, $subject, $limit = -
|
|||
* @return string|string[]|null <p>preg_replace_callback_array() returns an array if the subject parameter is an array, or a string otherwise. On errors the return value is NULL</p>
|
||||
* <p>If matches are found, the new subject will be returned, otherwise subject will be returned unchanged.</p>
|
||||
*/
|
||||
function preg_replace_callback_array ($patterns_and_callbacks, $subject , $limit = -1, &$count = null, $flags = 0) {}
|
||||
function preg_replace_callback_array ($pattern, $subject , $limit = -1, &$count = null, $flags = 0) {}
|
||||
|
||||
/**
|
||||
* Perform a regular expression search and replace
|
||||
* @link https://php.net/manual/en/function.preg-filter.php
|
||||
* @param string|string[] $pattern
|
||||
* @param string|string[] $replacement
|
||||
* @param string|string[] $regex
|
||||
* @param string|string[] $replace
|
||||
* @param string|string[] $subject
|
||||
* @param int $limit [optional]
|
||||
* @param int &$count [optional]
|
||||
|
@ -404,7 +404,7 @@ function preg_replace_callback_array ($patterns_and_callbacks, $subject , $limit
|
|||
* is returned when <i>subject</i> is an array
|
||||
* or <b>NULL</b> otherwise.
|
||||
*/
|
||||
function preg_filter ($pattern, $replacement, $subject, $limit = -1, &$count = null) {}
|
||||
function preg_filter ($regex, $replace, $subject, $limit = -1, &$count = null) {}
|
||||
|
||||
/**
|
||||
* Split string by a regular expression
|
||||
|
@ -440,7 +440,7 @@ function preg_split ($pattern, $subject, $limit = -1, $flags = 0) {}
|
|||
* @param string $str <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @param string $delimiter [optional] <p>
|
||||
* @param string $delim_char [optional] <p>
|
||||
* If the optional <i>delimiter</i> is specified, it
|
||||
* will also be escaped. This is useful for escaping the delimiter
|
||||
* that is required by the PCRE functions. The / is the most commonly
|
||||
|
@ -448,12 +448,12 @@ function preg_split ($pattern, $subject, $limit = -1, $flags = 0) {}
|
|||
* </p>
|
||||
* @return string the quoted (escaped) string.
|
||||
*/
|
||||
function preg_quote ($str, $delimiter = null) {}
|
||||
function preg_quote ($str, $delim_char = null) {}
|
||||
|
||||
/**
|
||||
* Return array entries that match the pattern
|
||||
* @link https://php.net/manual/en/function.preg-grep.php
|
||||
* @param string $pattern <p>
|
||||
* @param string $regex <p>
|
||||
* The pattern to search for, as a string.
|
||||
* </p>
|
||||
* @param array $input <p>
|
||||
|
@ -467,7 +467,7 @@ function preg_quote ($str, $delimiter = null) {}
|
|||
* @return array|false an array indexed using the keys from the
|
||||
* <i>input</i> array or false when pattern cannot be compiled.
|
||||
*/
|
||||
function preg_grep ($pattern, array $input, $flags = 0) {}
|
||||
function preg_grep ($regex, array $input, $flags = 0) {}
|
||||
|
||||
/**
|
||||
* Returns the error code of the last PCRE regex execution
|
||||
|
|
|
@ -36,12 +36,12 @@ function readline_info ($varname = null, $newvalue = null) {}
|
|||
/**
|
||||
* Adds a line to the history
|
||||
* @link https://php.net/manual/en/function.readline-add-history.php
|
||||
* @param string $line <p>
|
||||
* @param string $prompt <p>
|
||||
* The line to be added in the history.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function readline_add_history ($line) {}
|
||||
function readline_add_history ($prompt) {}
|
||||
|
||||
/**
|
||||
* Clears the history
|
||||
|
@ -81,13 +81,13 @@ function readline_write_history ($filename = null) {}
|
|||
/**
|
||||
* Registers a completion function
|
||||
* @link https://php.net/manual/en/function.readline-completion-function.php
|
||||
* @param callable $function <p>
|
||||
* @param callable $funcname <p>
|
||||
* You must supply the name of an existing function which accepts a
|
||||
* partial command line and returns an array of possible matches.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function readline_completion_function (callable $function) {}
|
||||
function readline_completion_function (callable $funcname) {}
|
||||
|
||||
/**
|
||||
* Initializes the readline callback interface and terminal, prints the prompt and returns immediately
|
||||
|
|
|
@ -351,7 +351,7 @@ function session_set_cookie_params ($options) {}
|
|||
/**
|
||||
* Set the session cookie parameters
|
||||
* @link https://php.net/manual/en/function.session-set-cookie-params.php
|
||||
* @param int $lifetime <p>
|
||||
* @param int $lifetime_or_options <p>
|
||||
* Lifetime of the
|
||||
* session cookie, defined in seconds.
|
||||
* </p>
|
||||
|
@ -376,7 +376,7 @@ function session_set_cookie_params ($options) {}
|
|||
* </p>
|
||||
* @return void|bool since 7.2.0 returns true on success or false on failure.
|
||||
*/
|
||||
function session_set_cookie_params ($lifetime, $path = null, $domain = null, $secure = false, $httponly = false) {}
|
||||
function session_set_cookie_params ($lifetime_or_options, $path = null, $domain = null, $secure = false, $httponly = false) {}
|
||||
|
||||
/**
|
||||
* Get the session cookie parameters
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -26,13 +26,13 @@ define("__COMPILER_HALT_OFFSET__",0);
|
|||
* If the hexadecimal input string is of odd length or invalid hexadecimal string an <code>E_WARNING</code> level error is emitted.
|
||||
*
|
||||
* @link https://php.net/manual/en/function.hex2bin.php
|
||||
* @param string $data Hexadecimal string to convert.
|
||||
* @param string $string Hexadecimal string to convert.
|
||||
* @return string|false The binary representation of the given data or <b>FALSE</b> on failure.
|
||||
* @see bin2hex()
|
||||
* @see unpack()
|
||||
* @since 5.4
|
||||
*/
|
||||
function hex2bin($data) {};
|
||||
function hex2bin($string) {};
|
||||
|
||||
/**
|
||||
* Get or Set the HTTP response code
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @deprecated 5.3
|
||||
* Loads a PHP extension at runtime
|
||||
* @link https://php.net/manual/en/function.dl.php
|
||||
* @param string $library <p>
|
||||
* @param string $extension_filename <p>
|
||||
* This parameter is only the filename of the
|
||||
* extension to load which also depends on your platform. For example,
|
||||
* the sockets extension (if compiled
|
||||
|
@ -33,8 +30,11 @@
|
|||
* and execution is stopped. If <b>dl</b> fails because the
|
||||
* specified library couldn't be loaded, in addition to <b>FALSE</b> an
|
||||
* <b>E_WARNING</b> message is emitted.
|
||||
*@deprecated 5.3
|
||||
* Loads a PHP extension at runtime
|
||||
* @link https://php.net/manual/en/function.dl.php
|
||||
*/
|
||||
function dl ($library) {}
|
||||
function dl ($extension_filename) {}
|
||||
|
||||
/**
|
||||
* Sets the process title
|
||||
|
@ -67,23 +67,23 @@ function is_iterable($value) {}
|
|||
/**
|
||||
* Encodes an ISO-8859-1 string to UTF-8
|
||||
* @link https://php.net/manual/en/function.utf8-encode.php
|
||||
* @param string $data <p>
|
||||
* @param string $string <p>
|
||||
* An ISO-8859-1 string.
|
||||
* </p>
|
||||
* @return string the UTF-8 translation of <i>data</i>.
|
||||
*/
|
||||
function utf8_encode ($data) {}
|
||||
function utf8_encode ($string) {}
|
||||
|
||||
/**
|
||||
* Converts a string with ISO-8859-1 characters encoded with UTF-8
|
||||
* to single-byte ISO-8859-1
|
||||
* @link https://php.net/manual/en/function.utf8-decode.php
|
||||
* @param string $data <p>
|
||||
* @param string $string <p>
|
||||
* An UTF-8 encoded string.
|
||||
* </p>
|
||||
* @return string the ISO-8859-1 translation of <i>data</i>.
|
||||
*/
|
||||
function utf8_decode ($data) {}
|
||||
function utf8_decode ($string) {}
|
||||
|
||||
/**
|
||||
* Clear the most recent error
|
||||
|
|
|
@ -135,12 +135,12 @@ function constant ($name) {}
|
|||
/**
|
||||
* Convert binary data into hexadecimal representation
|
||||
* @link https://php.net/manual/en/function.bin2hex.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* A character.
|
||||
* </p>
|
||||
* @return string the hexadecimal representation of the given string.
|
||||
*/
|
||||
function bin2hex ($str) {}
|
||||
function bin2hex ($string) {}
|
||||
|
||||
/**
|
||||
* Delay execution
|
||||
|
@ -157,13 +157,13 @@ function sleep ($seconds) {}
|
|||
/**
|
||||
* Delay execution in microseconds
|
||||
* @link https://php.net/manual/en/function.usleep.php
|
||||
* @param int $micro_seconds <p>
|
||||
* @param int $microseconds <p>
|
||||
* Halt time in micro seconds. A micro second is one millionth of a
|
||||
* second.
|
||||
* </p>
|
||||
* @return void
|
||||
*/
|
||||
function usleep ($micro_seconds) {}
|
||||
function usleep ($microseconds) {}
|
||||
|
||||
/**
|
||||
* Delay for a number of seconds and nanoseconds
|
||||
|
@ -199,7 +199,7 @@ function time_sleep_until ($timestamp) {}
|
|||
/**
|
||||
* Parse a time/date generated with <function>strftime</function>
|
||||
* @link https://php.net/manual/en/function.strptime.php
|
||||
* @param string $date <p>
|
||||
* @param string $timestamp <p>
|
||||
* The string to parse (e.g. returned from strftime)
|
||||
* </p>
|
||||
* @param string $format <p>
|
||||
|
@ -258,7 +258,7 @@ function time_sleep_until ($timestamp) {}
|
|||
* </tr>
|
||||
* </table>
|
||||
*/
|
||||
function strptime ($date, $format) {}
|
||||
function strptime ($timestamp, $format) {}
|
||||
|
||||
/**
|
||||
* Flush the output buffer
|
||||
|
@ -270,7 +270,7 @@ function flush () {}
|
|||
/**
|
||||
* Wraps a string to a given number of characters
|
||||
* @link https://php.net/manual/en/function.wordwrap.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @param int $width [optional] <p>
|
||||
|
@ -280,7 +280,7 @@ function flush () {}
|
|||
* The line is broken using the optional
|
||||
* break parameter.
|
||||
* </p>
|
||||
* @param bool $cut [optional] <p>
|
||||
* @param bool $cut_long_words [optional] <p>
|
||||
* If the cut is set to true, the string is
|
||||
* always wrapped at or before the specified width. So if you have
|
||||
* a word that is larger than the given width, it is broken apart.
|
||||
|
@ -288,7 +288,7 @@ function flush () {}
|
|||
* </p>
|
||||
* @return string the given string wrapped at the specified column.
|
||||
*/
|
||||
function wordwrap ($str, $width = 75, $break = "\n", $cut = false) {}
|
||||
function wordwrap ($string, $width = 75, $break = "\n", $cut_long_words = false) {}
|
||||
|
||||
/**
|
||||
* Convert special characters to HTML entities
|
||||
|
@ -414,7 +414,7 @@ function htmlspecialchars ($string, $flags = ENT_COMPAT | ENT_HTML401, $encoding
|
|||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @param int $quote_style [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* Like htmlspecialchars, the optional second
|
||||
* quote_style parameter lets you define what will
|
||||
* be done with 'single' and "double" quotes. It takes on one of three
|
||||
|
@ -439,7 +439,7 @@ function htmlspecialchars ($string, $flags = ENT_COMPAT | ENT_HTML401, $encoding
|
|||
* </tr>
|
||||
* </table>
|
||||
* </p>
|
||||
* @param string $charset [optional] <p>
|
||||
* @param string $encoding [optional] <p>
|
||||
* Like htmlspecialchars, it takes an optional
|
||||
* third argument charset which defines character
|
||||
* set used in conversion.
|
||||
|
@ -452,7 +452,7 @@ function htmlspecialchars ($string, $flags = ENT_COMPAT | ENT_HTML401, $encoding
|
|||
* </p>
|
||||
* @return string the encoded string.
|
||||
*/
|
||||
function htmlentities ($string, $quote_style = null, $charset = null, $double_encode = true) {}
|
||||
function htmlentities ($string, $flags = null, $encoding = null, $double_encode = true) {}
|
||||
|
||||
/**
|
||||
* Convert all HTML entities to their applicable characters
|
||||
|
@ -460,7 +460,7 @@ function htmlentities ($string, $quote_style = null, $charset = null, $double_en
|
|||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @param int $quote_style [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* The optional second quote_style parameter lets
|
||||
* you define what will be done with 'single' and "double" quotes. It takes
|
||||
* on one of three constants with the default being
|
||||
|
@ -485,7 +485,7 @@ function htmlentities ($string, $quote_style = null, $charset = null, $double_en
|
|||
* </tr>
|
||||
* </table>
|
||||
* </p>
|
||||
* @param string $charset [optional] <p>
|
||||
* @param string $encoding [optional] <p>
|
||||
* The ISO-8859-1 character set is used as default for the optional third
|
||||
* charset. This defines the character set used in
|
||||
* conversion.
|
||||
|
@ -493,7 +493,7 @@ function htmlentities ($string, $quote_style = null, $charset = null, $double_en
|
|||
* &reference.strings.charsets;
|
||||
* @return string the decoded string.
|
||||
*/
|
||||
function html_entity_decode ($string, $quote_style = null, $charset = null) {}
|
||||
function html_entity_decode ($string, $flags = null, $encoding = null) {}
|
||||
|
||||
/**
|
||||
* Convert special HTML entities back to characters
|
||||
|
@ -501,7 +501,7 @@ function html_entity_decode ($string, $quote_style = null, $charset = null) {}
|
|||
* @param string $string <p>
|
||||
* The string to decode
|
||||
* </p>
|
||||
* @param int $quote_style [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* The quote style. One of the following constants:
|
||||
* <table>
|
||||
* quote_style constants
|
||||
|
@ -526,7 +526,7 @@ function html_entity_decode ($string, $quote_style = null, $charset = null) {}
|
|||
* </p>
|
||||
* @return string the decoded string.
|
||||
*/
|
||||
function htmlspecialchars_decode ($string, $quote_style = null) {}
|
||||
function htmlspecialchars_decode ($string, $flags = null) {}
|
||||
|
||||
/**
|
||||
* Returns the translation table used by <function>htmlspecialchars</function> and <function>htmlentities</function>
|
||||
|
@ -536,7 +536,7 @@ function htmlspecialchars_decode ($string, $quote_style = null) {}
|
|||
* HTML_SPECIALCHARS) that allow you to specify the
|
||||
* table you want.
|
||||
* </p>
|
||||
* @param int $quote_style [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* Like the htmlspecialchars and
|
||||
* htmlentities functions you can optionally specify
|
||||
* the quote_style you are working with.
|
||||
|
@ -703,15 +703,15 @@ function htmlspecialchars_decode ($string, $quote_style = null) {}
|
|||
* </p></blockquote>
|
||||
* @return array the translation table as an array.
|
||||
*/
|
||||
function get_html_translation_table ($table = null, $quote_style = null, string $encoding = "UTF-8") {}
|
||||
function get_html_translation_table ($table = null, $flags = null, string $encoding = "UTF-8") {}
|
||||
|
||||
/**
|
||||
* Calculate the sha1 hash of a string
|
||||
* @link https://php.net/manual/en/function.sha1.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @param bool $raw_output [optional] <p>
|
||||
* @param bool $binary [optional] <p>
|
||||
* If the optional raw_output is set to true,
|
||||
* then the sha1 digest is instead returned in raw binary format with a
|
||||
* length of 20, otherwise the returned value is a 40-character
|
||||
|
@ -719,7 +719,7 @@ function get_html_translation_table ($table = null, $quote_style = null, string
|
|||
* </p>
|
||||
* @return string the sha1 hash as a string.
|
||||
*/
|
||||
function sha1 ($str, $raw_output = false) {}
|
||||
function sha1 ($string, $binary = false) {}
|
||||
|
||||
/**
|
||||
* Calculate the sha1 hash of a file
|
||||
|
@ -727,28 +727,28 @@ function sha1 ($str, $raw_output = false) {}
|
|||
* @param string $filename <p>
|
||||
* The filename
|
||||
* </p>
|
||||
* @param bool $raw_output [optional] <p>
|
||||
* @param bool $binary [optional] <p>
|
||||
* When true, returns the digest in raw binary format with a length of
|
||||
* 20.
|
||||
* </p>
|
||||
* @return string|false a string on success, false otherwise.
|
||||
*/
|
||||
function sha1_file ($filename, $raw_output = false) {}
|
||||
function sha1_file ($filename, $binary = false) {}
|
||||
|
||||
/**
|
||||
* Calculate the md5 hash of a string
|
||||
* @link https://php.net/manual/en/function.md5.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string.
|
||||
* </p>
|
||||
* @param bool $raw_output [optional] <p>
|
||||
* @param bool $binary [optional] <p>
|
||||
* If the optional raw_output is set to true,
|
||||
* then the md5 digest is instead returned in raw binary format with a
|
||||
* length of 16.
|
||||
* </p>
|
||||
* @return string the hash as a 32-character hexadecimal number.
|
||||
*/
|
||||
function md5 ($str, $raw_output = false) {}
|
||||
function md5 ($string, $binary = false) {}
|
||||
|
||||
/**
|
||||
* Calculates the md5 hash of a given file
|
||||
|
@ -756,44 +756,44 @@ function md5 ($str, $raw_output = false) {}
|
|||
* @param string $filename <p>
|
||||
* The filename
|
||||
* </p>
|
||||
* @param bool $raw_output [optional] <p>
|
||||
* @param bool $binary [optional] <p>
|
||||
* When true, returns the digest in raw binary format with a length of
|
||||
* 16.
|
||||
* </p>
|
||||
* @return string|false a string on success, false otherwise.
|
||||
*/
|
||||
function md5_file ($filename, $raw_output = false) {}
|
||||
function md5_file ($filename, $binary = false) {}
|
||||
|
||||
/**
|
||||
* Calculates the crc32 polynomial of a string
|
||||
* @link https://php.net/manual/en/function.crc32.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The data.
|
||||
* </p>
|
||||
* @return int the crc32 checksum of str as an integer..1
|
||||
*/
|
||||
function crc32 ($str) {}
|
||||
function crc32 ($string) {}
|
||||
|
||||
/**
|
||||
* Parse a binary IPTC block into single tags.
|
||||
* Note: This function does not require the GD image library.
|
||||
* @link https://php.net/manual/en/function.iptcparse.php
|
||||
* @param string $iptcblock <p>
|
||||
* @param string $iptc_block <p>
|
||||
* A binary IPTC block.
|
||||
* </p>
|
||||
* @return array|false an array using the tagmarker as an index and the value as the
|
||||
* value. It returns false on error or if no IPTC data was found.
|
||||
*/
|
||||
function iptcparse ($iptcblock) {}
|
||||
function iptcparse ($iptc_block) {}
|
||||
|
||||
/**
|
||||
* Embeds binary IPTC data into a JPEG image.
|
||||
* Note: This function does not require the GD image library.
|
||||
* @link https://php.net/manual/en/function.iptcembed.php
|
||||
* @param string $iptcdata <p>
|
||||
* @param string $iptc_data <p>
|
||||
* The data to be written.
|
||||
* </p>
|
||||
* @param string $jpeg_file_name <p>
|
||||
* @param string $filename <p>
|
||||
* Path to the JPEG image.
|
||||
* </p>
|
||||
* @param int $spool [optional] <p>
|
||||
|
@ -803,7 +803,7 @@ function iptcparse ($iptcblock) {}
|
|||
* @return string|bool If success and spool flag is lower than 2 then the JPEG will not be
|
||||
* returned as a string, false on errors.
|
||||
*/
|
||||
function iptcembed ($iptcdata, $jpeg_file_name, $spool = null) {}
|
||||
function iptcembed ($iptc_data, $filename, $spool = null) {}
|
||||
|
||||
/**
|
||||
* Get the size of an image
|
||||
|
@ -813,7 +813,7 @@ function iptcembed ($iptcdata, $jpeg_file_name, $spool = null) {}
|
|||
* about. It can reference a local file or (configuration permitting) a
|
||||
* remote file using one of the supported streams.
|
||||
* </p>
|
||||
* @param array &$imageinfo [optional] <p>
|
||||
* @param array &$image_info [optional] <p>
|
||||
* This optional parameter allows you to extract some extended
|
||||
* information from the image file. Currently, this will return the
|
||||
* different JPG APP markers as an associative array.
|
||||
|
@ -866,12 +866,12 @@ function iptcembed ($iptcdata, $jpeg_file_name, $spool = null) {}
|
|||
* <p>
|
||||
* On failure, false is returned.
|
||||
*/
|
||||
function getimagesize ($filename, array &$imageinfo = null) {}
|
||||
function getimagesize ($filename, array &$image_info = null) {}
|
||||
|
||||
/**
|
||||
* Get Mime-Type for image-type returned by getimagesize, exif_read_data, exif_thumbnail, exif_imagetype
|
||||
* @link https://php.net/manual/en/function.image-type-to-mime-type.php
|
||||
* @param int $imagetype <p>
|
||||
* @param int $image_type <p>
|
||||
* One of the IMAGETYPE_XXX constants.
|
||||
* </p>
|
||||
* @return string The returned values are as follows
|
||||
|
@ -953,12 +953,12 @@ function getimagesize ($filename, array &$imageinfo = null) {}
|
|||
* </tr>
|
||||
* </table>
|
||||
*/
|
||||
function image_type_to_mime_type ($imagetype) {}
|
||||
function image_type_to_mime_type ($image_type) {}
|
||||
|
||||
/**
|
||||
* Get file extension for image type
|
||||
* @link https://php.net/manual/en/function.image-type-to-extension.php
|
||||
* @param int $imagetype <p>
|
||||
* @param int $image_type <p>
|
||||
* One of the IMAGETYPE_XXX constant.
|
||||
* </p>
|
||||
* @param bool $include_dot [optional] <p>
|
||||
|
@ -967,12 +967,12 @@ function image_type_to_mime_type ($imagetype) {}
|
|||
* </p>
|
||||
* @return string A string with the extension corresponding to the given image type.
|
||||
*/
|
||||
function image_type_to_extension ($imagetype, $include_dot = true) {}
|
||||
function image_type_to_extension ($image_type, $include_dot = true) {}
|
||||
|
||||
/**
|
||||
* Outputs lots of PHP information
|
||||
* @link https://php.net/manual/en/function.phpinfo.php
|
||||
* @param int $what [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* The output may be customized by passing one or more of the
|
||||
* following constants bitwise values summed
|
||||
* together in the optional what parameter.
|
||||
|
@ -1053,7 +1053,7 @@ function image_type_to_extension ($imagetype, $include_dot = true) {}
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function phpinfo ($what = null) {}
|
||||
function phpinfo ($flags = null) {}
|
||||
|
||||
/**
|
||||
* Gets the current PHP version
|
||||
|
@ -1071,7 +1071,7 @@ function phpversion ($extension = null) {}
|
|||
/**
|
||||
* Prints out the credits for PHP
|
||||
* @link https://php.net/manual/en/function.phpcredits.php
|
||||
* @param int $flag [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* To generate a custom credits page, you may want to use the
|
||||
* flag parameter.
|
||||
* </p>
|
||||
|
@ -1131,7 +1131,7 @@ function phpversion ($extension = null) {}
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function phpcredits ($flag = null) {}
|
||||
function phpcredits ($flags = null) {}
|
||||
|
||||
/**
|
||||
* @removed 5.5
|
||||
|
@ -1214,10 +1214,10 @@ function php_ini_loaded_file () {}
|
|||
/**
|
||||
* String comparisons using a "natural order" algorithm
|
||||
* @link https://php.net/manual/en/function.strnatcmp.php
|
||||
* @param string $str1 <p>
|
||||
* @param string $string1 <p>
|
||||
* The first string.
|
||||
* </p>
|
||||
* @param string $str2 <p>
|
||||
* @param string $string2 <p>
|
||||
* The second string.
|
||||
* </p>
|
||||
* @return int Similar to other string comparison functions, this one returns < 0 if
|
||||
|
@ -1225,15 +1225,15 @@ function php_ini_loaded_file () {}
|
|||
* 0 if str1 is greater than
|
||||
* str2, and 0 if they are equal.
|
||||
*/
|
||||
function strnatcmp ($str1, $str2) {}
|
||||
function strnatcmp ($string1, $string2) {}
|
||||
|
||||
/**
|
||||
* Case insensitive string comparisons using a "natural order" algorithm
|
||||
* @link https://php.net/manual/en/function.strnatcasecmp.php
|
||||
* @param string $str1 <p>
|
||||
* @param string $string1 <p>
|
||||
* The first string.
|
||||
* </p>
|
||||
* @param string $str2 <p>
|
||||
* @param string $string2 <p>
|
||||
* The second string.
|
||||
* </p>
|
||||
* @return int Similar to other string comparison functions, this one returns < 0 if
|
||||
|
@ -1241,7 +1241,7 @@ function strnatcmp ($str1, $str2) {}
|
|||
* 0 if str1 is greater than
|
||||
* str2, and 0 if they are equal.
|
||||
*/
|
||||
function strnatcasecmp ($str1, $str2) {}
|
||||
function strnatcasecmp ($string1, $string2) {}
|
||||
|
||||
/**
|
||||
* Count the number of substring occurrences
|
||||
|
@ -1268,13 +1268,13 @@ function substr_count ($haystack, $needle, $offset = null, $length = null) {}
|
|||
* Finds the length of the first segment of a string consisting
|
||||
* entirely of characters contained within a given mask.
|
||||
* @link https://php.net/manual/en/function.strspn.php
|
||||
* @param string $subject <p>
|
||||
* @param string $string <p>
|
||||
* The string to examine.
|
||||
* </p>
|
||||
* @param string $mask <p>
|
||||
* @param string $characters <p>
|
||||
* The list of allowable characters to include in counted segments.
|
||||
* </p>
|
||||
* @param int $start [optional] <p>
|
||||
* @param int $offset [optional] <p>
|
||||
* The position in subject to
|
||||
* start searching.
|
||||
* </p>
|
||||
|
@ -1314,18 +1314,18 @@ function substr_count ($haystack, $needle, $offset = null, $length = null) {}
|
|||
* @return int the length of the initial segment of str1
|
||||
* which consists entirely of characters in str2.
|
||||
*/
|
||||
function strspn ($subject, $mask, $start = null, $length = null) {}
|
||||
function strspn ($string, $characters, $offset = null, $length = null) {}
|
||||
|
||||
/**
|
||||
* Find length of initial segment not matching mask
|
||||
* @link https://php.net/manual/en/function.strcspn.php
|
||||
* @param string $str1 <p>
|
||||
* @param string $string <p>
|
||||
* The first string.
|
||||
* </p>
|
||||
* @param string $str2 <p>
|
||||
* @param string $characters <p>
|
||||
* The second string.
|
||||
* </p>
|
||||
* @param int $start [optional] <p>
|
||||
* @param int $offset [optional] <p>
|
||||
* The start position of the string to examine.
|
||||
* </p>
|
||||
* @param int $length [optional] <p>
|
||||
|
@ -1333,7 +1333,7 @@ function strspn ($subject, $mask, $start = null, $length = null) {}
|
|||
* </p>
|
||||
* @return int the length of the segment as an integer.
|
||||
*/
|
||||
function strcspn ($str1, $str2, $start = null, $length = null) {}
|
||||
function strcspn ($string, $characters, $offset = null, $length = null) {}
|
||||
|
||||
/**
|
||||
* Tokenize string
|
||||
|
@ -1343,7 +1343,7 @@ function strcspn ($str1, $str2, $start = null, $length = null) {}
|
|||
* Note that you may put multiple tokens in the token parameter.
|
||||
* The string will be tokenized when any one of the characters in the argument are found.
|
||||
* @link https://php.net/manual/en/function.strtok.php
|
||||
* @param string $str [optional] <p>
|
||||
* @param string $string [optional] <p>
|
||||
* The string being split up into smaller strings (tokens).
|
||||
* </p>
|
||||
* @param string $token <p>
|
||||
|
@ -1351,4 +1351,4 @@ function strcspn ($str1, $str2, $start = null, $length = null) {}
|
|||
* </p>
|
||||
* @return string A string token.
|
||||
*/
|
||||
function strtok ($str = null, $token) {}
|
||||
function strtok ($string = null, $token) {}
|
||||
|
|
|
@ -14,12 +14,12 @@ function strtoupper ($string) {}
|
|||
/**
|
||||
* Make a string lowercase
|
||||
* @link https://php.net/manual/en/function.strtolower.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @return string the lowercased string.
|
||||
*/
|
||||
function strtolower ($str) {}
|
||||
function strtolower ($string) {}
|
||||
|
||||
/**
|
||||
* Find the position of the first occurrence of a substring in a string
|
||||
|
@ -137,7 +137,7 @@ function strrev ($string) {}
|
|||
/**
|
||||
* Convert logical Hebrew text to visual text
|
||||
* @link https://php.net/manual/en/function.hebrev.php
|
||||
* @param string $hebrew_text <p>
|
||||
* @param string $string <p>
|
||||
* A Hebrew input string.
|
||||
* </p>
|
||||
* @param int $max_chars_per_line [optional] <p>
|
||||
|
@ -146,7 +146,7 @@ function strrev ($string) {}
|
|||
* </p>
|
||||
* @return string the visual string.
|
||||
*/
|
||||
function hebrev ($hebrew_text, $max_chars_per_line = null) {}
|
||||
function hebrev ($string, $max_chars_per_line = null) {}
|
||||
|
||||
/**
|
||||
* Convert logical Hebrew text to visual text with newline conversion
|
||||
|
@ -170,12 +170,12 @@ function hebrevc ($hebrew_text, $max_chars_per_line = null) {}
|
|||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @param bool $is_xhtml [optional] <p>
|
||||
* @param bool $use_xhtml [optional] <p>
|
||||
* Whenever to use XHTML compatible line breaks or not.
|
||||
* </p>
|
||||
* @return string the altered string.
|
||||
*/
|
||||
function nl2br ($string, $is_xhtml = true) {}
|
||||
function nl2br ($string, $use_xhtml = true) {}
|
||||
|
||||
/**
|
||||
* Returns filename component of path
|
||||
|
@ -225,7 +225,7 @@ function dirname ($path, $levels = 1) {}
|
|||
* @param string $path <p>
|
||||
* The path being checked.
|
||||
* </p>
|
||||
* @param int $options [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* You can specify which elements are returned with optional parameter
|
||||
* options. It composes from
|
||||
* PATHINFO_DIRNAME,
|
||||
|
@ -242,12 +242,12 @@ function dirname ($path, $levels = 1) {}
|
|||
* If options is used, this function will return a
|
||||
* string if not all elements are requested.
|
||||
*/
|
||||
function pathinfo ($path, $options = null) {}
|
||||
function pathinfo ($path, $flags = null) {}
|
||||
|
||||
/**
|
||||
* Un-quotes a quoted string
|
||||
* @link https://php.net/manual/en/function.stripslashes.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @return string a string with backslashes stripped off.
|
||||
|
@ -255,17 +255,17 @@ function pathinfo ($path, $options = null) {}
|
|||
* Double backslashes (\\) are made into a single
|
||||
* backslash (\).
|
||||
*/
|
||||
function stripslashes ($str) {}
|
||||
function stripslashes ($string) {}
|
||||
|
||||
/**
|
||||
* Un-quote string quoted with <function>addcslashes</function>
|
||||
* @link https://php.net/manual/en/function.stripcslashes.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string to be unescaped.
|
||||
* </p>
|
||||
* @return string the unescaped string.
|
||||
*/
|
||||
function stripcslashes ($str) {}
|
||||
function stripcslashes ($string) {}
|
||||
|
||||
/**
|
||||
* Find first occurrence of a string
|
||||
|
@ -331,12 +331,12 @@ function strrchr ($haystack, $needle) {}
|
|||
/**
|
||||
* Randomly shuffles a string
|
||||
* @link https://php.net/manual/en/function.str-shuffle.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @return string the shuffled string.
|
||||
*/
|
||||
function str_shuffle ($str) {}
|
||||
function str_shuffle ($string) {}
|
||||
|
||||
/**
|
||||
* Return information about words used in a string
|
||||
|
@ -349,13 +349,13 @@ function str_shuffle ($str) {}
|
|||
* are:
|
||||
* 0 - returns the number of words found
|
||||
* </p>
|
||||
* @param string $charlist [optional] <p>
|
||||
* @param string $characters [optional] <p>
|
||||
* A list of additional characters which will be considered as 'word'
|
||||
* </p>
|
||||
* @return string[]|int an array or an integer, depending on the
|
||||
* format chosen.
|
||||
*/
|
||||
function str_word_count ($string, $format = null, $charlist = null) {}
|
||||
function str_word_count ($string, $format = null, $characters = null) {}
|
||||
|
||||
/**
|
||||
* Convert a string to an array
|
||||
|
@ -363,7 +363,7 @@ function str_word_count ($string, $format = null, $charlist = null) {}
|
|||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @param int $split_length [optional] <p>
|
||||
* @param int $length [optional] <p>
|
||||
* Maximum length of the chunk.
|
||||
* </p>
|
||||
* @return array If the optional split_length parameter is
|
||||
|
@ -377,29 +377,29 @@ function str_word_count ($string, $format = null, $charlist = null) {}
|
|||
* string, the entire string is returned as the first
|
||||
* (and only) array element.
|
||||
*/
|
||||
function str_split ($string, $split_length = 1) {}
|
||||
function str_split ($string, $length = 1) {}
|
||||
|
||||
/**
|
||||
* Search a string for any of a set of characters
|
||||
* @link https://php.net/manual/en/function.strpbrk.php
|
||||
* @param string $haystack <p>
|
||||
* @param string $string <p>
|
||||
* The string where char_list is looked for.
|
||||
* </p>
|
||||
* @param string $char_list <p>
|
||||
* @param string $characters <p>
|
||||
* This parameter is case sensitive.
|
||||
* </p>
|
||||
* @return string|false a string starting from the character found, or false if it is
|
||||
* not found.
|
||||
*/
|
||||
function strpbrk ($haystack, $char_list) {}
|
||||
function strpbrk ($string, $characters) {}
|
||||
|
||||
/**
|
||||
* Binary safe comparison of 2 strings from an offset, up to length characters
|
||||
* @link https://php.net/manual/en/function.substr-compare.php
|
||||
* @param string $main_str <p>
|
||||
* @param string $haystack <p>
|
||||
* The main string being compared.
|
||||
* </p>
|
||||
* @param string $str <p>
|
||||
* @param string $needle <p>
|
||||
* The secondary string being compared.
|
||||
* </p>
|
||||
* @param int $offset <p>
|
||||
|
@ -409,7 +409,7 @@ function strpbrk ($haystack, $char_list) {}
|
|||
* @param int $length [optional] <p>
|
||||
* The length of the comparison.
|
||||
* </p>
|
||||
* @param bool $case_insensitivity [optional] <p>
|
||||
* @param bool $case_insensitive [optional] <p>
|
||||
* If case_insensitivity is true, comparison is
|
||||
* case insensitive.
|
||||
* </p>
|
||||
|
@ -421,15 +421,15 @@ function strpbrk ($haystack, $char_list) {}
|
|||
* is less than 1, substr_compare prints a warning and returns
|
||||
* false.
|
||||
*/
|
||||
function substr_compare ($main_str, $str, $offset, $length = null, $case_insensitivity = null) {}
|
||||
function substr_compare ($haystack, $needle, $offset, $length = null, $case_insensitive = null) {}
|
||||
|
||||
/**
|
||||
* Locale based string comparison
|
||||
* @link https://php.net/manual/en/function.strcoll.php
|
||||
* @param string $str1 <p>
|
||||
* @param string $string1 <p>
|
||||
* The first string.
|
||||
* </p>
|
||||
* @param string $str2 <p>
|
||||
* @param string $string2 <p>
|
||||
* The second string.
|
||||
* </p>
|
||||
* @return int < 0 if str1 is less than
|
||||
|
@ -437,7 +437,7 @@ function substr_compare ($main_str, $str, $offset, $length = null, $case_insensi
|
|||
* str1 is greater than
|
||||
* str2, and 0 if they are equal.
|
||||
*/
|
||||
function strcoll ($str1, $str2) {}
|
||||
function strcoll ($string1, $string2) {}
|
||||
|
||||
/**
|
||||
* Formats a number as a currency string
|
||||
|
@ -463,7 +463,7 @@ function money_format ($format, $number) {}
|
|||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @param int $start <p>
|
||||
* @param int $offset <p>
|
||||
* If start is non-negative, the returned string
|
||||
* will start at the start'th position in
|
||||
* string, counting from zero. For instance,
|
||||
|
@ -520,7 +520,7 @@ function money_format ($format, $number) {}
|
|||
* </pre>
|
||||
* @return string|false the extracted part of string or false on failure.
|
||||
*/
|
||||
function substr ($string, $start, $length = null) {}
|
||||
function substr ($string, $offset, $length = null) {}
|
||||
|
||||
/**
|
||||
* Replace text within a portion of a string
|
||||
|
@ -528,10 +528,10 @@ function substr ($string, $start, $length = null) {}
|
|||
* @param mixed $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @param string $replacement <p>
|
||||
* @param string $replace <p>
|
||||
* The replacement string.
|
||||
* </p>
|
||||
* @param int $start <p>
|
||||
* @param int $offset <p>
|
||||
* If start is positive, the replacing will
|
||||
* begin at the start'th offset into
|
||||
* string.
|
||||
|
@ -557,53 +557,53 @@ function substr ($string, $start, $length = null) {}
|
|||
* @return string|string[] The result string is returned. If string is an
|
||||
* array then array is returned.
|
||||
*/
|
||||
function substr_replace ($string, $replacement, $start, $length = null) {}
|
||||
function substr_replace ($string, $replace, $offset, $length = null) {}
|
||||
|
||||
/**
|
||||
* Quote meta characters
|
||||
* @link https://php.net/manual/en/function.quotemeta.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @return string the string with meta characters quoted.
|
||||
*/
|
||||
function quotemeta ($str) {}
|
||||
function quotemeta ($string) {}
|
||||
|
||||
/**
|
||||
* Make a string's first character uppercase
|
||||
* @link https://php.net/manual/en/function.ucfirst.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @return string the resulting string.
|
||||
*/
|
||||
function ucfirst ($str) {}
|
||||
function ucfirst ($string) {}
|
||||
|
||||
/**
|
||||
* Make a string's first character lowercase
|
||||
* @link https://php.net/manual/en/function.lcfirst.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @return string the resulting string.
|
||||
*/
|
||||
function lcfirst ($str) {}
|
||||
function lcfirst ($string) {}
|
||||
|
||||
/**
|
||||
* Uppercase the first character of each word in a string
|
||||
* @link https://php.net/manual/en/function.ucwords.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @param string $delimiters [optional] <p>
|
||||
* @param string $separators [optional] <p>
|
||||
* @return string the modified string.
|
||||
*/
|
||||
function ucwords ($str, $delimiters = " \t\r\n\f\v") {}
|
||||
function ucwords ($string, $separators = " \t\r\n\f\v") {}
|
||||
|
||||
/**
|
||||
* Translate certain characters
|
||||
* @link https://php.net/manual/en/function.strtr.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string being translated.
|
||||
* </p>
|
||||
* @param string $from <p>
|
||||
|
@ -617,7 +617,7 @@ function ucwords ($str, $delimiters = " \t\r\n\f\v") {}
|
|||
* from to the corresponding character in
|
||||
* to.
|
||||
*/
|
||||
function strtr ($str, $from, $to) {}
|
||||
function strtr ($string, $from, $to) {}
|
||||
|
||||
/**
|
||||
* Translate certain characters
|
||||
|
@ -631,20 +631,20 @@ function strtr ($str, array $replace_pairs) {}
|
|||
/**
|
||||
* Quote string with slashes
|
||||
* @link https://php.net/manual/en/function.addslashes.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string to be escaped.
|
||||
* </p>
|
||||
* @return string the escaped string.
|
||||
*/
|
||||
function addslashes ($str) {}
|
||||
function addslashes ($string) {}
|
||||
|
||||
/**
|
||||
* Quote string with slashes in a C style
|
||||
* @link https://php.net/manual/en/function.addcslashes.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string to be escaped.
|
||||
* </p>
|
||||
* @param string $charlist <p>
|
||||
* @param string $characters <p>
|
||||
* A list of characters to be escaped. If
|
||||
* charlist contains characters
|
||||
* \n, \r etc., they are
|
||||
|
@ -688,7 +688,7 @@ function addslashes ($str) {}
|
|||
* </p>
|
||||
* @return string the escaped string.
|
||||
*/
|
||||
function addcslashes ($str, $charlist) {}
|
||||
function addcslashes ($string, $characters) {}
|
||||
|
||||
/**
|
||||
* Strip whitespace (or other characters) from the end of a string.
|
||||
|
@ -702,10 +702,10 @@ function addcslashes ($str, $charlist) {}
|
|||
* <li>"\x0B" (ASCII 11 (0x0B)), a vertical tab.
|
||||
* </ul>
|
||||
* @link https://php.net/manual/en/function.rtrim.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @param string $charlist [optional] <p>
|
||||
* @param string $characters [optional] <p>
|
||||
* You can also specify the characters you want to strip, by means
|
||||
* of the charlist parameter.
|
||||
* Simply list all characters that you want to be stripped. With
|
||||
|
@ -713,7 +713,7 @@ function addcslashes ($str, $charlist) {}
|
|||
* </p>
|
||||
* @return string the modified string.
|
||||
*/
|
||||
function rtrim ($str, $charlist = " \t\n\r\0\x0B") {}
|
||||
function rtrim ($string, $characters = " \t\n\r\0\x0B") {}
|
||||
|
||||
/**
|
||||
* Replace all occurrences of the search string with the replacement string
|
||||
|
@ -768,10 +768,10 @@ function str_ireplace ($search, $replace, $subject, &$count = null) {}
|
|||
/**
|
||||
* Repeat a string
|
||||
* @link https://php.net/manual/en/function.str-repeat.php
|
||||
* @param string $input <p>
|
||||
* @param string $string <p>
|
||||
* The string to be repeated.
|
||||
* </p>
|
||||
* @param int $multiplier <p>
|
||||
* @param int $times <p>
|
||||
* Number of time the input string should be
|
||||
* repeated.
|
||||
* </p>
|
||||
|
@ -782,7 +782,7 @@ function str_ireplace ($search, $replace, $subject, &$count = null) {}
|
|||
* </p>
|
||||
* @return string the repeated string.
|
||||
*/
|
||||
function str_repeat ($input, $multiplier) {}
|
||||
function str_repeat ($string, $times) {}
|
||||
|
||||
/**
|
||||
* Return information about characters used in a string
|
||||
|
@ -809,26 +809,26 @@ function count_chars ($string, $mode = null) {}
|
|||
/**
|
||||
* Split a string into smaller chunks
|
||||
* @link https://php.net/manual/en/function.chunk-split.php
|
||||
* @param string $body <p>
|
||||
* @param string $string <p>
|
||||
* The string to be chunked.
|
||||
* </p>
|
||||
* @param int $chunklen [optional] <p>
|
||||
* @param int $length [optional] <p>
|
||||
* The chunk length.
|
||||
* </p>
|
||||
* @param string $end [optional] <p>
|
||||
* @param string $separator [optional] <p>
|
||||
* The line ending sequence.
|
||||
* </p>
|
||||
* @return string the chunked string.
|
||||
*/
|
||||
function chunk_split ($body, $chunklen = 76, $end = "\r\n") {}
|
||||
function chunk_split ($string, $length = 76, $separator = "\r\n") {}
|
||||
|
||||
/**
|
||||
* Strip whitespace (or other characters) from the beginning and end of a string
|
||||
* @link https://php.net/manual/en/function.trim.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string that will be trimmed.
|
||||
* </p>
|
||||
* @param string $charlist [optional] <p>
|
||||
* @param string $characters [optional] <p>
|
||||
* Optionally, the stripped characters can also be specified using
|
||||
* the charlist parameter.
|
||||
* Simply list all characters that you want to be stripped. With
|
||||
|
@ -836,15 +836,15 @@ function chunk_split ($body, $chunklen = 76, $end = "\r\n") {}
|
|||
* </p>
|
||||
* @return string The trimmed string.
|
||||
*/
|
||||
function trim ($str, $charlist = " \t\n\r\0\x0B") {}
|
||||
function trim ($string, $characters = " \t\n\r\0\x0B") {}
|
||||
|
||||
/**
|
||||
* Strip whitespace (or other characters) from the beginning of a string
|
||||
* @link https://php.net/manual/en/function.ltrim.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @param string $charlist [optional] <p>
|
||||
* @param string $characters [optional] <p>
|
||||
* You can also specify the characters you want to strip, by means of the
|
||||
* charlist parameter.
|
||||
* Simply list all characters that you want to be stripped. With
|
||||
|
@ -867,15 +867,15 @@ function trim ($str, $charlist = " \t\n\r\0\x0B") {}
|
|||
* "\x0B" (ASCII 11
|
||||
* (0x0B)), a vertical tab.
|
||||
*/
|
||||
function ltrim ($str, $charlist = " \t\n\r\0\x0B") {}
|
||||
function ltrim ($string, $characters = " \t\n\r\0\x0B") {}
|
||||
|
||||
/**
|
||||
* Strip HTML and PHP tags from a string
|
||||
* @link https://php.net/manual/en/function.strip-tags.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @param array|string $allowable_tags [optional] <p>
|
||||
* @param array|string $allowed_tags [optional] <p>
|
||||
* You can use the optional second parameter to specify tags which should
|
||||
* not be stripped.<br/>
|
||||
* Since 7.4.0 alternatively accepts an array of allowed tags.
|
||||
|
@ -886,15 +886,15 @@ function ltrim ($str, $charlist = " \t\n\r\0\x0B") {}
|
|||
* </p>
|
||||
* @return string the stripped string.
|
||||
*/
|
||||
function strip_tags ($str, $allowable_tags = null) {}
|
||||
function strip_tags ($string, $allowed_tags = null) {}
|
||||
|
||||
/**
|
||||
* Calculate the similarity between two strings
|
||||
* @link https://php.net/manual/en/function.similar-text.php
|
||||
* @param string $first <p>
|
||||
* @param string $string1 <p>
|
||||
* The first string.
|
||||
* </p>
|
||||
* @param string $second <p>
|
||||
* @param string $string2 <p>
|
||||
* The second string.
|
||||
* </p>
|
||||
* @param float &$percent [optional] <p>
|
||||
|
@ -904,12 +904,12 @@ function strip_tags ($str, $allowable_tags = null) {}
|
|||
* </p>
|
||||
* @return int the number of matching chars in both strings.
|
||||
*/
|
||||
function similar_text ($first, $second, &$percent = null) {}
|
||||
function similar_text ($string1, $string2, &$percent = null) {}
|
||||
|
||||
/**
|
||||
* Split a string by string
|
||||
* @link https://php.net/manual/en/function.explode.php
|
||||
* @param string $delimiter <p>
|
||||
* @param string $separator <p>
|
||||
* The boundary string.
|
||||
* </p>
|
||||
* @param string $string <p>
|
||||
|
@ -935,39 +935,39 @@ function similar_text ($first, $second, &$percent = null) {}
|
|||
* returned. For any other limit, an array containing
|
||||
* string will be returned.
|
||||
*/
|
||||
function explode ($delimiter, $string, $limit = null) {}
|
||||
function explode ($separator, $string, $limit = null) {}
|
||||
|
||||
/**
|
||||
* Join array elements with a string
|
||||
* @link https://php.net/manual/en/function.implode.php
|
||||
* @param string $glue [optional]<p>
|
||||
* @param string $separator [optional]<p>
|
||||
* Defaults to an empty string. This is not the preferred usage of
|
||||
* implode as glue would be
|
||||
* the second parameter and thus, the bad prototype would be used.
|
||||
* </p>
|
||||
* @param array $pieces <p>
|
||||
* @param array $array <p>
|
||||
* The array of strings to implode.
|
||||
* </p>
|
||||
* @return string a string containing a string representation of all the array
|
||||
* elements in the same order, with the glue string between each element.
|
||||
*/
|
||||
function implode ($glue = "", array $pieces) {}
|
||||
function implode ($separator = "", array $array) {}
|
||||
|
||||
/**
|
||||
* &Alias; <function>implode</function>
|
||||
* @link https://php.net/manual/en/function.join.php
|
||||
* @param string $glue [optional] <p>
|
||||
* @param string $separator [optional] <p>
|
||||
* Defaults to an empty string. This is not the preferred usage of
|
||||
* implode as glue would be
|
||||
* the second parameter and thus, the bad prototype would be used.
|
||||
* </p>
|
||||
* @param array $pieces <p>
|
||||
* @param array $array <p>
|
||||
* The array of strings to implode.
|
||||
* </p>
|
||||
* @return string a string containing a string representation of all the array
|
||||
* elements in the same order, with the glue string between each element.
|
||||
*/
|
||||
function join ($glue = "", $pieces) {}
|
||||
function join ($separator = "", $array) {}
|
||||
|
||||
/**
|
||||
* Set locale information
|
||||
|
@ -1006,7 +1006,7 @@ function join ($glue = "", $pieces) {}
|
|||
*
|
||||
* </li>
|
||||
* </ul>
|
||||
* @param string|array $locale <p>
|
||||
* @param string|array $locales <p>
|
||||
* If locale is null or the empty string
|
||||
* "", the locale names will be set from the
|
||||
* values of environment variables with the same names as the above
|
||||
|
@ -1023,7 +1023,7 @@ function join ($glue = "", $pieces) {}
|
|||
* different names on different systems or for providing a fallback
|
||||
* for a possibly not available locale.
|
||||
* </p>
|
||||
* @param string ...$_ [optional]
|
||||
* @param string ...$rest [optional]
|
||||
* @return string|false the new current locale, or false if the locale functionality is
|
||||
* not implemented on your platform, the specified locale does not exist or
|
||||
* the category name is invalid.
|
||||
|
@ -1039,7 +1039,7 @@ function join ($glue = "", $pieces) {}
|
|||
* on the system that PHP is running. It returns exactly
|
||||
* what the system setlocale function returns.
|
||||
*/
|
||||
function setlocale ($category, $locale, ...$_) {}
|
||||
function setlocale ($category, $locales, ...$rest) {}
|
||||
|
||||
/**
|
||||
* Get numeric formatting information
|
||||
|
|
|
@ -148,12 +148,12 @@ function nl_langinfo ($item) {}
|
|||
/**
|
||||
* Calculate the soundex key of a string
|
||||
* @link https://php.net/manual/en/function.soundex.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @return string the soundex key as a string.
|
||||
*/
|
||||
function soundex ($str) {}
|
||||
function soundex ($string) {}
|
||||
|
||||
/**
|
||||
* Calculate Levenshtein distance between two strings
|
||||
|
@ -164,51 +164,51 @@ function soundex ($str) {}
|
|||
* Note: A second variant will take three additional parameters that define
|
||||
* the cost of insert, replace and delete operations. This is more general
|
||||
* and adaptive than variant one, but not as efficient.
|
||||
* @param string $str1 <p>
|
||||
* @param string $string1 <p>
|
||||
* One of the strings being evaluated for Levenshtein distance.
|
||||
* </p>
|
||||
* @param string $str2 <p>
|
||||
* @param string $string2 <p>
|
||||
* One of the strings being evaluated for Levenshtein distance.
|
||||
* </p>
|
||||
* @param int $cost_ins [optional] <p>
|
||||
* @param int $insertion_cost [optional] <p>
|
||||
* Defines the cost of insertion.
|
||||
* </p>
|
||||
* @param int $cost_rep [optional] <p>
|
||||
* @param int $repetition_cost [optional] <p>
|
||||
* Defines the cost of replacement.
|
||||
* </p>
|
||||
* @param int $cost_del [optional] <p>
|
||||
* @param int $deletion_cost [optional] <p>
|
||||
* Defines the cost of deletion.
|
||||
* </p>
|
||||
* @return int This function returns the Levenshtein-Distance between the
|
||||
* two argument strings or -1, if one of the argument strings
|
||||
* is longer than the limit of 255 characters.
|
||||
*/
|
||||
function levenshtein ($str1, $str2, $cost_ins = null, $cost_rep = null, $cost_del = null) {}
|
||||
function levenshtein ($string1, $string2, $insertion_cost = null, $repetition_cost = null, $deletion_cost = null) {}
|
||||
|
||||
/**
|
||||
* Return a specific character
|
||||
* @link https://php.net/manual/en/function.chr.php
|
||||
* @param int $ascii <p>
|
||||
* @param int $codepoint <p>
|
||||
* The ascii code.
|
||||
* </p>
|
||||
* @return string the specified character.
|
||||
*/
|
||||
function chr ($ascii) {}
|
||||
function chr ($codepoint) {}
|
||||
|
||||
/**
|
||||
* Return ASCII value of character
|
||||
* @link https://php.net/manual/en/function.ord.php
|
||||
* @param string $string <p>
|
||||
* @param string $character <p>
|
||||
* A character.
|
||||
* </p>
|
||||
* @return int the ASCII value as an integer.
|
||||
*/
|
||||
function ord ($string) {}
|
||||
function ord ($character) {}
|
||||
|
||||
/**
|
||||
* Parses the string into variables
|
||||
* @link https://php.net/manual/en/function.parse-str.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @param array &$result [optional] <p>
|
||||
|
@ -218,15 +218,15 @@ function ord ($string) {}
|
|||
* </p>
|
||||
* @return void
|
||||
*/
|
||||
function parse_str ($str, array &$result = null) {}
|
||||
function parse_str ($string, array &$result = null) {}
|
||||
|
||||
/**
|
||||
* Parse a CSV string into an array
|
||||
* @link https://php.net/manual/en/function.str-getcsv.php
|
||||
* @param string $input <p>
|
||||
* @param string $string <p>
|
||||
* The string to parse.
|
||||
* </p>
|
||||
* @param string $delimiter [optional] <p>
|
||||
* @param string $separator [optional] <p>
|
||||
* Set the field delimiter (one character only).
|
||||
* </p>
|
||||
* @param string $enclosure [optional] <p>
|
||||
|
@ -238,15 +238,15 @@ function parse_str ($str, array &$result = null) {}
|
|||
* </p>
|
||||
* @return array an indexed array containing the fields read.
|
||||
*/
|
||||
function str_getcsv ($input, $delimiter = ",", $enclosure = '"', $escape = "\\") {}
|
||||
function str_getcsv ($string, $separator = ",", $enclosure = '"', $escape = "\\") {}
|
||||
|
||||
/**
|
||||
* Pad a string to a certain length with another string
|
||||
* @link https://php.net/manual/en/function.str-pad.php
|
||||
* @param string $input <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @param int $pad_length <p>
|
||||
* @param int $length <p>
|
||||
* If the value of pad_length is negative,
|
||||
* less than, or equal to the length of the input string, no padding
|
||||
* takes place.
|
||||
|
@ -265,17 +265,17 @@ function str_getcsv ($input, $delimiter = ",", $enclosure = '"', $escape = "\\")
|
|||
* </p>
|
||||
* @return string the padded string.
|
||||
*/
|
||||
function str_pad ($input, $pad_length, $pad_string = " ", $pad_type = STR_PAD_RIGHT) {}
|
||||
function str_pad ($string, $length, $pad_string = " ", $pad_type = STR_PAD_RIGHT) {}
|
||||
|
||||
/**
|
||||
* &Alias; <function>rtrim</function>
|
||||
* @see rtrim()
|
||||
* @link https://php.net/manual/en/function.chop.php
|
||||
* @param string $str The input string.
|
||||
* @param string $character_mask [optional]
|
||||
* @param string $string The input string.
|
||||
* @param string $characters [optional]
|
||||
* @return string the modified string.
|
||||
* @link https://php.net/manual/en/function.chop.php
|
||||
* @see rtrim()
|
||||
*/
|
||||
function chop ($str, $character_mask = null) {}
|
||||
function chop ($string, $characters = null) {}
|
||||
|
||||
/**
|
||||
* &Alias; <function>strstr</function>
|
||||
|
@ -286,10 +286,10 @@ function chop ($str, $character_mask = null) {}
|
|||
*
|
||||
* @param string $haystack The input string.
|
||||
* @param mixed $needle If needle is not a string, it is converted to an integer and applied as the ordinal value of a character.
|
||||
* @param bool $part [optional] If TRUE, strstr() returns the part of the haystack before the first occurrence of the needle (excluding the needle).
|
||||
* @param bool $before_needle [optional] If TRUE, strstr() returns the part of the haystack before the first occurrence of the needle (excluding the needle).
|
||||
* @return string|false Returns the portion of string, or FALSE if needle is not found.
|
||||
*/
|
||||
function strchr ($haystack, $needle, $part = false) {}
|
||||
function strchr ($haystack, $needle, $before_needle = false) {}
|
||||
|
||||
/**
|
||||
* Return a formatted string
|
||||
|
@ -310,12 +310,12 @@ function strchr ($haystack, $needle, $part = false) {}
|
|||
* (- or +) to be used on a number. By default, only the - sign is used
|
||||
* on a number if it's negative. This specifier forces positive numbers
|
||||
* to have the + sign attached as well, and was added in PHP 4.3.0.
|
||||
* @param mixed ...$args [optional] <p>
|
||||
* @param mixed ...$values [optional] <p>
|
||||
* </p>
|
||||
* @return string a string produced according to the formatting string
|
||||
* format.
|
||||
*/
|
||||
function sprintf ($format, ...$args) {}
|
||||
function sprintf ($format, ...$values) {}
|
||||
|
||||
/**
|
||||
* Output a formatted string
|
||||
|
@ -324,11 +324,11 @@ function sprintf ($format, ...$args) {}
|
|||
* See sprintf for a description of
|
||||
* format.
|
||||
* </p>
|
||||
* @param mixed ...$args [optional] <p>
|
||||
* @param mixed ...$values [optional] <p>
|
||||
* </p>
|
||||
* @return int the length of the outputted string.
|
||||
*/
|
||||
function printf ($format, ...$args) {}
|
||||
function printf ($format, ...$values) {}
|
||||
|
||||
/**
|
||||
* Output a formatted string
|
||||
|
@ -337,11 +337,11 @@ function printf ($format, ...$args) {}
|
|||
* See sprintf for a description of
|
||||
* format.
|
||||
* </p>
|
||||
* @param array $args <p>
|
||||
* @param array $values <p>
|
||||
* </p>
|
||||
* @return int the length of the outputted string.
|
||||
*/
|
||||
function vprintf ($format, array $args) {}
|
||||
function vprintf ($format, array $values) {}
|
||||
|
||||
/**
|
||||
* Return a formatted string
|
||||
|
@ -350,47 +350,47 @@ function vprintf ($format, array $args) {}
|
|||
* See sprintf for a description of
|
||||
* format.
|
||||
* </p>
|
||||
* @param array $args <p>
|
||||
* @param array $values <p>
|
||||
* </p>
|
||||
* @return string Return array values as a formatted string according to
|
||||
* format (which is described in the documentation
|
||||
* for sprintf).
|
||||
*/
|
||||
function vsprintf ($format, array $args) {}
|
||||
function vsprintf ($format, array $values) {}
|
||||
|
||||
/**
|
||||
* Write a formatted string to a stream
|
||||
* @link https://php.net/manual/en/function.fprintf.php
|
||||
* @param resource $handle &fs.file.pointer;
|
||||
* @param resource $stream &fs.file.pointer;
|
||||
* @param string $format <p>
|
||||
* See sprintf for a description of
|
||||
* format.
|
||||
* </p>
|
||||
* @param mixed ...$args [optional] <p>
|
||||
* @param mixed ...$values [optional] <p>
|
||||
* </p>
|
||||
* @return int the length of the string written.
|
||||
*/
|
||||
function fprintf ($handle, $format, ...$args) {}
|
||||
function fprintf ($stream, $format, ...$values) {}
|
||||
|
||||
/**
|
||||
* Write a formatted string to a stream
|
||||
* @link https://php.net/manual/en/function.vfprintf.php
|
||||
* @param resource $handle <p>
|
||||
* @param resource $stream <p>
|
||||
* </p>
|
||||
* @param string $format <p>
|
||||
* See sprintf for a description of
|
||||
* format.
|
||||
* </p>
|
||||
* @param array $args <p>
|
||||
* @param array $values <p>
|
||||
* </p>
|
||||
* @return int the length of the outputted string.
|
||||
*/
|
||||
function vfprintf ($handle, $format, array $args) {}
|
||||
function vfprintf ($stream, $format, array $values) {}
|
||||
|
||||
/**
|
||||
* Parses input from a string according to a format
|
||||
* @link https://php.net/manual/en/function.sscanf.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string being parsed.
|
||||
* </p>
|
||||
* @param string $format <p>
|
||||
|
@ -404,19 +404,19 @@ function vfprintf ($handle, $format, array $args) {}
|
|||
* i stands for integer with base detection.
|
||||
* n stands for number of characters processed so far.
|
||||
* </p>
|
||||
* @param mixed &...$_
|
||||
* @param mixed &...$vars
|
||||
* @return array|int If only
|
||||
* two parameters were passed to this function, the values parsed
|
||||
* will be returned as an array. Otherwise, if optional parameters are passed,
|
||||
* the function will return the number of assigned values. The optional
|
||||
* parameters must be passed by reference.
|
||||
*/
|
||||
function sscanf ($str, $format, &...$_) {}
|
||||
function sscanf ($string, $format, &...$vars) {}
|
||||
|
||||
/**
|
||||
* Parses input from a file according to a format
|
||||
* @link https://php.net/manual/en/function.fscanf.php
|
||||
* @param resource $handle &fs.file.pointer;
|
||||
* @param resource $stream &fs.file.pointer;
|
||||
* @param string $format <p>
|
||||
* The specified format as described in the
|
||||
* sprintf documentation.
|
||||
|
@ -427,7 +427,7 @@ function sscanf ($str, $format, &...$_) {}
|
|||
* function will return the number of assigned values. The optional
|
||||
* parameters must be passed by reference.
|
||||
*/
|
||||
function fscanf ($handle, $format, &...$vars) {}
|
||||
function fscanf ($stream, $format, &...$vars) {}
|
||||
|
||||
/**
|
||||
* Parse a URL and return its components
|
||||
|
@ -465,7 +465,7 @@ function parse_url ($url, $component = -1) {}
|
|||
/**
|
||||
* URL-encodes string
|
||||
* @link https://php.net/manual/en/function.urlencode.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string to be encoded.
|
||||
* </p>
|
||||
* @return string a string in which all non-alphanumeric characters except
|
||||
|
@ -478,22 +478,22 @@ function parse_url ($url, $component = -1) {}
|
|||
* rawurlencode) in that for historical reasons, spaces
|
||||
* are encoded as plus (+) signs.
|
||||
*/
|
||||
function urlencode ($str) {}
|
||||
function urlencode ($string) {}
|
||||
|
||||
/**
|
||||
* Decodes URL-encoded string
|
||||
* @link https://php.net/manual/en/function.urldecode.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string to be decoded.
|
||||
* </p>
|
||||
* @return string the decoded string.
|
||||
*/
|
||||
function urldecode ($str) {}
|
||||
function urldecode ($string) {}
|
||||
|
||||
/**
|
||||
* URL-encode according to RFC 1738
|
||||
* @link https://php.net/manual/en/function.rawurlencode.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The URL to be encoded.
|
||||
* </p>
|
||||
* @return string a string in which all non-alphanumeric characters except
|
||||
|
@ -504,22 +504,22 @@ function urldecode ($str) {}
|
|||
* delimiters, and for protecting URLs from being mangled by transmission
|
||||
* media with character conversions (like some email systems).
|
||||
*/
|
||||
function rawurlencode ($str) {}
|
||||
function rawurlencode ($string) {}
|
||||
|
||||
/**
|
||||
* Decode URL-encoded strings
|
||||
* @link https://php.net/manual/en/function.rawurldecode.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The URL to be decoded.
|
||||
* </p>
|
||||
* @return string the decoded URL, as a string.
|
||||
*/
|
||||
function rawurldecode ($str) {}
|
||||
function rawurldecode ($string) {}
|
||||
|
||||
/**
|
||||
* Generate URL-encoded query string
|
||||
* @link https://php.net/manual/en/function.http-build-query.php
|
||||
* @param mixed $query_data <p>
|
||||
* @param mixed $data <p>
|
||||
* May be an array or object containing properties.
|
||||
* </p>
|
||||
* <p>
|
||||
|
@ -543,13 +543,13 @@ function rawurldecode ($str) {}
|
|||
* is used to separate arguments, unless this parameter is specified,
|
||||
* and is then used.
|
||||
* </p>
|
||||
* @param int $enc_type By default, PHP_QUERY_RFC1738.
|
||||
* @param int $encoding_type By default, PHP_QUERY_RFC1738.
|
||||
* <p>If enc_type is PHP_QUERY_RFC1738, then encoding is performed per » RFC 1738 and the application/x-www-form-urlencoded media type,
|
||||
* which implies that spaces are encoded as plus (+) signs.
|
||||
* <p>If enc_type is PHP_QUERY_RFC3986, then encoding is performed according to » RFC 3986, and spaces will be percent encoded (%20).
|
||||
* @return string a URL-encoded string.
|
||||
*/
|
||||
function http_build_query ($query_data, string $numeric_prefix = "", string $arg_separator = "&", int $enc_type = PHP_QUERY_RFC1738){}
|
||||
function http_build_query ($data, string $numeric_prefix = "", string $arg_separator = "&", int $encoding_type = PHP_QUERY_RFC1738){}
|
||||
|
||||
/**
|
||||
* Returns the target of a symbolic link
|
||||
|
@ -622,7 +622,7 @@ function unlink ($filename, $context = null):bool {}
|
|||
* unset on the array before passing it to
|
||||
* exec.
|
||||
* </p>
|
||||
* @param int &$return_var [optional] <p>
|
||||
* @param int &$result_code [optional] <p>
|
||||
* If the return_var argument is present
|
||||
* along with the output argument, then the
|
||||
* return status of the executed command will be written to this
|
||||
|
@ -636,7 +636,7 @@ function unlink ($filename, $context = null):bool {}
|
|||
* To get the output of the executed command, be sure to set and use the
|
||||
* output parameter.
|
||||
*/
|
||||
function exec ($command, array &$output = null, &$return_var = null) {}
|
||||
function exec ($command, array &$output = null, &$result_code = null) {}
|
||||
|
||||
/**
|
||||
* Execute an external program and display the output
|
||||
|
@ -644,7 +644,7 @@ function exec ($command, array &$output = null, &$return_var = null) {}
|
|||
* @param string $command <p>
|
||||
* The command that will be executed.
|
||||
* </p>
|
||||
* @param int &$return_var [optional] <p>
|
||||
* @param int &$result_code [optional] <p>
|
||||
* If the return_var argument is present, then the
|
||||
* return status of the executed command will be written to this
|
||||
* variable.
|
||||
|
@ -652,7 +652,7 @@ function exec ($command, array &$output = null, &$return_var = null) {}
|
|||
* @return string|false the last line of the command output on success, and false
|
||||
* on failure.
|
||||
*/
|
||||
function system ($command, &$return_var = null) {}
|
||||
function system ($command, &$result_code = null) {}
|
||||
|
||||
/**
|
||||
* Escape shell metacharacters
|
||||
|
@ -680,28 +680,28 @@ function escapeshellarg ($arg) {}
|
|||
* @param string $command <p>
|
||||
* The command that will be executed.
|
||||
* </p>
|
||||
* @param int &$return_var [optional] <p>
|
||||
* @param int &$result_code [optional] <p>
|
||||
* If the return_var argument is present, the
|
||||
* return status of the Unix command will be placed here.
|
||||
* </p>
|
||||
* @return void
|
||||
*/
|
||||
function passthru ($command, &$return_var = null) {}
|
||||
function passthru ($command, &$result_code = null) {}
|
||||
|
||||
/**
|
||||
* Execute command via shell and return the complete output as a string
|
||||
* @link https://php.net/manual/en/function.shell-exec.php
|
||||
* @param string $cmd <p>
|
||||
* @param string $command <p>
|
||||
* The command that will be executed.
|
||||
* </p>
|
||||
* @return string|null The output from the executed command or NULL if an error occurred or the command produces no output.
|
||||
*/
|
||||
function shell_exec ($cmd) {}
|
||||
function shell_exec ($command) {}
|
||||
|
||||
/**
|
||||
* Execute a command and open file pointers for input/output
|
||||
* @link https://php.net/manual/en/function.proc-open.php
|
||||
* @param array|string $cmd <p>
|
||||
* @param array|string $command <p>
|
||||
* Execute a command and open file pointers for input/output
|
||||
* </p>
|
||||
* <p>
|
||||
|
@ -710,7 +710,7 @@ function shell_exec ($cmd) {}
|
|||
* (without going through a shell) and PHP will take care of any
|
||||
* necessary argument escaping.
|
||||
* </p>
|
||||
* @param array $descriptorspec <p>
|
||||
* @param array $descriptor_spec <p>
|
||||
* An indexed array where the key represents the descriptor number and the
|
||||
* value represents how PHP will pass that descriptor to the child
|
||||
* process. 0 is stdin, 1 is stdout, while 2 is stderr.
|
||||
|
@ -745,11 +745,11 @@ function shell_exec ($cmd) {}
|
|||
* if you want to use the default value (the working dir of the current
|
||||
* PHP process)
|
||||
* </p>
|
||||
* @param array|null $env [optional] <p>
|
||||
* @param array|null $env_vars [optional] <p>
|
||||
* An array with the environment variables for the command that will be
|
||||
* run, or null to use the same environment as the current PHP process
|
||||
* </p>
|
||||
* @param array $other_options [optional] <p>
|
||||
* @param array $options [optional] <p>
|
||||
* Allows you to specify additional options. Currently supported options
|
||||
* include:
|
||||
* suppress_errors (windows only): suppresses errors generated by this
|
||||
|
@ -768,7 +768,7 @@ function shell_exec ($cmd) {}
|
|||
* proc_close when you are finished with it. On failure
|
||||
* returns false.
|
||||
*/
|
||||
function proc_open ($cmd, array $descriptorspec, array &$pipes, $cwd = null, array $env = null, array $other_options = null) {}
|
||||
function proc_open ($command, array $descriptor_spec, array &$pipes, $cwd = null, array $env_vars = null, array $options = null) {}
|
||||
|
||||
/**
|
||||
* Close a process opened by <function>proc_open</function> and return the exit code of that process
|
||||
|
@ -879,14 +879,14 @@ function proc_get_status ($process) {}
|
|||
* Change the priority of the current process. <br/>
|
||||
* Since 7.2.0 supported on Windows platforms.
|
||||
* @link https://php.net/manual/en/function.proc-nice.php
|
||||
* @param int $increment <p>
|
||||
* @param int $priority <p>
|
||||
* The increment value of the priority change.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
* If an error occurs, like the user lacks permission to change the priority,
|
||||
* an error of level E_WARNING is also generated.
|
||||
*/
|
||||
function proc_nice ($increment) {}
|
||||
function proc_nice ($priority) {}
|
||||
|
||||
/**
|
||||
* Generate a random integer
|
||||
|
@ -987,22 +987,22 @@ function getservbyport ($port, $protocol) {}
|
|||
/**
|
||||
* Get protocol number associated with protocol name
|
||||
* @link https://php.net/manual/en/function.getprotobyname.php
|
||||
* @param string $name <p>
|
||||
* @param string $protocol <p>
|
||||
* The protocol name.
|
||||
* </p>
|
||||
* @return int the protocol number or -1 if the protocol is not found.
|
||||
*/
|
||||
function getprotobyname ($name) {}
|
||||
function getprotobyname ($protocol) {}
|
||||
|
||||
/**
|
||||
* Get protocol name associated with protocol number
|
||||
* @link https://php.net/manual/en/function.getprotobynumber.php
|
||||
* @param int $number <p>
|
||||
* @param int $protocol <p>
|
||||
* The protocol number.
|
||||
* </p>
|
||||
* @return string the protocol name as a string.
|
||||
*/
|
||||
function getprotobynumber ($number) {}
|
||||
function getprotobynumber ($protocol) {}
|
||||
|
||||
/**
|
||||
* Gets PHP script owner's UID
|
||||
|
|
|
@ -12,7 +12,7 @@ function getlastmod () {}
|
|||
/**
|
||||
* Decodes data encoded with MIME base64
|
||||
* @link https://php.net/manual/en/function.base64-decode.php
|
||||
* @param string $data <p>
|
||||
* @param string $string <p>
|
||||
* The encoded data.
|
||||
* </p>
|
||||
* @param bool $strict [optional] <p>
|
||||
|
@ -22,42 +22,42 @@ function getlastmod () {}
|
|||
* @return string|false the original data or false on failure. The returned data may be
|
||||
* binary.
|
||||
*/
|
||||
function base64_decode ($data, $strict = null) {}
|
||||
function base64_decode ($string, $strict = null) {}
|
||||
|
||||
/**
|
||||
* Encodes data with MIME base64
|
||||
* @link https://php.net/manual/en/function.base64-encode.php
|
||||
* @param string $data <p>
|
||||
* @param string $string <p>
|
||||
* The data to encode.
|
||||
* </p>
|
||||
* @return string The encoded data, as a string.
|
||||
*/
|
||||
function base64_encode ($data) {}
|
||||
function base64_encode ($string) {}
|
||||
|
||||
/**
|
||||
* Uuencode a string
|
||||
* @link https://php.net/manual/en/function.convert-uuencode.php
|
||||
* @param string $data <p>
|
||||
* @param string $string <p>
|
||||
* The data to be encoded.
|
||||
* </p>
|
||||
* @return string the uuencoded data.
|
||||
*/
|
||||
function convert_uuencode ($data) {}
|
||||
function convert_uuencode ($string) {}
|
||||
|
||||
/**
|
||||
* Decode a uuencoded string
|
||||
* @link https://php.net/manual/en/function.convert-uudecode.php
|
||||
* @param string $data <p>
|
||||
* @param string $string <p>
|
||||
* The uuencoded data.
|
||||
* </p>
|
||||
* @return string the decoded data as a string.
|
||||
*/
|
||||
function convert_uudecode ($data) {}
|
||||
function convert_uudecode ($string) {}
|
||||
|
||||
/**
|
||||
* Absolute value
|
||||
* @link https://php.net/manual/en/function.abs.php
|
||||
* @param mixed $number <p>
|
||||
* @param mixed $num <p>
|
||||
* The numeric value to process
|
||||
* </p>
|
||||
* @return float|int The absolute value of number. If the
|
||||
|
@ -66,12 +66,12 @@ function convert_uudecode ($data) {}
|
|||
* otherwise it is integer (as float usually has a
|
||||
* bigger value range than integer).
|
||||
*/
|
||||
function abs ($number) {}
|
||||
function abs ($num) {}
|
||||
|
||||
/**
|
||||
* Round fractions up
|
||||
* @link https://php.net/manual/en/function.ceil.php
|
||||
* @param float $value <p>
|
||||
* @param float $num <p>
|
||||
* The value to round
|
||||
* </p>
|
||||
* @return float|false value rounded up to the next highest
|
||||
|
@ -80,12 +80,12 @@ function abs ($number) {}
|
|||
* float as the value range of float is
|
||||
* usually bigger than that of integer.
|
||||
*/
|
||||
function ceil ($value) {}
|
||||
function ceil ($num) {}
|
||||
|
||||
/**
|
||||
* Round fractions down
|
||||
* @link https://php.net/manual/en/function.floor.php
|
||||
* @param float $value <p>
|
||||
* @param float $num <p>
|
||||
* The numeric value to round
|
||||
* </p>
|
||||
* @return float|false value rounded to the next lowest integer.
|
||||
|
@ -93,14 +93,14 @@ function ceil ($value) {}
|
|||
* float because the value range of float is
|
||||
* usually bigger than that of integer.
|
||||
*/
|
||||
function floor ($value) {}
|
||||
function floor ($num) {}
|
||||
|
||||
/**
|
||||
* Returns the rounded value of val to specified precision (number of digits after the decimal point).
|
||||
* precision can also be negative or zero (default).
|
||||
* Note: PHP doesn't handle strings like "12,300.2" correctly by default. See converting from strings.
|
||||
* @link https://php.net/manual/en/function.round.php
|
||||
* @param float $val <p>
|
||||
* @param float $num <p>
|
||||
* The value to round
|
||||
* </p>
|
||||
* @param int $precision [optional] <p>
|
||||
|
@ -114,77 +114,77 @@ function floor ($value) {}
|
|||
* </p>
|
||||
* @return float The rounded value
|
||||
*/
|
||||
function round ($val, $precision = 0, $mode = PHP_ROUND_HALF_UP) {}
|
||||
function round ($num, $precision = 0, $mode = PHP_ROUND_HALF_UP) {}
|
||||
|
||||
/**
|
||||
* Sine
|
||||
* @link https://php.net/manual/en/function.sin.php
|
||||
* @param float $arg <p>
|
||||
* @param float $num <p>
|
||||
* A value in radians
|
||||
* </p>
|
||||
* @return float The sine of arg
|
||||
*/
|
||||
function sin ($arg) {}
|
||||
function sin ($num) {}
|
||||
|
||||
/**
|
||||
* Cosine
|
||||
* @link https://php.net/manual/en/function.cos.php
|
||||
* @param float $arg <p>
|
||||
* @param float $num <p>
|
||||
* An angle in radians
|
||||
* </p>
|
||||
* @return float The cosine of arg
|
||||
*/
|
||||
function cos ($arg) {}
|
||||
function cos ($num) {}
|
||||
|
||||
/**
|
||||
* Tangent
|
||||
* @link https://php.net/manual/en/function.tan.php
|
||||
* @param float $arg <p>
|
||||
* @param float $num <p>
|
||||
* The argument to process in radians
|
||||
* </p>
|
||||
* @return float The tangent of arg
|
||||
*/
|
||||
function tan ($arg) {}
|
||||
function tan ($num) {}
|
||||
|
||||
/**
|
||||
* Arc sine
|
||||
* @link https://php.net/manual/en/function.asin.php
|
||||
* @param float $arg <p>
|
||||
* @param float $num <p>
|
||||
* The argument to process
|
||||
* </p>
|
||||
* @return float The arc sine of arg in radians
|
||||
*/
|
||||
function asin ($arg) {}
|
||||
function asin ($num) {}
|
||||
|
||||
/**
|
||||
* Arc cosine
|
||||
* @link https://php.net/manual/en/function.acos.php
|
||||
* @param float $arg <p>
|
||||
* @param float $num <p>
|
||||
* The argument to process
|
||||
* </p>
|
||||
* @return float The arc cosine of arg in radians.
|
||||
*/
|
||||
function acos ($arg) {}
|
||||
function acos ($num) {}
|
||||
|
||||
/**
|
||||
* Arc tangent
|
||||
* @link https://php.net/manual/en/function.atan.php
|
||||
* @param float $arg <p>
|
||||
* @param float $num <p>
|
||||
* The argument to process
|
||||
* </p>
|
||||
* @return float The arc tangent of arg in radians.
|
||||
*/
|
||||
function atan ($arg) {}
|
||||
function atan ($num) {}
|
||||
|
||||
/**
|
||||
* Inverse hyperbolic tangent
|
||||
* @link https://php.net/manual/en/function.atanh.php
|
||||
* @param float $arg <p>
|
||||
* @param float $num <p>
|
||||
* The argument to process
|
||||
* </p>
|
||||
* @return float Inverse hyperbolic tangent of arg
|
||||
*/
|
||||
function atanh ($arg) {}
|
||||
function atanh ($num) {}
|
||||
|
||||
/**
|
||||
* Arc tangent of two variables
|
||||
|
@ -203,74 +203,74 @@ function atan2 ($y, $x) {}
|
|||
/**
|
||||
* Hyperbolic sine
|
||||
* @link https://php.net/manual/en/function.sinh.php
|
||||
* @param float $arg <p>
|
||||
* @param float $num <p>
|
||||
* The argument to process
|
||||
* </p>
|
||||
* @return float The hyperbolic sine of arg
|
||||
*/
|
||||
function sinh ($arg) {}
|
||||
function sinh ($num) {}
|
||||
|
||||
/**
|
||||
* Hyperbolic cosine
|
||||
* @link https://php.net/manual/en/function.cosh.php
|
||||
* @param float $arg <p>
|
||||
* @param float $num <p>
|
||||
* The argument to process
|
||||
* </p>
|
||||
* @return float The hyperbolic cosine of arg
|
||||
*/
|
||||
function cosh ($arg) {}
|
||||
function cosh ($num) {}
|
||||
|
||||
/**
|
||||
* Hyperbolic tangent
|
||||
* @link https://php.net/manual/en/function.tanh.php
|
||||
* @param float $arg <p>
|
||||
* @param float $num <p>
|
||||
* The argument to process
|
||||
* </p>
|
||||
* @return float The hyperbolic tangent of arg
|
||||
*/
|
||||
function tanh ($arg) {}
|
||||
function tanh ($num) {}
|
||||
|
||||
/**
|
||||
* Inverse hyperbolic sine
|
||||
* @link https://php.net/manual/en/function.asinh.php
|
||||
* @param float $arg <p>
|
||||
* @param float $num <p>
|
||||
* The argument to process
|
||||
* </p>
|
||||
* @return float The inverse hyperbolic sine of arg
|
||||
*/
|
||||
function asinh ($arg) {}
|
||||
function asinh ($num) {}
|
||||
|
||||
/**
|
||||
* Inverse hyperbolic cosine
|
||||
* @link https://php.net/manual/en/function.acosh.php
|
||||
* @param float $arg <p>
|
||||
* @param float $num <p>
|
||||
* The value to process
|
||||
* </p>
|
||||
* @return float The inverse hyperbolic cosine of arg
|
||||
*/
|
||||
function acosh ($arg) {}
|
||||
function acosh ($num) {}
|
||||
|
||||
/**
|
||||
* Returns exp(number) - 1, computed in a way that is accurate even
|
||||
when the value of number is close to zero
|
||||
* when the value of number is close to zero
|
||||
* @link https://php.net/manual/en/function.expm1.php
|
||||
* @param float $arg <p>
|
||||
* @param float $num <p>
|
||||
* The argument to process
|
||||
* </p>
|
||||
* @return float 'e' to the power of arg minus one
|
||||
*/
|
||||
function expm1 ($arg) {}
|
||||
function expm1($num) {}
|
||||
|
||||
/**
|
||||
* Returns log(1 + number), computed in a way that is accurate even when
|
||||
the value of number is close to zero
|
||||
* the value of number is close to zero
|
||||
* @link https://php.net/manual/en/function.log1p.php
|
||||
* @param float $number <p>
|
||||
* @param float $num <p>
|
||||
* The argument to process
|
||||
* </p>
|
||||
* @return float log(1 + number)
|
||||
*/
|
||||
function log1p ($number) {}
|
||||
function log1p($num) {}
|
||||
|
||||
/**
|
||||
* Get value of pi
|
||||
|
@ -282,31 +282,31 @@ function pi () {}
|
|||
/**
|
||||
* Finds whether a value is a legal finite number
|
||||
* @link https://php.net/manual/en/function.is-finite.php
|
||||
* @param float $val <p>
|
||||
* @param float $num <p>
|
||||
* The value to check
|
||||
* </p>
|
||||
* @return bool true if val is a legal finite
|
||||
* number within the allowed range for a PHP float on this platform,
|
||||
* else false.
|
||||
*/
|
||||
function is_finite ($val) {}
|
||||
function is_finite ($num) {}
|
||||
|
||||
/**
|
||||
* Finds whether a value is not a number
|
||||
* @link https://php.net/manual/en/function.is-nan.php
|
||||
* @param float $val <p>
|
||||
* @param float $num <p>
|
||||
* The value to check
|
||||
* </p>
|
||||
* @return bool true if val is 'not a number',
|
||||
* else false.
|
||||
*/
|
||||
function is_nan ($val) {}
|
||||
function is_nan ($num) {}
|
||||
|
||||
/**
|
||||
* Integer division
|
||||
* @link https://php.net/manual/en/function.intdiv.php
|
||||
* @param int $dividend <p>Number to be divided.</p>
|
||||
* @param int $divisor <p>Number which divides the <b><i>dividend</i></b></p>
|
||||
* @param int $num1 <p>Number to be divided.</p>
|
||||
* @param int $num2 <p>Number which divides the <b><i>dividend</i></b></p>
|
||||
* @return int <p>
|
||||
* If divisor is 0, a {@link DivisionByZeroError} exception is thrown.
|
||||
* If the <b><i>dividend</i></b> is <b>PHP_INT_MIN</b> and the <b><i>divisor</i></b> is -1,
|
||||
|
@ -314,25 +314,25 @@ function is_nan ($val) {}
|
|||
* </p>
|
||||
* @since 7.0
|
||||
*/
|
||||
function intdiv ($dividend, $divisor) {}
|
||||
function intdiv ($num1, $num2) {}
|
||||
|
||||
/**
|
||||
* Finds whether a value is infinite
|
||||
* @link https://php.net/manual/en/function.is-infinite.php
|
||||
* @param float $val <p>
|
||||
* @param float $num <p>
|
||||
* The value to check
|
||||
* </p>
|
||||
* @return bool true if val is infinite, else false.
|
||||
*/
|
||||
function is_infinite ($val) {}
|
||||
function is_infinite ($num) {}
|
||||
|
||||
/**
|
||||
* Exponential expression
|
||||
* @link https://php.net/manual/en/function.pow.php
|
||||
* @param int|float $base <p>
|
||||
* @param int|float $num <p>
|
||||
* The base to use
|
||||
* </p>
|
||||
* @param int|float $exp <p>
|
||||
* @param int|float $exponent <p>
|
||||
* The exponent
|
||||
* </p>
|
||||
* @return int|float base raised to the power of exp.
|
||||
|
@ -340,22 +340,22 @@ function is_infinite ($val) {}
|
|||
* integer, else it will be returned as type float.
|
||||
* If the power cannot be computed false will be returned instead.
|
||||
*/
|
||||
function pow ($base, $exp) {}
|
||||
function pow ($num, $exponent) {}
|
||||
|
||||
/**
|
||||
* Calculates the exponent of <constant>e</constant>
|
||||
* @link https://php.net/manual/en/function.exp.php
|
||||
* @param float $arg <p>
|
||||
* @param float $num <p>
|
||||
* The argument to process
|
||||
* </p>
|
||||
* @return float 'e' raised to the power of arg
|
||||
*/
|
||||
function exp ($arg) {}
|
||||
function exp ($num) {}
|
||||
|
||||
/**
|
||||
* Natural logarithm
|
||||
* @link https://php.net/manual/en/function.log.php
|
||||
* @param float $arg <p>
|
||||
* @param float $num <p>
|
||||
* The value to calculate the logarithm for
|
||||
* </p>
|
||||
* @param float $base [optional] <p>
|
||||
|
@ -366,28 +366,28 @@ function exp ($arg) {}
|
|||
* base, if given, or the
|
||||
* natural logarithm.
|
||||
*/
|
||||
function log ($arg, $base = null) {}
|
||||
function log ($num, $base = null) {}
|
||||
|
||||
/**
|
||||
* Base-10 logarithm
|
||||
* @link https://php.net/manual/en/function.log10.php
|
||||
* @param float $arg <p>
|
||||
* @param float $num <p>
|
||||
* The argument to process
|
||||
* </p>
|
||||
* @return float The base-10 logarithm of arg
|
||||
*/
|
||||
function log10 ($arg) {}
|
||||
function log10 ($num) {}
|
||||
|
||||
/**
|
||||
* Square root
|
||||
* @link https://php.net/manual/en/function.sqrt.php
|
||||
* @param float $arg <p>
|
||||
* @param float $num <p>
|
||||
* The argument to process
|
||||
* </p>
|
||||
* @return float The square root of arg
|
||||
* or the special value NAN for negative numbers.
|
||||
*/
|
||||
function sqrt ($arg) {}
|
||||
function sqrt ($num) {}
|
||||
|
||||
/**
|
||||
* Calculate the length of the hypotenuse of a right-angle triangle
|
||||
|
@ -405,22 +405,22 @@ function hypot ($x, $y) {}
|
|||
/**
|
||||
* Converts the number in degrees to the radian equivalent
|
||||
* @link https://php.net/manual/en/function.deg2rad.php
|
||||
* @param float $number <p>
|
||||
* @param float $num <p>
|
||||
* Angular value in degrees
|
||||
* </p>
|
||||
* @return float The radian equivalent of number
|
||||
*/
|
||||
function deg2rad ($number) {}
|
||||
function deg2rad ($num) {}
|
||||
|
||||
/**
|
||||
* Converts the radian number to the equivalent number in degrees
|
||||
* @link https://php.net/manual/en/function.rad2deg.php
|
||||
* @param float $number <p>
|
||||
* @param float $num <p>
|
||||
* A radian value
|
||||
* </p>
|
||||
* @return float The equivalent of number in degrees
|
||||
*/
|
||||
function rad2deg ($number) {}
|
||||
function rad2deg ($num) {}
|
||||
|
||||
/**
|
||||
* Binary to decimal
|
||||
|
@ -455,7 +455,7 @@ function octdec ($octal_string) {}
|
|||
/**
|
||||
* Decimal to binary
|
||||
* @link https://php.net/manual/en/function.decbin.php
|
||||
* @param int $number <p>
|
||||
* @param int $num <p>
|
||||
* Decimal value to convert
|
||||
* </p>
|
||||
* <table>
|
||||
|
@ -568,73 +568,73 @@ function octdec ($octal_string) {}
|
|||
* </table>
|
||||
* @return string Binary string representation of number
|
||||
*/
|
||||
function decbin ($number) {}
|
||||
function decbin ($num) {}
|
||||
|
||||
/**
|
||||
* Decimal to octal
|
||||
* @link https://php.net/manual/en/function.decoct.php
|
||||
* @param int $number <p>
|
||||
* @param int $num <p>
|
||||
* Decimal value to convert
|
||||
* </p>
|
||||
* @return string Octal string representation of number
|
||||
*/
|
||||
function decoct ($number) {}
|
||||
function decoct ($num) {}
|
||||
|
||||
/**
|
||||
* Decimal to hexadecimal
|
||||
* @link https://php.net/manual/en/function.dechex.php
|
||||
* @param int $number <p>
|
||||
* @param int $num <p>
|
||||
* Decimal value to convert
|
||||
* </p>
|
||||
* @return string Hexadecimal string representation of number
|
||||
*/
|
||||
function dechex ($number) {}
|
||||
function dechex ($num) {}
|
||||
|
||||
/**
|
||||
* Convert a number between arbitrary bases
|
||||
* @link https://php.net/manual/en/function.base-convert.php
|
||||
* @param string $number <p>
|
||||
* @param string $num <p>
|
||||
* The number to convert
|
||||
* </p>
|
||||
* @param int $frombase <p>
|
||||
* @param int $from_base <p>
|
||||
* The base number is in
|
||||
* </p>
|
||||
* @param int $tobase <p>
|
||||
* @param int $to_base <p>
|
||||
* The base to convert number to
|
||||
* </p>
|
||||
* @return string number converted to base tobase
|
||||
*/
|
||||
function base_convert ($number, $frombase, $tobase) {}
|
||||
function base_convert ($num, $from_base, $to_base) {}
|
||||
|
||||
/**
|
||||
* Format a number with grouped thousands
|
||||
* @link https://php.net/manual/en/function.number-format.php
|
||||
* @param float $number <p>
|
||||
* @param float $num <p>
|
||||
* The number being formatted.
|
||||
* </p>
|
||||
* @param int $decimals [optional] <p>
|
||||
* Sets the number of decimal points.
|
||||
* </p>
|
||||
* @param string $dec_point [optional]
|
||||
* @param string $thousands_sep [optional]
|
||||
* @param string $decimal_separator [optional]
|
||||
* @param string $thousands_separator [optional]
|
||||
* @return string A formatted version of number.
|
||||
*/
|
||||
function number_format ($number , $decimals = 0 , $dec_point = '.' , $thousands_sep = ',' ) {}
|
||||
function number_format ($num , $decimals = 0 , $decimal_separator = '.' , $thousands_separator = ',' ) {}
|
||||
|
||||
/**
|
||||
* Returns the floating point remainder (modulo) of the division
|
||||
of the arguments
|
||||
* of the arguments
|
||||
* @link https://php.net/manual/en/function.fmod.php
|
||||
* @param float $x <p>
|
||||
* @param float $num1 <p>
|
||||
* The dividend
|
||||
* </p>
|
||||
* @param float $y <p>
|
||||
* @param float $num2 <p>
|
||||
* The divisor
|
||||
* </p>
|
||||
* @return float The floating point remainder of
|
||||
* x/y
|
||||
*/
|
||||
function fmod ($x, $y) {}
|
||||
function fmod($num1, $num2) {}
|
||||
|
||||
/**
|
||||
* Performs a floating-point division under
|
||||
|
@ -642,54 +642,54 @@ function fmod ($x, $y) {}
|
|||
* will return one of Inf, -Inf or NaN.
|
||||
* @since 8.0
|
||||
*/
|
||||
function fdiv(float $dividend, float $divisor): float {}
|
||||
function fdiv(float $num1, float $num2): float {}
|
||||
|
||||
/**
|
||||
* Converts a packed internet address to a human readable representation
|
||||
* @link https://php.net/manual/en/function.inet-ntop.php
|
||||
* @param string $in_addr <p>
|
||||
* @param string $ip <p>
|
||||
* A 32bit IPv4, or 128bit IPv6 address.
|
||||
* </p>
|
||||
* @return string|false a string representation of the address or false on failure.
|
||||
*/
|
||||
function inet_ntop ($in_addr) {}
|
||||
function inet_ntop ($ip) {}
|
||||
|
||||
/**
|
||||
* Converts a human readable IP address to its packed in_addr representation
|
||||
* @link https://php.net/manual/en/function.inet-pton.php
|
||||
* @param string $address <p>
|
||||
* @param string $ip <p>
|
||||
* A human readable IPv4 or IPv6 address.
|
||||
* </p>
|
||||
* @return string the in_addr representation of the given
|
||||
* address
|
||||
*/
|
||||
function inet_pton ($address) {}
|
||||
function inet_pton ($ip) {}
|
||||
|
||||
/**
|
||||
* Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address
|
||||
* @link https://php.net/manual/en/function.ip2long.php
|
||||
* @param string $ip_address <p>
|
||||
* @param string $ip <p>
|
||||
* A standard format address.
|
||||
* </p>
|
||||
* @return int|false the IPv4 address or false if ip_address
|
||||
* is invalid.
|
||||
*/
|
||||
function ip2long ($ip_address) {}
|
||||
function ip2long ($ip) {}
|
||||
|
||||
/**
|
||||
* Converts an (IPv4) Internet network address into a string in Internet standard dotted format
|
||||
* @link https://php.net/manual/en/function.long2ip.php
|
||||
* @param string|int $proper_address <p>
|
||||
* @param string|int $ip <p>
|
||||
* A proper address representation.
|
||||
* </p>
|
||||
* @return string the Internet IP address as a string.
|
||||
*/
|
||||
function long2ip ($proper_address) {}
|
||||
function long2ip ($ip) {}
|
||||
|
||||
/**
|
||||
* Gets the value of an environment variable
|
||||
* @link https://php.net/manual/en/function.getenv.php
|
||||
* @param string $varname [optional] <p>
|
||||
* @param string $name [optional] <p>
|
||||
* The variable name.
|
||||
* </p>
|
||||
* @param bool $local_only [optional] <p>
|
||||
|
@ -699,38 +699,38 @@ function long2ip ($proper_address) {}
|
|||
* varname or an associative array with all environment variables if no variable name
|
||||
* is provided, or false on an error.
|
||||
*/
|
||||
function getenv ($varname = null, $local_only = false) {}
|
||||
function getenv ($name = null, $local_only = false) {}
|
||||
|
||||
/**
|
||||
* Sets the value of an environment variable
|
||||
* @link https://php.net/manual/en/function.putenv.php
|
||||
* @param string $setting <p>
|
||||
* @param string $assignment <p>
|
||||
* The setting, like "FOO=BAR"
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function putenv ($setting) {}
|
||||
function putenv ($assignment) {}
|
||||
|
||||
/**
|
||||
* Gets options from the command line argument list
|
||||
* @link https://php.net/manual/en/function.getopt.php
|
||||
* @param string $options Each character in this string will be used as option characters and
|
||||
* @param string $short_options Each character in this string will be used as option characters and
|
||||
* matched against options passed to the script starting with a single
|
||||
* hyphen (-).
|
||||
* For example, an option string "x" recognizes an
|
||||
* option -x.
|
||||
* Only a-z, A-Z and 0-9 are allowed.
|
||||
* @param array $longopts [optional] An array of options. Each element in this array will be used as option
|
||||
* @param array $long_options [optional] An array of options. Each element in this array will be used as option
|
||||
* strings and matched against options passed to the script starting with
|
||||
* two hyphens (--).
|
||||
* For example, an longopts element "opt" recognizes an
|
||||
* option --opt.
|
||||
* Prior to PHP5.3.0 this parameter was only available on few systems
|
||||
* @param int &$optind If the optind parameter is present, then the index where argument parsing stopped will be written to this variable.
|
||||
* @param int &$rest_index If the optind parameter is present, then the index where argument parsing stopped will be written to this variable.
|
||||
* @return string[]|false[]|false This function will return an array of option / argument pairs or false on
|
||||
* failure.
|
||||
*/
|
||||
function getopt ($options, array $longopts = null, &$optind = null) {}
|
||||
function getopt ($short_options, array $long_options = null, &$rest_index = null) {}
|
||||
|
||||
/**
|
||||
* Gets system load average
|
||||
|
@ -744,7 +744,7 @@ function sys_getloadavg () {}
|
|||
/**
|
||||
* Return current Unix timestamp with microseconds
|
||||
* @link https://php.net/manual/en/function.microtime.php
|
||||
* @param bool $get_as_float [optional] <p>
|
||||
* @param bool $as_float [optional] <p>
|
||||
* When called without the optional argument, this function returns the string
|
||||
* "msec sec" where sec is the current time measured in the number of
|
||||
* seconds since the Unix Epoch (0:00:00 January 1, 1970 GMT), and
|
||||
|
@ -757,12 +757,12 @@ function sys_getloadavg () {}
|
|||
* </p>
|
||||
* @return string|float
|
||||
*/
|
||||
function microtime ($get_as_float = null) {}
|
||||
function microtime ($as_float = null) {}
|
||||
|
||||
/**
|
||||
* Get current time
|
||||
* @link https://php.net/manual/en/function.gettimeofday.php
|
||||
* @param bool $return_float [optional] <p>
|
||||
* @param bool $as_float [optional] <p>
|
||||
* When set to true, a float instead of an array is returned.
|
||||
* </p>
|
||||
* @return int[]|float By default an array is returned. If return_float
|
||||
|
@ -775,19 +775,19 @@ function microtime ($get_as_float = null) {}
|
|||
* "minuteswest" - minutes west of Greenwich
|
||||
* "dsttime" - type of dst correction
|
||||
*/
|
||||
function gettimeofday ($return_float = null) {}
|
||||
function gettimeofday ($as_float = null) {}
|
||||
|
||||
/**
|
||||
* Gets the current resource usages
|
||||
* @link https://php.net/manual/en/function.getrusage.php
|
||||
* @param int $who [optional] <p>
|
||||
* @param int $mode [optional] <p>
|
||||
* If who is 1, getrusage will be called with
|
||||
* RUSAGE_CHILDREN.
|
||||
* </p>
|
||||
* @return array an associative array containing the data returned from the system
|
||||
* call. All entries are accessible by using their documented field names.
|
||||
*/
|
||||
function getrusage ($who = null) {}
|
||||
function getrusage ($mode = null) {}
|
||||
|
||||
/**
|
||||
* Generate a unique ID
|
||||
|
@ -814,22 +814,22 @@ function uniqid ($prefix = "", $more_entropy = false) {}
|
|||
/**
|
||||
* Convert a quoted-printable string to an 8 bit string
|
||||
* @link https://php.net/manual/en/function.quoted-printable-decode.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @return string the 8-bit binary string.
|
||||
*/
|
||||
function quoted_printable_decode ($str) {}
|
||||
function quoted_printable_decode ($string) {}
|
||||
|
||||
/**
|
||||
* Convert a 8 bit string to a quoted-printable string
|
||||
* @link https://php.net/manual/en/function.quoted-printable-encode.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @return string the encoded string.
|
||||
*/
|
||||
function quoted_printable_encode ($str) {}
|
||||
function quoted_printable_encode ($string) {}
|
||||
|
||||
/**
|
||||
* Convert from one Cyrillic character set to another
|
||||
|
@ -870,13 +870,13 @@ function set_time_limit ($seconds) {}
|
|||
/**
|
||||
* Gets the value of a PHP configuration option
|
||||
* @link https://php.net/manual/en/function.get-cfg-var.php
|
||||
* @param string $option <p>
|
||||
* @param string $name <p>
|
||||
* The configuration option name.
|
||||
* </p>
|
||||
* @return string the current value of the PHP configuration variable specified by
|
||||
* option, or false if an error occurs.
|
||||
*/
|
||||
function get_cfg_var ($option) {}
|
||||
function get_cfg_var ($name) {}
|
||||
|
||||
/**
|
||||
* &Alias; <function>set_magic_quotes_runtime</function>
|
||||
|
@ -1011,7 +1011,7 @@ function import_request_variables ($types, $prefix = null) {}
|
|||
* The destination. Its meaning depends on the
|
||||
* message_type parameter as described above.
|
||||
* </p>
|
||||
* @param string $extra_headers [optional] <p>
|
||||
* @param string $additional_headers [optional] <p>
|
||||
* The extra headers. It's used when the message_type
|
||||
* parameter is set to 1.
|
||||
* This message type uses the same internal function as
|
||||
|
@ -1019,4 +1019,4 @@ function import_request_variables ($types, $prefix = null) {}
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function error_log ($message, $message_type = null, $destination = null, $extra_headers = null) {}
|
||||
function error_log ($message, $message_type = null, $destination = null, $additional_headers = null) {}
|
||||
|
|
|
@ -12,14 +12,14 @@ function error_get_last () {}
|
|||
/**
|
||||
* Call a user function given by the first parameter
|
||||
* @link https://php.net/manual/en/function.call-user-func.php
|
||||
* @param callback $function <p>
|
||||
* @param callback $callback <p>
|
||||
* The function to be called. Class methods may also be invoked
|
||||
* statically using this function by passing
|
||||
* array($classname, $methodname) to this parameter.
|
||||
* Additionally class methods of an object instance may be called by passing
|
||||
* array($objectinstance, $methodname) to this parameter.
|
||||
* </p>
|
||||
* @param mixed ...$parameter [optional] <p>
|
||||
* @param mixed ...$args [optional] <p>
|
||||
* Zero or more parameters to be passed to the function.
|
||||
* </p>
|
||||
* <p>
|
||||
|
@ -30,20 +30,20 @@ function error_get_last () {}
|
|||
* </p>
|
||||
* @return mixed|false the function result, or false on error.
|
||||
*/
|
||||
function call_user_func ($function, ...$parameter) {}
|
||||
function call_user_func ($callback, ...$args) {}
|
||||
|
||||
/**
|
||||
* Call a user function given with an array of parameters
|
||||
* @link https://php.net/manual/en/function.call-user-func-array.php
|
||||
* @param callback $function <p>
|
||||
* @param callback $callback <p>
|
||||
* The function to be called.
|
||||
* </p>
|
||||
* @param array $param_arr <p>
|
||||
* @param array $args <p>
|
||||
* The parameters to be passed to the function, as an indexed array.
|
||||
* </p>
|
||||
* @return mixed|false the function result, or false on error.
|
||||
*/
|
||||
function call_user_func_array ($function, array $param_arr) {}
|
||||
function call_user_func_array ($callback, array $args) {}
|
||||
|
||||
/**
|
||||
* Call a user method on an specific object
|
||||
|
@ -72,30 +72,30 @@ function call_user_method_array ($method_name, &$obj, array $params) {}
|
|||
/**
|
||||
* Call a static method
|
||||
* @link https://php.net/manual/en/function.forward-static-call.php
|
||||
* @param callback $function <p>
|
||||
* @param callback $callback <p>
|
||||
* The function or method to be called. This parameter may be an array,
|
||||
* with the name of the class, and the method, or a string, with a function
|
||||
* name.
|
||||
* </p>
|
||||
* @param mixed ...$parameters [optional] <p>
|
||||
* @param mixed ...$args [optional] <p>
|
||||
* Zero or more parameters to be passed to the function.
|
||||
* </p>
|
||||
* @return mixed|false the function result, or false on error.
|
||||
*/
|
||||
function forward_static_call ($function, ...$parameters) {}
|
||||
function forward_static_call ($callback, ...$args) {}
|
||||
|
||||
/**
|
||||
* Call a static method and pass the arguments as array
|
||||
* @link https://php.net/manual/en/function.forward-static-call-array.php
|
||||
* @param callback|array|string $function <p>
|
||||
* @param callback|array|string $callback <p>
|
||||
* The function or method to be called. This parameter may be an array,
|
||||
* with the name of the class, and the method, or a string, with a function
|
||||
* name.
|
||||
* </p>
|
||||
* @param array $parameters
|
||||
* @param array $args
|
||||
* @return mixed|false the function result, or false on error.
|
||||
*/
|
||||
function forward_static_call_array ($function, array $parameters) {}
|
||||
function forward_static_call_array ($callback, array $args) {}
|
||||
|
||||
/**
|
||||
* Generates a storable representation of a value
|
||||
|
@ -128,7 +128,7 @@ function serialize ($value) {}
|
|||
/**
|
||||
* Creates a PHP value from a stored representation
|
||||
* @link https://php.net/manual/en/function.unserialize.php
|
||||
* @param string $str <p>
|
||||
* @param string $value <p>
|
||||
* The serialized string.
|
||||
* </p>
|
||||
* <p>
|
||||
|
@ -166,23 +166,23 @@ function serialize ($value) {}
|
|||
* In case the passed string is not unserializeable, false is returned and
|
||||
* E_NOTICE is issued.
|
||||
*/
|
||||
function unserialize (string $str, array $options = []) {}
|
||||
function unserialize (string $value, array $options = []) {}
|
||||
|
||||
/**
|
||||
* Dumps information about a variable
|
||||
* @link https://php.net/manual/en/function.var-dump.php
|
||||
* @param mixed $expression <p>
|
||||
* @param mixed $value <p>
|
||||
* The variable you want to export.
|
||||
* </p>
|
||||
* @param mixed ...$_ [optional]
|
||||
* @param mixed ...$values [optional]
|
||||
* @return void
|
||||
*/
|
||||
function var_dump ($expression, ...$_) {}
|
||||
function var_dump ($value, ...$values) {}
|
||||
|
||||
/**
|
||||
* Outputs or returns a parsable string representation of a variable
|
||||
* @link https://php.net/manual/en/function.var-export.php
|
||||
* @param mixed $expression <p>
|
||||
* @param mixed $value <p>
|
||||
* The variable you want to export.
|
||||
* </p>
|
||||
* @param bool $return [optional] <p>
|
||||
|
@ -194,7 +194,7 @@ function var_dump ($expression, ...$_) {}
|
|||
* parameter is used and evaluates to true. Otherwise, this function will
|
||||
* return null.
|
||||
*/
|
||||
function var_export ($expression, $return = null) {}
|
||||
function var_export ($value, $return = null) {}
|
||||
|
||||
/**
|
||||
* Dumps a string representation of an internal zend value to output
|
||||
|
@ -210,7 +210,7 @@ function debug_zval_dump ($value, ...$values) {}
|
|||
/**
|
||||
* Prints human-readable information about a variable
|
||||
* @link https://php.net/manual/en/function.print-r.php
|
||||
* @param mixed $expression <p>
|
||||
* @param mixed $value <p>
|
||||
* The expression to be printed.
|
||||
* </p>
|
||||
* @param bool $return [optional] <p>
|
||||
|
@ -224,7 +224,7 @@ function debug_zval_dump ($value, ...$values) {}
|
|||
* will be presented in a format that shows keys and elements. Similar
|
||||
* notation is used for objects.
|
||||
*/
|
||||
function print_r ($expression, $return = null) {}
|
||||
function print_r ($value, $return = null) {}
|
||||
|
||||
/**
|
||||
* Returns the amount of memory allocated to PHP
|
||||
|
@ -253,7 +253,7 @@ function memory_get_peak_usage ($real_usage = false) {}
|
|||
/**
|
||||
* Register a function for execution on shutdown
|
||||
* @link https://php.net/manual/en/function.register-shutdown-function.php
|
||||
* @param callback $function <p>
|
||||
* @param callback $callback <p>
|
||||
* The shutdown function to register.
|
||||
* </p>
|
||||
* <p>
|
||||
|
@ -267,37 +267,37 @@ function memory_get_peak_usage ($real_usage = false) {}
|
|||
* thus, for example, its output will not be compressed if zlib.output_compression is
|
||||
* enabled.
|
||||
* </p>
|
||||
* @param mixed ...$parameters [optional] <p>
|
||||
* @param mixed ...$args [optional] <p>
|
||||
* It is possible to pass parameters to the shutdown function by passing
|
||||
* additional parameters.
|
||||
* </p>
|
||||
* @return void
|
||||
*/
|
||||
function register_shutdown_function ($function, ...$parameters) {}
|
||||
function register_shutdown_function ($callback, ...$args) {}
|
||||
|
||||
/**
|
||||
* Register a function for execution on each tick
|
||||
* @link https://php.net/manual/en/function.register-tick-function.php
|
||||
* @param callback $function <p>
|
||||
* @param callback $callback <p>
|
||||
* The function name as a string, or an array consisting of an object and
|
||||
* a method.
|
||||
* </p>
|
||||
* @param mixed ...$parameters [optional] <p>
|
||||
* @param mixed ...$args [optional] <p>
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function register_tick_function ($function, ...$parameters) {}
|
||||
function register_tick_function ($callback, ...$args) {}
|
||||
|
||||
/**
|
||||
* De-register a function for execution on each tick
|
||||
* @link https://php.net/manual/en/function.unregister-tick-function.php
|
||||
* @param callable $function <p>
|
||||
* @param callable $callback <p>
|
||||
* The function name as a string, or an array consisting of an object and
|
||||
* a method.
|
||||
* </p>
|
||||
* @return void
|
||||
*/
|
||||
function unregister_tick_function ($function) {}
|
||||
function unregister_tick_function ($callback) {}
|
||||
|
||||
/**
|
||||
* Syntax highlighting of a file
|
||||
|
@ -318,16 +318,16 @@ function highlight_file ($filename, $return = false) {}
|
|||
/**
|
||||
* &Alias; <function>highlight_file</function>
|
||||
* @link https://php.net/manual/en/function.show-source.php
|
||||
* @param string $file_name
|
||||
* @param string $filename
|
||||
* @param bool $return [optional]
|
||||
* @return string|bool
|
||||
*/
|
||||
function show_source ($file_name, $return = false) {}
|
||||
function show_source ($filename, $return = false) {}
|
||||
|
||||
/**
|
||||
* Syntax highlighting of a string
|
||||
* @link https://php.net/manual/en/function.highlight-string.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The PHP code to be highlighted. This should include the opening tag.
|
||||
* </p>
|
||||
* @param bool $return [optional] <p>
|
||||
|
@ -338,17 +338,17 @@ function show_source ($file_name, $return = false) {}
|
|||
* code as a string instead of printing it out. Otherwise, it will return
|
||||
* true on success, false on failure.
|
||||
*/
|
||||
function highlight_string ($str, $return = false) {}
|
||||
function highlight_string ($string, $return = false) {}
|
||||
|
||||
/**
|
||||
* Get the system's high resolution time
|
||||
* @link https://secure.php.net/manual/en/function.hrtime.php
|
||||
* @param bool $get_as_number <p>Whether the high resolution time should be returned as array or number.<p>
|
||||
* @param bool $as_number <p>Whether the high resolution time should be returned as array or number.<p>
|
||||
* @since 7.3
|
||||
* @return int[]|int|float Returns an array of integers in the form [seconds, nanoseconds], if the parameter get_as_number is false.
|
||||
* Otherwise the nanoseconds are returned as integer (64bit platforms) or float (32bit platforms).
|
||||
*/
|
||||
function hrtime($get_as_number = false) {}
|
||||
function hrtime($as_number = false) {}
|
||||
|
||||
/**
|
||||
* Return source with stripped comments and whitespace
|
||||
|
@ -371,13 +371,13 @@ function php_strip_whitespace ($filename) {}
|
|||
* Gets the value of a configuration option
|
||||
* @link https://php.net/manual/en/function.ini-get.php
|
||||
* @link https://php.net/manual/en/ini.list.php
|
||||
* @param string $varname <p>
|
||||
* @param string $name <p>
|
||||
* The configuration option name.
|
||||
* </p>
|
||||
* @return string the value of the configuration option as a string on success, or
|
||||
* an empty string on failure or for null values.
|
||||
*/
|
||||
function ini_get ($varname) {}
|
||||
function ini_get ($name) {}
|
||||
|
||||
/**
|
||||
* Gets all configuration options
|
||||
|
@ -418,40 +418,40 @@ function ini_get_all ($extension = null, $details = null) {}
|
|||
* Sets the value of a configuration option
|
||||
* @link https://php.net/manual/en/function.ini-set.php
|
||||
* @link https://php.net/manual/en/ini.list.php
|
||||
* @param string $varname <p>
|
||||
* @param string $name <p>
|
||||
* </p>
|
||||
* <p>
|
||||
* Not all the available options can be changed using
|
||||
* ini_set. There is a list of all available options
|
||||
* in the appendix.
|
||||
* </p>
|
||||
* @param string $newvalue <p>
|
||||
* @param string $value <p>
|
||||
* The new value for the option.
|
||||
* </p>
|
||||
* @return string|false the old value on success, false on failure.
|
||||
*/
|
||||
function ini_set ($varname, $newvalue) {}
|
||||
function ini_set ($name, $value) {}
|
||||
|
||||
/**
|
||||
* &Alias; <function>ini_set</function>
|
||||
* @link https://php.net/manual/en/function.ini-alter.php
|
||||
* @link https://php.net/manual/en/ini.list.php
|
||||
* @param string $varname
|
||||
* @param string $newvalue
|
||||
* @param string $name
|
||||
* @param string $value
|
||||
* @return string|false
|
||||
*/
|
||||
function ini_alter ($varname, $newvalue) {}
|
||||
function ini_alter ($name, $value) {}
|
||||
|
||||
/**
|
||||
* Restores the value of a configuration option
|
||||
* @link https://php.net/manual/en/function.ini-restore.php
|
||||
* @link https://php.net/manual/en/ini.list.php
|
||||
* @param string $varname <p>
|
||||
* @param string $name <p>
|
||||
* The configuration option name.
|
||||
* </p>
|
||||
* @return void
|
||||
*/
|
||||
function ini_restore ($varname) {}
|
||||
function ini_restore ($name) {}
|
||||
|
||||
/**
|
||||
* Gets the current include_path configuration option
|
||||
|
@ -463,13 +463,13 @@ function get_include_path () {}
|
|||
/**
|
||||
* Sets the include_path configuration option
|
||||
* @link https://php.net/manual/en/function.set-include-path.php
|
||||
* @param string $new_include_path <p>
|
||||
* @param string $include_path <p>
|
||||
* The new value for the include_path
|
||||
* </p>
|
||||
* @return string|bool the old include_path on
|
||||
* success or false on failure.
|
||||
*/
|
||||
function set_include_path ($new_include_path) {}
|
||||
function set_include_path ($include_path) {}
|
||||
|
||||
/**
|
||||
* Restores the value of the include_path configuration option
|
||||
|
@ -492,7 +492,7 @@ function restore_include_path () {}
|
|||
* Assuming the name is 'cookiename', this
|
||||
* value is retrieved through $_COOKIE['cookiename']
|
||||
* </p>
|
||||
* @param int $expire [optional] <p>
|
||||
* @param int $expires_or_options [optional] <p>
|
||||
* The time the cookie expires. This is a Unix timestamp so is
|
||||
* in number of seconds since the epoch. In other words, you'll
|
||||
* most likely set this with the time function
|
||||
|
@ -555,7 +555,7 @@ function restore_include_path () {}
|
|||
* setcookie successfully runs, it will return true.
|
||||
* This does not indicate whether the user accepted the cookie.
|
||||
*/
|
||||
function setcookie ($name, $value = "", $expire = 0, $path = "", $domain = "", $secure = false, $httponly = false) {}
|
||||
function setcookie ($name, $value = "", $expires_or_options = 0, $path = "", $domain = "", $secure = false, $httponly = false) {}
|
||||
|
||||
/**
|
||||
* Send a cookie
|
||||
|
@ -585,14 +585,14 @@ function setcookie($name, $value = '', array $options = []) {}
|
|||
* @link https://php.net/manual/en/function.setrawcookie.php
|
||||
* @param string $name
|
||||
* @param string $value [optional]
|
||||
* @param int $expire [optional]
|
||||
* @param int $expires_or_options [optional]
|
||||
* @param string $path [optional]
|
||||
* @param string $domain [optional]
|
||||
* @param bool $secure [optional]
|
||||
* @param bool $httponly [optional]
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function setrawcookie ($name, $value = '', $expire = 0, $path = "", $domain = "", $secure = false, $httponly = false) {}
|
||||
function setrawcookie ($name, $value = '', $expires_or_options = 0, $path = "", $domain = "", $secure = false, $httponly = false) {}
|
||||
|
||||
/**
|
||||
* Send a cookie without urlencoding the cookie value
|
||||
|
@ -619,7 +619,7 @@ function setrawcookie ($name, $value = '', array $options = []) {}
|
|||
/**
|
||||
* Send a raw HTTP header
|
||||
* @link https://php.net/manual/en/function.header.php
|
||||
* @param string $string <p>
|
||||
* @param string $header <p>
|
||||
* The header string.
|
||||
* </p>
|
||||
* <p>
|
||||
|
@ -645,12 +645,12 @@ function setrawcookie ($name, $value = '', array $options = []) {}
|
|||
* but if you pass in false as the second argument you can force
|
||||
* multiple headers of the same type. For example:
|
||||
* </p>
|
||||
* @param int $http_response_code [optional] <p>
|
||||
* @param int $response_code [optional] <p>
|
||||
* Forces the HTTP response code to the specified value.
|
||||
* </p>
|
||||
* @return void
|
||||
*/
|
||||
function header ($string, $replace = true, $http_response_code = null) {}
|
||||
function header ($header, $replace = true, $response_code = null) {}
|
||||
|
||||
/**
|
||||
* Remove previously set headers
|
||||
|
@ -666,7 +666,7 @@ function header_remove ($name = null) {}
|
|||
/**
|
||||
* Checks if or where headers have been sent
|
||||
* @link https://php.net/manual/en/function.headers-sent.php
|
||||
* @param string &$file [optional] <p>
|
||||
* @param string &$filename [optional] <p>
|
||||
* If the optional file and
|
||||
* line parameters are set,
|
||||
* headers_sent will put the PHP source file name
|
||||
|
@ -679,7 +679,7 @@ function header_remove ($name = null) {}
|
|||
* @return bool headers_sent will return false if no HTTP headers
|
||||
* have already been sent or true otherwise.
|
||||
*/
|
||||
function headers_sent (&$file = null, &$line = null) {}
|
||||
function headers_sent (&$filename = null, &$line = null) {}
|
||||
|
||||
/**
|
||||
* Returns a list of response headers sent (or ready to send)
|
||||
|
@ -722,14 +722,14 @@ function connection_status () {}
|
|||
/**
|
||||
* Set whether a client disconnect should abort script execution
|
||||
* @link https://php.net/manual/en/function.ignore-user-abort.php
|
||||
* @param string $value [optional] <p>
|
||||
* @param string $enable [optional] <p>
|
||||
* If set, this function will set the ignore_user_abort ini setting
|
||||
* to the given value. If not, this function will
|
||||
* only return the previous setting without changing it.
|
||||
* </p>
|
||||
* @return int the previous setting, as an integer.
|
||||
*/
|
||||
function ignore_user_abort ($value = null) {}
|
||||
function ignore_user_abort ($enable = null) {}
|
||||
|
||||
/**
|
||||
* Parse a configuration file
|
||||
|
@ -764,7 +764,7 @@ function parse_ini_file ($filename, $process_sections = false, $scanner_mode = I
|
|||
/**
|
||||
* Parse a configuration string
|
||||
* @link https://php.net/manual/en/function.parse-ini-string.php
|
||||
* @param string $ini <p>
|
||||
* @param string $ini_string <p>
|
||||
* The contents of the ini file being parsed.
|
||||
* </p>
|
||||
* @param bool $process_sections [optional] <p>
|
||||
|
@ -781,7 +781,7 @@ function parse_ini_file ($filename, $process_sections = false, $scanner_mode = I
|
|||
* @return array|false The settings are returned as an associative array on success,
|
||||
* and false on failure.
|
||||
*/
|
||||
function parse_ini_string ($ini, $process_sections = false, $scanner_mode = INI_SCANNER_NORMAL) {}
|
||||
function parse_ini_string ($ini_string, $process_sections = false, $scanner_mode = INI_SCANNER_NORMAL) {}
|
||||
|
||||
/**
|
||||
* Tells whether the file was uploaded via HTTP POST
|
||||
|
@ -796,10 +796,10 @@ function is_uploaded_file ($filename) {}
|
|||
/**
|
||||
* Moves an uploaded file to a new location
|
||||
* @link https://php.net/manual/en/function.move-uploaded-file.php
|
||||
* @param string $filename <p>
|
||||
* @param string $from <p>
|
||||
* The filename of the uploaded file.
|
||||
* </p>
|
||||
* @param string $destination <p>
|
||||
* @param string $to <p>
|
||||
* The destination of the moved file.
|
||||
* </p>
|
||||
* @return bool If filename is not a valid upload file,
|
||||
|
@ -813,7 +813,7 @@ function is_uploaded_file ($filename) {}
|
|||
* move_uploaded_file will return
|
||||
* false. Additionally, a warning will be issued.
|
||||
*/
|
||||
function move_uploaded_file ($filename, $destination) {}
|
||||
function move_uploaded_file ($from, $to) {}
|
||||
|
||||
/**
|
||||
* @return array|false
|
||||
|
@ -824,13 +824,13 @@ function net_get_interfaces() {}
|
|||
/**
|
||||
* Get the Internet host name corresponding to a given IP address
|
||||
* @link https://php.net/manual/en/function.gethostbyaddr.php
|
||||
* @param string $ip_address <p>
|
||||
* @param string $ip <p>
|
||||
* The host IP address.
|
||||
* </p>
|
||||
* @return string the host name or the unmodified ip_address
|
||||
* on failure.
|
||||
*/
|
||||
function gethostbyaddr ($ip_address) {}
|
||||
function gethostbyaddr ($ip) {}
|
||||
|
||||
/**
|
||||
* Get the IPv4 address corresponding to a given Internet host name
|
||||
|
@ -866,7 +866,7 @@ function gethostname () {}
|
|||
/**
|
||||
* &Alias; <function>checkdnsrr</function>
|
||||
* @link https://php.net/manual/en/function.dns-check-record.php
|
||||
* @param string $host <p>
|
||||
* @param string $hostname <p>
|
||||
* <b>host</b> may either be the IP address in
|
||||
* dotted-quad notation or the host name.
|
||||
* </p>
|
||||
|
@ -876,12 +876,12 @@ function gethostname () {}
|
|||
* </p>
|
||||
* @return bool Returns <b>TRUE</b> if any records are found; returns <b>FALSE</b> if no records were found or if an error occurred.
|
||||
*/
|
||||
function dns_check_record ($host, $type = 'MX') {}
|
||||
function dns_check_record ($hostname, $type = 'MX') {}
|
||||
|
||||
/**
|
||||
* Check DNS records corresponding to a given Internet host name or IP address
|
||||
* @link https://php.net/manual/en/function.checkdnsrr.php
|
||||
* @param string $host <p>
|
||||
* @param string $hostname <p>
|
||||
* host may either be the IP address in
|
||||
* dotted-quad notation or the host name.
|
||||
* </p>
|
||||
|
@ -892,17 +892,17 @@ function dns_check_record ($host, $type = 'MX') {}
|
|||
* @return bool true if any records are found; returns false if no records
|
||||
* were found or if an error occurred.
|
||||
*/
|
||||
function checkdnsrr ($host, $type = null) {}
|
||||
function checkdnsrr ($hostname, $type = null) {}
|
||||
|
||||
/**
|
||||
* &Alias; <function>getmxrr</function>
|
||||
* @link https://php.net/manual/en/function.dns-get-mx.php
|
||||
* @param string $hostname
|
||||
* @param array &$mxhosts
|
||||
* @param array &$weight [optional]
|
||||
* @param array &$hosts
|
||||
* @param array &$weights [optional]
|
||||
* @return bool
|
||||
*/
|
||||
function dns_get_mx ($hostname, array &$mxhosts, array &$weight = null) {}
|
||||
function dns_get_mx ($hostname, array &$hosts, array &$weights = null) {}
|
||||
|
||||
/**
|
||||
* Get MX records corresponding to a given Internet host name
|
||||
|
@ -910,18 +910,18 @@ function dns_get_mx ($hostname, array &$mxhosts, array &$weight = null) {}
|
|||
* @param string $hostname <p>
|
||||
* The Internet host name.
|
||||
* </p>
|
||||
* @param array &$mxhosts <p>
|
||||
* @param array &$hosts <p>
|
||||
* A list of the MX records found is placed into the array
|
||||
* mxhosts.
|
||||
* </p>
|
||||
* @param array &$weight [optional] <p>
|
||||
* @param array &$weights [optional] <p>
|
||||
* If the weight array is given, it will be filled
|
||||
* with the weight information gathered.
|
||||
* </p>
|
||||
* @return bool true if any records are found; returns false if no records
|
||||
* were found or if an error occurred.
|
||||
*/
|
||||
function getmxrr ($hostname, array &$mxhosts, array &$weight = null) {}
|
||||
function getmxrr ($hostname, array &$hosts, array &$weights = null) {}
|
||||
|
||||
/**
|
||||
* Fetch DNS Resource Records associated with a hostname
|
||||
|
@ -958,11 +958,11 @@ function getmxrr ($hostname, array &$mxhosts, array &$weight = null) {}
|
|||
* always return every record, the slower DNS_ALL
|
||||
* will collect all records more reliably.
|
||||
* </p>
|
||||
* @param array &$authns [optional] <p>
|
||||
* @param array &$authoritative_name_servers [optional] <p>
|
||||
* Passed by reference and, if given, will be populated with Resource
|
||||
* Records for the Authoritative Name Servers.
|
||||
* </p>
|
||||
* @param array &$addtl [optional] <p>
|
||||
* @param array &$additional_records [optional] <p>
|
||||
* Passed by reference and, if given, will be populated with any
|
||||
* Additional Records.
|
||||
* </p>
|
||||
|
@ -1130,4 +1130,4 @@ function getmxrr ($hostname, array &$mxhosts, array &$weight = null) {}
|
|||
* </tr>
|
||||
* </table>
|
||||
*/
|
||||
function dns_get_record ($hostname, $type = DNS_ANY, array &$authns = null, array &$addtl = null, $raw = false) {}
|
||||
function dns_get_record ($hostname, $type = DNS_ANY, array &$authoritative_name_servers = null, array &$additional_records = null, $raw = false) {}
|
||||
|
|
|
@ -3,16 +3,16 @@
|
|||
/**
|
||||
* (PHP 5.5.0)<br/>
|
||||
* Get the boolean value of a variable
|
||||
* @param mixed $var <p>the scalar value being converted to a boolean.</p>
|
||||
* @param mixed $value <p>the scalar value being converted to a boolean.</p>
|
||||
* @return bool The boolean value of var.
|
||||
* @since 5.5
|
||||
*/
|
||||
function boolval($var) {}
|
||||
function boolval($value) {}
|
||||
|
||||
/**
|
||||
* Get the integer value of a variable
|
||||
* @link https://php.net/manual/en/function.intval.php
|
||||
* @param mixed $var <p>
|
||||
* @param mixed $value <p>
|
||||
* The scalar value being converted to an integer
|
||||
* </p>
|
||||
* @param int $base [optional] <p>
|
||||
|
@ -35,15 +35,15 @@ function boolval($var) {}
|
|||
* integer casting
|
||||
* apply.
|
||||
*/
|
||||
function intval ($var, $base = 10) {}
|
||||
function intval ($value, $base = 10) {}
|
||||
|
||||
/**
|
||||
* Get float value of a variable
|
||||
* @link https://php.net/manual/en/function.floatval.php
|
||||
* @param mixed $var May be any scalar type. should not be used on objects, as doing so will emit an E_NOTICE level error and return 1.
|
||||
* @param mixed $value May be any scalar type. should not be used on objects, as doing so will emit an E_NOTICE level error and return 1.
|
||||
* @return float value of the given variable. Empty arrays return 0, non-empty arrays return 1.
|
||||
*/
|
||||
function floatval ($var) {}
|
||||
function floatval ($value) {}
|
||||
|
||||
/**
|
||||
* (PHP 4.2.0, PHP 5)<br/>
|
||||
|
@ -51,15 +51,15 @@ function floatval ($var) {}
|
|||
* Get float value of a variable
|
||||
* &Alias; <function>floatval</function>
|
||||
* @link https://php.net/manual/en/function.doubleval.php
|
||||
* @param mixed $var May be any scalar type. should not be used on objects, as doing so will emit an E_NOTICE level error and return 1.
|
||||
* @param mixed $value May be any scalar type. should not be used on objects, as doing so will emit an E_NOTICE level error and return 1.
|
||||
* @return float value of the given variable. Empty arrays return 0, non-empty arrays return 1.
|
||||
*/
|
||||
function doubleval ($var) {}
|
||||
function doubleval ($value) {}
|
||||
|
||||
/**
|
||||
* Get string value of a variable
|
||||
* @link https://php.net/manual/en/function.strval.php
|
||||
* @param mixed $var <p>
|
||||
* @param mixed $value <p>
|
||||
* The variable that is being converted to a string.
|
||||
* </p>
|
||||
* <p>
|
||||
|
@ -68,12 +68,12 @@ function doubleval ($var) {}
|
|||
* </p>
|
||||
* @return string The string value of var.
|
||||
*/
|
||||
function strval ($var) {}
|
||||
function strval ($value) {}
|
||||
|
||||
/**
|
||||
* Get the type of a variable
|
||||
* @link https://php.net/manual/en/function.gettype.php
|
||||
* @param mixed $var <p>
|
||||
* @param mixed $value <p>
|
||||
* The variable being type checked.
|
||||
* </p>
|
||||
* @return string Possibles values for the returned string are:
|
||||
|
@ -90,7 +90,7 @@ function strval ($var) {}
|
|||
* "unknown type"
|
||||
* "resource (closed)" since 7.2.0
|
||||
*/
|
||||
function gettype ($var) {}
|
||||
function gettype ($value) {}
|
||||
|
||||
/**
|
||||
* Set the type of a variable
|
||||
|
@ -131,90 +131,90 @@ function settype (&$var, $type) {}
|
|||
/**
|
||||
* Finds whether a variable is null.
|
||||
* @link https://php.net/manual/en/function.is-null.php
|
||||
* @param mixed $var <p>
|
||||
* @param mixed $value <p>
|
||||
* The variable being evaluated.
|
||||
* </p>
|
||||
* @return bool true if var is null, false
|
||||
* otherwise.
|
||||
*/
|
||||
function is_null ($var) {}
|
||||
function is_null ($value) {}
|
||||
|
||||
/**
|
||||
* Finds whether a variable is a resource
|
||||
* @link https://php.net/manual/en/function.is-resource.php
|
||||
* @param mixed $var <p>
|
||||
* @param mixed $value <p>
|
||||
* The variable being evaluated.
|
||||
* </p>
|
||||
* @return bool true if var is a resource,
|
||||
* false otherwise.
|
||||
*/
|
||||
function is_resource ($var) {}
|
||||
function is_resource ($value) {}
|
||||
|
||||
/**
|
||||
* Finds out whether a variable is a boolean
|
||||
* @link https://php.net/manual/en/function.is-bool.php
|
||||
* @param mixed $var <p>
|
||||
* @param mixed $value <p>
|
||||
* The variable being evaluated.
|
||||
* </p>
|
||||
* @return bool true if var is a boolean,
|
||||
* false otherwise.
|
||||
*/
|
||||
function is_bool ($var) {}
|
||||
function is_bool ($value) {}
|
||||
|
||||
/**
|
||||
* &Alias; <function>is_int</function>
|
||||
* @link https://php.net/manual/en/function.is-long.php
|
||||
* @param mixed $var <p>
|
||||
* @param mixed $value <p>
|
||||
* The variable being evaluated.
|
||||
* </p>
|
||||
* @return bool true if var is an integer,
|
||||
* false otherwise.
|
||||
*/
|
||||
function is_long ($var) {}
|
||||
function is_long ($value) {}
|
||||
|
||||
/**
|
||||
* Finds whether the type of a variable is float
|
||||
* @link https://php.net/manual/en/function.is-float.php
|
||||
* @param mixed $var <p>
|
||||
* @param mixed $value <p>
|
||||
* The variable being evaluated.
|
||||
* </p>
|
||||
* @return bool true if var is a float,
|
||||
* false otherwise.
|
||||
*/
|
||||
function is_float ($var) {}
|
||||
function is_float ($value) {}
|
||||
|
||||
/**
|
||||
* Find whether the type of a variable is integer
|
||||
* @link https://php.net/manual/en/function.is-int.php
|
||||
* @param mixed $var <p>
|
||||
* @param mixed $value <p>
|
||||
* The variable being evaluated.
|
||||
* </p>
|
||||
* @return bool true if var is an integer,
|
||||
* false otherwise.
|
||||
*/
|
||||
function is_int ($var) {}
|
||||
function is_int ($value) {}
|
||||
|
||||
/**
|
||||
* &Alias; <function>is_int</function>
|
||||
* @link https://php.net/manual/en/function.is-integer.php
|
||||
* @param mixed $var <p>
|
||||
* @param mixed $value <p>
|
||||
* The variable being evaluated.
|
||||
* </p>
|
||||
* @return bool true if var is an integer,
|
||||
* false otherwise.
|
||||
*/
|
||||
function is_integer ($var) {}
|
||||
function is_integer ($value) {}
|
||||
|
||||
/**
|
||||
* &Alias; <function>is_float</function>
|
||||
* @link https://php.net/manual/en/function.is-double.php
|
||||
* @param mixed $var <p>
|
||||
* @param mixed $value <p>
|
||||
* The variable being evaluated.
|
||||
* </p>
|
||||
* @return bool true if var is a float,
|
||||
* false otherwise.
|
||||
*/
|
||||
function is_double ($var) {}
|
||||
function is_double ($value) {}
|
||||
|
||||
/**
|
||||
* &Alias; <function>is_float</function>
|
||||
|
@ -231,62 +231,62 @@ function is_real ($var) {}
|
|||
/**
|
||||
* Finds whether a variable is a number or a numeric string
|
||||
* @link https://php.net/manual/en/function.is-numeric.php
|
||||
* @param mixed $var <p>
|
||||
* @param mixed $value <p>
|
||||
* The variable being evaluated.
|
||||
* </p>
|
||||
* @return bool true if var is a number or a numeric
|
||||
* string, false otherwise.
|
||||
*/
|
||||
function is_numeric ($var) {}
|
||||
function is_numeric ($value) {}
|
||||
|
||||
/**
|
||||
* Find whether the type of a variable is string
|
||||
* @link https://php.net/manual/en/function.is-string.php
|
||||
* @param mixed $var <p>
|
||||
* @param mixed $value <p>
|
||||
* The variable being evaluated.
|
||||
* </p>
|
||||
* @return bool true if var is of type string,
|
||||
* false otherwise.
|
||||
*/
|
||||
function is_string ($var) {}
|
||||
function is_string ($value) {}
|
||||
|
||||
/**
|
||||
* Finds whether a variable is an array
|
||||
* @link https://php.net/manual/en/function.is-array.php
|
||||
* @param mixed $var <p>
|
||||
* @param mixed $value <p>
|
||||
* The variable being evaluated.
|
||||
* </p>
|
||||
* @return bool true if var is an array,
|
||||
* false otherwise.
|
||||
*/
|
||||
function is_array ($var) {}
|
||||
function is_array ($value) {}
|
||||
|
||||
/**
|
||||
* Finds whether a variable is an object
|
||||
* @link https://php.net/manual/en/function.is-object.php
|
||||
* @param mixed $var <p>
|
||||
* @param mixed $value <p>
|
||||
* The variable being evaluated.
|
||||
* </p>
|
||||
* @return bool true if var is an object, false otherwise.<br/>
|
||||
* Since 7.2.0 returns true for unserialized objects without a class definition (class of <b>__PHP_Incomplete_Class</b>).
|
||||
*/
|
||||
function is_object ($var) {}
|
||||
function is_object ($value) {}
|
||||
|
||||
/**
|
||||
* Finds whether a variable is a scalar
|
||||
* @link https://php.net/manual/en/function.is-scalar.php
|
||||
* @param mixed $var <p>
|
||||
* @param mixed $value <p>
|
||||
* The variable being evaluated.
|
||||
* </p>
|
||||
* @return bool true if var is a scalar false
|
||||
* otherwise.
|
||||
*/
|
||||
function is_scalar ($var) {}
|
||||
function is_scalar ($value) {}
|
||||
|
||||
/**
|
||||
* Verify that the contents of a variable can be called as a function
|
||||
* @link https://php.net/manual/en/function.is-callable.php
|
||||
* @param callable|mixed $var <p>
|
||||
* @param callable|mixed $value <p>
|
||||
* The value to check
|
||||
* </p>
|
||||
* @param bool $syntax_only [optional] <p>
|
||||
|
@ -306,17 +306,17 @@ function is_scalar ($var) {}
|
|||
* @return bool <b>TRUE</b> if $var is callable, <b>FALSE</b>
|
||||
* otherwise.
|
||||
*/
|
||||
function is_callable ($var, $syntax_only = null, &$callable_name = null) {}
|
||||
function is_callable ($value, $syntax_only = null, &$callable_name = null) {}
|
||||
|
||||
/**
|
||||
* Verify that the contents of a variable is a countable value
|
||||
* @link https://secure.php.net/is_countable
|
||||
*
|
||||
* @param mixed $var The value to check
|
||||
* @param mixed $value The value to check
|
||||
* @return bool <b>TRUE</b> if $var is countable, <b>FALSE</b> otherwise.
|
||||
* @since 7.3
|
||||
*/
|
||||
function is_countable($var) {}
|
||||
function is_countable($value) {}
|
||||
|
||||
/**
|
||||
* Closes process file pointer
|
||||
|
@ -373,24 +373,24 @@ function readfile ($filename, $use_include_path = null, $context = null) {}
|
|||
/**
|
||||
* Rewind the position of a file pointer
|
||||
* @link https://php.net/manual/en/function.rewind.php
|
||||
* @param resource $handle <p>
|
||||
* @param resource $stream <p>
|
||||
* The file pointer must be valid, and must point to a file
|
||||
* successfully opened by fopen.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function rewind ($handle) {}
|
||||
function rewind ($stream) {}
|
||||
|
||||
/**
|
||||
* Removes directory
|
||||
* @link https://php.net/manual/en/function.rmdir.php
|
||||
* @param string $dirname <p>
|
||||
* @param string $directory <p>
|
||||
* Path to the directory.
|
||||
* </p>
|
||||
* @param resource $context [optional] ¬e.context-support;
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function rmdir ($dirname, $context = null) {}
|
||||
function rmdir ($directory, $context = null) {}
|
||||
|
||||
/**
|
||||
* Changes the current umask
|
||||
|
@ -406,36 +406,36 @@ function umask ($mask = null) {}
|
|||
/**
|
||||
* Closes an open file pointer
|
||||
* @link https://php.net/manual/en/function.fclose.php
|
||||
* @param resource $handle <p>
|
||||
* @param resource $stream <p>
|
||||
* The file pointer must be valid, and must point to a file successfully
|
||||
* opened by fopen or fsockopen.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function fclose ($handle) {}
|
||||
function fclose ($stream) {}
|
||||
|
||||
/**
|
||||
* Tests for end-of-file on a file pointer
|
||||
* @link https://php.net/manual/en/function.feof.php
|
||||
* @param resource $handle The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).
|
||||
* @param resource $stream The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).
|
||||
* @return bool true if the file pointer is at EOF or an error occurs
|
||||
* (including socket timeout); otherwise returns false.
|
||||
*/
|
||||
function feof ($handle) {}
|
||||
function feof ($stream) {}
|
||||
|
||||
/**
|
||||
* Gets character from file pointer
|
||||
* @link https://php.net/manual/en/function.fgetc.php
|
||||
* @param resource $handle The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).
|
||||
* @param resource $stream The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).
|
||||
* @return string|false a string containing a single character read from the file pointed
|
||||
* to by handle. Returns false on EOF.
|
||||
*/
|
||||
function fgetc ($handle) {}
|
||||
function fgetc ($stream) {}
|
||||
|
||||
/**
|
||||
* Gets line from file pointer
|
||||
* @link https://php.net/manual/en/function.fgets.php
|
||||
* @param resource $handle The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).
|
||||
* @param resource $stream The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).
|
||||
* @param int $length [optional] <p>
|
||||
* Reading ends when length - 1 bytes have been
|
||||
* read, on a newline (which is included in the return value), or on EOF
|
||||
|
@ -454,7 +454,7 @@ function fgetc ($handle) {}
|
|||
* <p>
|
||||
* If an error occurs, returns false.
|
||||
*/
|
||||
function fgets ($handle, $length = null) {}
|
||||
function fgets ($stream, $length = null) {}
|
||||
|
||||
/**
|
||||
* Gets line from file pointer and strip HTML tags
|
||||
|
@ -481,13 +481,13 @@ function fgetss ($handle, $length = null, $allowable_tags = null) {}
|
|||
/**
|
||||
* Binary-safe file read
|
||||
* @link https://php.net/manual/en/function.fread.php
|
||||
* @param resource $handle &fs.file.pointer;
|
||||
* @param resource $stream &fs.file.pointer;
|
||||
* @param int $length <p>
|
||||
* Up to length number of bytes read.
|
||||
* </p>
|
||||
* @return string|false the read string or false on failure.
|
||||
*/
|
||||
function fread ($handle, $length) {}
|
||||
function fread ($stream, $length) {}
|
||||
|
||||
/**
|
||||
* Opens file or URL
|
||||
|
@ -675,18 +675,18 @@ function fopen ($filename, $mode, $use_include_path = false, $context = null) {}
|
|||
/**
|
||||
* Output all remaining data on a file pointer
|
||||
* @link https://php.net/manual/en/function.fpassthru.php
|
||||
* @param resource $handle The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).
|
||||
* @param resource $stream The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).
|
||||
* @return int|false If an error occurs, fpassthru returns
|
||||
* false. Otherwise, fpassthru returns
|
||||
* the number of characters read from handle
|
||||
* and passed through to the output.
|
||||
*/
|
||||
function fpassthru ($handle) {}
|
||||
function fpassthru ($stream) {}
|
||||
|
||||
/**
|
||||
* Truncates a file to a given length
|
||||
* @link https://php.net/manual/en/function.ftruncate.php
|
||||
* @param resource $handle <p>
|
||||
* @param resource $stream <p>
|
||||
* The file pointer.
|
||||
* </p>
|
||||
* <p>
|
||||
|
@ -705,21 +705,21 @@ function fpassthru ($handle) {}
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function ftruncate ($handle, $size) {}
|
||||
function ftruncate ($stream, $size) {}
|
||||
|
||||
/**
|
||||
* Gets information about a file using an open file pointer
|
||||
* @link https://php.net/manual/en/function.fstat.php
|
||||
* @param resource $handle &fs.file.pointer;
|
||||
* @param resource $stream &fs.file.pointer;
|
||||
* @return array an array with the statistics of the file; the format of the array
|
||||
* is described in detail on the stat manual page.
|
||||
*/
|
||||
function fstat ($handle) {}
|
||||
function fstat ($stream) {}
|
||||
|
||||
/**
|
||||
* Seeks on a file pointer
|
||||
* @link https://php.net/manual/en/function.fseek.php
|
||||
* @param resource $handle &fs.file.pointer;
|
||||
* @param resource $stream &fs.file.pointer;
|
||||
* @param int $offset <p>
|
||||
* The offset.
|
||||
* </p>
|
||||
|
@ -742,12 +742,12 @@ function fstat ($handle) {}
|
|||
* @return int Upon success, returns 0; otherwise, returns -1. Note that seeking
|
||||
* past EOF is not considered an error.
|
||||
*/
|
||||
function fseek ($handle, $offset, $whence = SEEK_SET) {}
|
||||
function fseek ($stream, $offset, $whence = SEEK_SET) {}
|
||||
|
||||
/**
|
||||
* Returns the current position of the file read/write pointer
|
||||
* @link https://php.net/manual/en/function.ftell.php
|
||||
* @param resource $handle <p>
|
||||
* @param resource $stream <p>
|
||||
* The file pointer must be valid, and must point to a file successfully
|
||||
* opened by fopen or popen.
|
||||
* ftell gives undefined results for append-only streams
|
||||
|
@ -759,24 +759,24 @@ function fseek ($handle, $offset, $whence = SEEK_SET) {}
|
|||
* <p>
|
||||
* If an error occurs, returns false.
|
||||
*/
|
||||
function ftell ($handle) {}
|
||||
function ftell ($stream) {}
|
||||
|
||||
/**
|
||||
* Flushes the output to a file
|
||||
* @link https://php.net/manual/en/function.fflush.php
|
||||
* @param resource $handle The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).
|
||||
* @param resource $stream The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function fflush ($handle) {}
|
||||
function fflush ($stream) {}
|
||||
|
||||
/**
|
||||
* Binary-safe file write
|
||||
* @link https://php.net/manual/en/function.fwrite.php
|
||||
* @param resource $handle &fs.file.pointer;
|
||||
* @param resource $stream &fs.file.pointer;
|
||||
* @param string $string <p>
|
||||
* The string that is to be written.
|
||||
* </p>
|
||||
* @param int $length [optional] <p>
|
||||
* @param int $max_length [optional] <p>
|
||||
* If the length argument is given, writing will
|
||||
* stop after length bytes have been written or
|
||||
* the end of string is reached, whichever comes
|
||||
|
@ -790,18 +790,15 @@ function fflush ($handle) {}
|
|||
* </p>
|
||||
* @return int|false the number of bytes written, or <b>FALSE</b> on error.
|
||||
*/
|
||||
function fwrite ($handle, $string, $length = null) {}
|
||||
function fwrite ($stream, $string, $max_length = null) {}
|
||||
|
||||
/**
|
||||
* &Alias; <function>fwrite</function>
|
||||
* @see fwrite()
|
||||
* @link https://php.net/manual/en/function.fputs.php
|
||||
* Binary-safe file write
|
||||
* @param resource $handle A file system pointer resource that is typically created using fopen().
|
||||
* @param resource $stream A file system pointer resource that is typically created using fopen().
|
||||
* @param string $string <p>
|
||||
* The string that is to be written.
|
||||
* </p>
|
||||
* @param int $length [optional] <p>
|
||||
* @param int $max_length [optional] <p>
|
||||
* If the length argument is given, writing will
|
||||
* stop after length bytes have been written or
|
||||
* the end of string is reached, whichever comes
|
||||
|
@ -814,13 +811,16 @@ function fwrite ($handle, $string, $length = null) {}
|
|||
* stripped from string.
|
||||
* </p>
|
||||
* @return int|false the number of bytes written, or <b>FALSE</b> on error.
|
||||
* @see fwrite()
|
||||
* @link https://php.net/manual/en/function.fputs.php
|
||||
* Binary-safe file write
|
||||
*/
|
||||
function fputs ($handle, $string, $length = null) {}
|
||||
function fputs ($stream, $string, $max_length = null) {}
|
||||
|
||||
/**
|
||||
* Attempts to create the directory specified by pathname.
|
||||
* @link https://php.net/manual/en/function.mkdir.php
|
||||
* @param string $pathname <p>
|
||||
* @param string $directory <p>
|
||||
* The directory path.
|
||||
* </p>
|
||||
* @param int $mode [optional] <p>
|
||||
|
@ -843,33 +843,33 @@ function fputs ($handle, $string, $length = null) {}
|
|||
* @param resource $context [optional] ¬e.context-support;
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function mkdir ($pathname, $mode = 0777, $recursive = false, $context = null) {}
|
||||
function mkdir ($directory, $mode = 0777, $recursive = false, $context = null) {}
|
||||
|
||||
/**
|
||||
* Renames a file or directory
|
||||
* @link https://php.net/manual/en/function.rename.php
|
||||
* @param string $oldname <p>
|
||||
* @param string $from <p>
|
||||
* </p>
|
||||
* <p>
|
||||
* The old name. The wrapper used in oldname
|
||||
* must match the wrapper used in
|
||||
* newname.
|
||||
* </p>
|
||||
* @param string $newname <p>
|
||||
* @param string $to <p>
|
||||
* The new name.
|
||||
* </p>
|
||||
* @param resource $context [optional] ¬e.context-support;
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function rename ($oldname, $newname, $context = null) {}
|
||||
function rename ($from, $to, $context = null) {}
|
||||
|
||||
/**
|
||||
* Copies file
|
||||
* @link https://php.net/manual/en/function.copy.php
|
||||
* @param string $source <p>
|
||||
* @param string $from <p>
|
||||
* Path to the source file.
|
||||
* </p>
|
||||
* @param string $dest <p>
|
||||
* @param string $to <p>
|
||||
* The destination path. If dest is a URL, the
|
||||
* copy operation may fail if the wrapper does not support overwriting of
|
||||
* existing files.
|
||||
|
@ -883,12 +883,12 @@ function rename ($oldname, $newname, $context = null) {}
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function copy ($source, $dest, $context = null) {}
|
||||
function copy ($from, $to, $context = null) {}
|
||||
|
||||
/**
|
||||
* Create file with unique file name
|
||||
* @link https://php.net/manual/en/function.tempnam.php
|
||||
* @param string $dir <p>
|
||||
* @param string $directory <p>
|
||||
* The directory where the temporary filename will be created.
|
||||
* </p>
|
||||
* @param string $prefix <p>
|
||||
|
@ -898,7 +898,7 @@ function copy ($source, $dest, $context = null) {}
|
|||
* @return string|false the new temporary filename, or false on
|
||||
* failure.
|
||||
*/
|
||||
function tempnam ($dir, $prefix) {}
|
||||
function tempnam ($directory, $prefix) {}
|
||||
|
||||
/**
|
||||
* Creates a temporary file
|
||||
|
@ -957,13 +957,13 @@ function file ($filename, $flags = null, $context = null) {}
|
|||
* @param int $offset [optional] <p>
|
||||
* The offset where the reading starts.
|
||||
* </p>
|
||||
* @param int $maxlen [optional] <p>
|
||||
* @param int $max_length [optional] <p>
|
||||
* Maximum length of data read. The default is to read until end
|
||||
* of file is reached.
|
||||
* </p>
|
||||
* @return string|false The function returns the read data or false on failure.
|
||||
*/
|
||||
function file_get_contents ($filename, $use_include_path = false, $context = null, $offset = 0, $maxlen = null) {}
|
||||
function file_get_contents ($filename, $use_include_path = false, $context = null, $offset = 0, $max_length = null) {}
|
||||
|
||||
/**
|
||||
* Write a string to a file
|
||||
|
@ -971,7 +971,7 @@ function file_get_contents ($filename, $use_include_path = false, $context = nul
|
|||
* @param string $filename <p>
|
||||
* Path to the file where to write the data.
|
||||
* </p>
|
||||
* @param mixed $data <p>
|
||||
* @param mixed $content <p>
|
||||
* The data to write. Can be either a string, an
|
||||
* array or a stream resource.
|
||||
* </p>
|
||||
|
@ -1036,4 +1036,4 @@ function file_get_contents ($filename, $use_include_path = false, $context = nul
|
|||
* @return int|false The function returns the number of bytes that were written to the file, or
|
||||
* false on failure.
|
||||
*/
|
||||
function file_put_contents ($filename, $data, $flags = 0, $context = null) {}
|
||||
function file_put_contents ($filename, $content, $flags = 0, $context = null) {}
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
* empty array or null instead. Also do not forget that those arrays are
|
||||
* passed by reference and will be modified after
|
||||
* stream_select returns.
|
||||
* @param int $tv_sec <p>
|
||||
* @param int $seconds <p>
|
||||
* The tv_sec and tv_usec
|
||||
* together form the timeout parameter,
|
||||
* tv_sec specifies the number of seconds while
|
||||
|
@ -64,7 +64,7 @@
|
|||
* stream_select will return as soon as the
|
||||
* requested streams are ready for use.
|
||||
* </p>
|
||||
* @param int $tv_usec [optional] <p>
|
||||
* @param int $microseconds [optional] <p>
|
||||
* See tv_sec description.
|
||||
* </p>
|
||||
* @return int On success stream_select returns the number of
|
||||
|
@ -73,7 +73,7 @@
|
|||
* is returned and a warning raised (this can happen if the system call is
|
||||
* interrupted by an incoming signal).
|
||||
*/
|
||||
function stream_select (array &$read, array &$write, array &$except, $tv_sec, $tv_usec = null) {}
|
||||
function stream_select (array &$read, array &$write, array &$except, $seconds, $microseconds = null) {}
|
||||
|
||||
/**
|
||||
* Create a streams context
|
||||
|
@ -98,7 +98,7 @@ function stream_context_create (array $options = null, array $params = null) {}
|
|||
/**
|
||||
* Set parameters for a stream/wrapper/context
|
||||
* @link https://php.net/manual/en/function.stream-context-set-params.php
|
||||
* @param resource $stream_or_context <p>
|
||||
* @param resource $context <p>
|
||||
* The stream or context to apply the parameters too.
|
||||
* </p>
|
||||
* @param array $params <p>
|
||||
|
@ -110,31 +110,31 @@ function stream_context_create (array $options = null, array $params = null) {}
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function stream_context_set_params ($stream_or_context, array $params) {}
|
||||
function stream_context_set_params ($context, array $params) {}
|
||||
|
||||
/**
|
||||
* Retrieves parameters from a context
|
||||
* @link https://php.net/manual/en/function.stream-context-get-params.php
|
||||
* @param resource $stream_or_context <p>
|
||||
* @param resource $context <p>
|
||||
* A stream resource or a
|
||||
* context resource
|
||||
* </p>
|
||||
* @return array an associate array containing all context options and parameters.
|
||||
*/
|
||||
function stream_context_get_params ($stream_or_context) {}
|
||||
function stream_context_get_params ($context) {}
|
||||
|
||||
/**
|
||||
* Sets an option for a stream/wrapper/context
|
||||
* @link https://php.net/manual/en/function.stream-context-set-option.php
|
||||
* @param resource $stream_or_context <p>
|
||||
* @param resource $context <p>
|
||||
* The stream or context resource to apply the options too.
|
||||
* </p>
|
||||
* @param string $wrapper
|
||||
* @param string $option
|
||||
* @param string $wrapper_or_options
|
||||
* @param string $option_name
|
||||
* @param mixed $value
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function stream_context_set_option ($stream_or_context, $wrapper, $option, $value) {}
|
||||
function stream_context_set_option ($context, $wrapper_or_options, $option_name, $value) {}
|
||||
|
||||
/**
|
||||
* Sets an option for a stream/wrapper/context
|
||||
|
@ -190,10 +190,10 @@ function stream_context_set_default (array $options) {}
|
|||
* @param resource $stream <p>
|
||||
* The target stream.
|
||||
* </p>
|
||||
* @param string $filtername <p>
|
||||
* @param string $filter_name <p>
|
||||
* The filter name.
|
||||
* </p>
|
||||
* @param int $read_write [optional] <p>
|
||||
* @param int $mode [optional] <p>
|
||||
* By default, stream_filter_prepend will
|
||||
* attach the filter to the read filter chain
|
||||
* if the file was opened for reading (i.e. File Mode:
|
||||
|
@ -217,7 +217,7 @@ function stream_context_set_default (array $options) {}
|
|||
* @return resource|false a resource which can be used to refer to this filter
|
||||
* instance during a call to stream_filter_remove.
|
||||
*/
|
||||
function stream_filter_prepend ($stream, $filtername, $read_write = null, $params = null) {}
|
||||
function stream_filter_prepend ($stream, $filter_name, $mode = null, $params = null) {}
|
||||
|
||||
/**
|
||||
* Attach a filter to a stream
|
||||
|
@ -225,10 +225,10 @@ function stream_filter_prepend ($stream, $filtername, $read_write = null, $param
|
|||
* @param resource $stream <p>
|
||||
* The target stream.
|
||||
* </p>
|
||||
* @param string $filtername <p>
|
||||
* @param string $filter_name <p>
|
||||
* The filter name.
|
||||
* </p>
|
||||
* @param int $read_write [optional] <p>
|
||||
* @param int $mode [optional] <p>
|
||||
* By default, stream_filter_append will
|
||||
* attach the filter to the read filter chain
|
||||
* if the file was opened for reading (i.e. File Mode:
|
||||
|
@ -251,7 +251,7 @@ function stream_filter_prepend ($stream, $filtername, $read_write = null, $param
|
|||
* @return resource|false a resource which can be used to refer to this filter
|
||||
* instance during a call to stream_filter_remove.
|
||||
*/
|
||||
function stream_filter_append ($stream, $filtername, $read_write = null, $params = null) {}
|
||||
function stream_filter_append ($stream, $filter_name, $mode = null, $params = null) {}
|
||||
|
||||
/**
|
||||
* Remove a filter from a stream
|
||||
|
@ -266,13 +266,13 @@ function stream_filter_remove ($stream_filter) {}
|
|||
/**
|
||||
* Open Internet or Unix domain socket connection
|
||||
* @link https://php.net/manual/en/function.stream-socket-client.php
|
||||
* @param string $remote_socket <p>
|
||||
* @param string $address <p>
|
||||
* Address to the socket to connect to.
|
||||
* </p>
|
||||
* @param int &$errno [optional] <p>
|
||||
* @param int &$error_code [optional] <p>
|
||||
* Will be set to the system level error number if connection fails.
|
||||
* </p>
|
||||
* @param string &$errstr [optional] <p>
|
||||
* @param string &$error_message [optional] <p>
|
||||
* Will be set to the system level error message if the connection fails.
|
||||
* </p>
|
||||
* @param float|null $timeout [optional] <p>
|
||||
|
@ -303,12 +303,12 @@ function stream_filter_remove ($stream_filter) {}
|
|||
* fwrite, fclose, and
|
||||
* feof), false on failure.
|
||||
*/
|
||||
function stream_socket_client ($remote_socket, &$errno = null, &$errstr = null, $timeout = null, $flags = null, $context = null) {}
|
||||
function stream_socket_client ($address, &$error_code = null, &$error_message = null, $timeout = null, $flags = null, $context = null) {}
|
||||
|
||||
/**
|
||||
* Create an Internet or Unix domain server socket
|
||||
* @link https://php.net/manual/en/function.stream-socket-server.php
|
||||
* @param string $local_socket <p>
|
||||
* @param string $address <p>
|
||||
* The type of socket created is determined by the transport specified
|
||||
* using standard URL formatting: transport://target.
|
||||
* </p>
|
||||
|
@ -326,7 +326,7 @@ function stream_socket_client ($remote_socket, &$errno = null, &$errstr = null,
|
|||
* stream_get_transports. See
|
||||
* for a list of bulitin transports.
|
||||
* </p>
|
||||
* @param int &$errno [optional] <p>
|
||||
* @param int &$error_code [optional] <p>
|
||||
* If the optional errno and errstr
|
||||
* arguments are present they will be set to indicate the actual system
|
||||
* level error that occurred in the system-level socket(),
|
||||
|
@ -338,7 +338,7 @@ function stream_socket_client ($remote_socket, &$errno = null, &$errstr = null,
|
|||
* Note that the errno and
|
||||
* errstr arguments will always be passed by reference.
|
||||
* </p>
|
||||
* @param string &$errstr [optional] <p>
|
||||
* @param string &$error_message [optional] <p>
|
||||
* See errno description.
|
||||
* </p>
|
||||
* @param int $flags [optional] <p>
|
||||
|
@ -353,17 +353,17 @@ function stream_socket_client ($remote_socket, &$errno = null, &$errstr = null,
|
|||
* </p>
|
||||
* @return resource|false the created stream, or false on error.
|
||||
*/
|
||||
function stream_socket_server ($local_socket, &$errno = null, &$errstr = null, $flags = null, $context = null) {}
|
||||
function stream_socket_server ($address, &$error_code = null, &$error_message = null, $flags = null, $context = null) {}
|
||||
|
||||
/**
|
||||
* Accept a connection on a socket created by <function>stream_socket_server</function>
|
||||
* @link https://php.net/manual/en/function.stream-socket-accept.php
|
||||
* @param resource $server_socket
|
||||
* @param resource $socket
|
||||
* @param float $timeout [optional] <p>
|
||||
* Override the default socket accept timeout. Time should be given in
|
||||
* seconds.
|
||||
* </p>
|
||||
* @param string &$peername [optional] <p>
|
||||
* @param string &$peer_name [optional] <p>
|
||||
* Will be set to the name (address) of the client which connected, if
|
||||
* included and available from the selected transport.
|
||||
* </p>
|
||||
|
@ -373,21 +373,21 @@ function stream_socket_server ($local_socket, &$errno = null, &$errstr = null, $
|
|||
* </p>
|
||||
* @return resource|false Returns a stream to the accepted socket connection or FALSE on failure.
|
||||
*/
|
||||
function stream_socket_accept ($server_socket, $timeout = null, &$peername = null) {}
|
||||
function stream_socket_accept ($socket, $timeout = null, &$peer_name = null) {}
|
||||
|
||||
/**
|
||||
* Retrieve the name of the local or remote sockets
|
||||
* @link https://php.net/manual/en/function.stream-socket-get-name.php
|
||||
* @param resource $handle <p>
|
||||
* @param resource $socket <p>
|
||||
* The socket to get the name of.
|
||||
* </p>
|
||||
* @param bool $want_peer <p>
|
||||
* @param bool $remote <p>
|
||||
* If set to true the remote socket name will be returned, if set
|
||||
* to false the local socket name will be returned.
|
||||
* </p>
|
||||
* @return string|false The name of the socket or false on error.
|
||||
*/
|
||||
function stream_socket_get_name ($handle, $want_peer) {}
|
||||
function stream_socket_get_name ($socket, $remote) {}
|
||||
|
||||
/**
|
||||
* Receives data from a socket, connected or not
|
||||
|
@ -490,7 +490,7 @@ function stream_socket_enable_crypto ($stream, $enable, $crypto_type = null, $se
|
|||
* An open stream (opened with stream_socket_client,
|
||||
* for example)
|
||||
* </p>
|
||||
* @param int $how <p>
|
||||
* @param int $mode <p>
|
||||
* One of the following constants: STREAM_SHUT_RD
|
||||
* (disable further receptions), STREAM_SHUT_WR
|
||||
* (disable further transmissions) or
|
||||
|
@ -500,7 +500,7 @@ function stream_socket_enable_crypto ($stream, $enable, $crypto_type = null, $se
|
|||
* @return bool true on success or false on failure.
|
||||
* @since 5.2.1
|
||||
*/
|
||||
function stream_socket_shutdown ($stream, $how) {}
|
||||
function stream_socket_shutdown ($stream, $mode) {}
|
||||
|
||||
/**
|
||||
* Creates a pair of connected, indistinguishable socket streams
|
||||
|
@ -533,13 +533,13 @@ function stream_socket_pair ($domain, $type, $protocol) {}
|
|||
/**
|
||||
* Copies data from one stream to another
|
||||
* @link https://php.net/manual/en/function.stream-copy-to-stream.php
|
||||
* @param resource $source <p>
|
||||
* @param resource $from <p>
|
||||
* The source stream
|
||||
* </p>
|
||||
* @param resource $dest <p>
|
||||
* @param resource $to <p>
|
||||
* The destination stream
|
||||
* </p>
|
||||
* @param int $maxlength [optional] <p>
|
||||
* @param int $max_length [optional] <p>
|
||||
* Maximum bytes to copy
|
||||
* </p>
|
||||
* @param int $offset [optional] <p>
|
||||
|
@ -547,15 +547,15 @@ function stream_socket_pair ($domain, $type, $protocol) {}
|
|||
* </p>
|
||||
* @return int|false the total count of bytes copied, or false on failure.
|
||||
*/
|
||||
function stream_copy_to_stream ($source, $dest, $maxlength = null, $offset = null) {}
|
||||
function stream_copy_to_stream ($from, $to, $max_length = null, $offset = null) {}
|
||||
|
||||
/**
|
||||
* Reads remainder of a stream into a string
|
||||
* @link https://php.net/manual/en/function.stream-get-contents.php
|
||||
* @param resource $handle <p>
|
||||
* @param resource $stream <p>
|
||||
* A stream resource (e.g. returned from fopen)
|
||||
* </p>
|
||||
* @param int $maxlength [optional] <p>
|
||||
* @param int $max_length [optional] <p>
|
||||
* The maximum bytes to read. Defaults to -1 (read all the remaining
|
||||
* buffer).
|
||||
* </p>
|
||||
|
@ -564,7 +564,7 @@ function stream_copy_to_stream ($source, $dest, $maxlength = null, $offset = nul
|
|||
* </p>
|
||||
* @return string|false a string or false on failure.
|
||||
*/
|
||||
function stream_get_contents ($handle, $maxlength = null, $offset = null) {}
|
||||
function stream_get_contents ($stream, $max_length = null, $offset = null) {}
|
||||
|
||||
/**
|
||||
* Tells whether the stream supports locking.
|
||||
|
@ -579,7 +579,7 @@ function stream_supports_lock ($stream) {}
|
|||
/**
|
||||
* Gets line from file pointer and parse for CSV fields
|
||||
* @link https://php.net/manual/en/function.fgetcsv.php
|
||||
* @param resource $handle <p>
|
||||
* @param resource $stream <p>
|
||||
* A valid file pointer to a file successfully opened by
|
||||
* fopen, popen, or
|
||||
* fsockopen.
|
||||
|
@ -591,7 +591,7 @@ function stream_supports_lock ($stream) {}
|
|||
* 5.0.4 and later) the maximum line length is not limited, which is
|
||||
* slightly slower.
|
||||
* </p>
|
||||
* @param string $delimiter [optional] <p>
|
||||
* @param string $separator [optional] <p>
|
||||
* Set the field delimiter (one character only).
|
||||
* </p>
|
||||
* @param string $enclosure [optional] <p>
|
||||
|
@ -613,16 +613,16 @@ function stream_supports_lock ($stream) {}
|
|||
* handle is supplied or false on other errors,
|
||||
* including end of file.
|
||||
*/
|
||||
function fgetcsv ($handle, $length = 0, $delimiter = ',', $enclosure = '"', $escape = '\\') {}
|
||||
function fgetcsv ($stream, $length = 0, $separator = ',', $enclosure = '"', $escape = '\\') {}
|
||||
|
||||
/**
|
||||
* Format line as CSV and write to file pointer
|
||||
* @link https://php.net/manual/en/function.fputcsv.php
|
||||
* @param resource $handle The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).
|
||||
* @param resource $stream The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).
|
||||
* @param array $fields <p>
|
||||
* An array of values.
|
||||
* </p>
|
||||
* @param string $delimiter [optional] <p>
|
||||
* @param string $separator [optional] <p>
|
||||
* The optional delimiter parameter sets the field
|
||||
* delimiter (one character only).
|
||||
* </p>
|
||||
|
@ -630,27 +630,27 @@ function fgetcsv ($handle, $length = 0, $delimiter = ',', $enclosure = '"', $esc
|
|||
* The optional enclosure parameter sets the field
|
||||
* enclosure (one character only).
|
||||
* </p>
|
||||
* @param string $escape_char The optional escape_char parameter sets the escape character (one character only).
|
||||
* @param string $escape The optional escape_char parameter sets the escape character (one character only).
|
||||
* @return int|false the length of the written string or false on failure.
|
||||
*/
|
||||
function fputcsv ($handle, array $fields, $delimiter = ",", $enclosure = '"', $escape_char = "\\") {}
|
||||
function fputcsv ($stream, array $fields, $separator = ",", $enclosure = '"', $escape = "\\") {}
|
||||
|
||||
/**
|
||||
* Portable advisory file locking
|
||||
* @link https://php.net/manual/en/function.flock.php
|
||||
* @param resource $handle <p>
|
||||
* @param resource $stream <p>
|
||||
* An open file pointer.
|
||||
* </p>
|
||||
* @param int $operation <p>
|
||||
* operation is one of the following:
|
||||
* LOCK_SH to acquire a shared lock (reader).
|
||||
* @param int &$wouldblock [optional] <p>
|
||||
* @param int &$would_block [optional] <p>
|
||||
* The optional third argument is set to true if the lock would block
|
||||
* (EWOULDBLOCK errno condition).
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function flock ($handle, $operation, &$wouldblock = null) {}
|
||||
function flock ($stream, $operation, &$would_block = null) {}
|
||||
|
||||
/**
|
||||
* Extracts all meta tag content attributes from a file and returns an array
|
||||
|
@ -697,7 +697,7 @@ function get_meta_tags ($filename, $use_include_path = null) {}
|
|||
* @param resource $stream <p>
|
||||
* The file pointer.
|
||||
* </p>
|
||||
* @param int $buffer <p>
|
||||
* @param int $size <p>
|
||||
* The number of bytes to buffer. If buffer
|
||||
* is 0 then write operations are unbuffered. This ensures that all writes
|
||||
* with fwrite are completed before other processes are
|
||||
|
@ -706,7 +706,7 @@ function get_meta_tags ($filename, $use_include_path = null) {}
|
|||
* @return int 0 on success, or EOF if the request cannot be honored.
|
||||
* @see stream_set_read_buffer()
|
||||
*/
|
||||
function stream_set_write_buffer ($stream, $buffer) {}
|
||||
function stream_set_write_buffer ($stream, $size) {}
|
||||
|
||||
/**
|
||||
* Sets file buffering on the given stream
|
||||
|
@ -714,7 +714,7 @@ function stream_set_write_buffer ($stream, $buffer) {}
|
|||
* @param resource $stream <p>
|
||||
* The file pointer.
|
||||
* </p>
|
||||
* @param int $buffer <p>
|
||||
* @param int $size <p>
|
||||
* The number of bytes to buffer. If buffer
|
||||
* is 0 then write operations are unbuffered. This ensures that all writes
|
||||
* with fwrite are completed before other processes are
|
||||
|
@ -723,7 +723,7 @@ function stream_set_write_buffer ($stream, $buffer) {}
|
|||
* @return int 0 on success, or EOF if the request cannot be honored.
|
||||
* @see stream_set_write_buffer()
|
||||
*/
|
||||
function stream_set_read_buffer ($stream, $buffer) {}
|
||||
function stream_set_read_buffer ($stream, $size) {}
|
||||
|
||||
/**
|
||||
* &Alias; <function>stream_set_write_buffer</function>
|
||||
|
@ -732,12 +732,12 @@ function stream_set_read_buffer ($stream, $buffer) {}
|
|||
* This means that if there are two processes wanting to write to the same output stream (a file),
|
||||
* each is paused after 8K of data to allow the other to write.
|
||||
* @link https://php.net/manual/en/function.set-file-buffer.php
|
||||
* @param resource $fp The file pointer.
|
||||
* @param int $buffer The number of bytes to buffer. If buffer is 0 then write operations are unbuffered.
|
||||
* @param resource $stream The file pointer.
|
||||
* @param int $size The number of bytes to buffer. If buffer is 0 then write operations are unbuffered.
|
||||
* This ensures that all writes with fwrite() are completed before other processes are allowed to write to that output stream.
|
||||
* @return int
|
||||
*/
|
||||
function set_file_buffer ($fp, $buffer) {}
|
||||
function set_file_buffer ($stream, $size) {}
|
||||
|
||||
/**
|
||||
* &Alias; <function>stream_set_blocking</function>
|
||||
|
@ -760,7 +760,7 @@ function set_socket_blocking ($socket, $mode) {}
|
|||
* @param resource $stream <p>
|
||||
* The stream.
|
||||
* </p>
|
||||
* @param bool $mode <p>
|
||||
* @param bool $enable <p>
|
||||
* If mode is FALSE, the given stream
|
||||
* will be switched to non-blocking mode, and if TRUE, it
|
||||
* will be switched to blocking mode. This affects calls like
|
||||
|
@ -772,15 +772,15 @@ function set_socket_blocking ($socket, $mode) {}
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function stream_set_blocking ($stream, $mode) {}
|
||||
function stream_set_blocking ($stream, $enable) {}
|
||||
|
||||
/**
|
||||
* &Alias; <function>stream_set_blocking</function>
|
||||
* @link https://php.net/manual/en/function.socket-set-blocking.php
|
||||
* @param resource $socket <p>
|
||||
* @param resource $stream <p>
|
||||
* The stream.
|
||||
* </p>
|
||||
* @param bool $mode <p>
|
||||
* @param bool $enable <p>
|
||||
* If mode is FALSE, the given stream
|
||||
* will be switched to non-blocking mode, and if TRUE, it
|
||||
* will be switched to blocking mode. This affects calls like
|
||||
|
@ -792,7 +792,7 @@ function stream_set_blocking ($stream, $mode) {}
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function socket_set_blocking ($socket, $mode) {}
|
||||
function socket_set_blocking ($stream, $enable) {}
|
||||
|
||||
/**
|
||||
* Retrieves header/meta data from streams/file pointers
|
||||
|
@ -861,10 +861,10 @@ function stream_get_meta_data ($stream) {}
|
|||
/**
|
||||
* Gets line from stream resource up to a given delimiter
|
||||
* @link https://php.net/manual/en/function.stream-get-line.php
|
||||
* @param resource $handle <p>
|
||||
* @param resource $stream <p>
|
||||
* A valid file handle.
|
||||
* </p>
|
||||
* @param int $length <p>
|
||||
* @param int $max_length <p>
|
||||
* The number of bytes to read from the handle.
|
||||
* </p>
|
||||
* @param string $ending [optional] <p>
|
||||
|
@ -876,7 +876,7 @@ function stream_get_meta_data ($stream) {}
|
|||
* <p>
|
||||
* If an error occurs, returns false.
|
||||
*/
|
||||
function stream_get_line ($handle, $length, $ending = null) {}
|
||||
function stream_get_line ($stream, $max_length, $ending = null) {}
|
||||
|
||||
/**
|
||||
* Register a URL wrapper implemented as a PHP class
|
||||
|
@ -884,7 +884,7 @@ function stream_get_line ($handle, $length, $ending = null) {}
|
|||
* @param string $protocol <p>
|
||||
* The wrapper name to be registered.
|
||||
* </p>
|
||||
* @param string $classname <p>
|
||||
* @param string $class <p>
|
||||
* The classname which implements the protocol.
|
||||
* </p>
|
||||
* @param int $flags [optional] <p>
|
||||
|
@ -898,7 +898,7 @@ function stream_get_line ($handle, $length, $ending = null) {}
|
|||
* stream_wrapper_register will return false if the
|
||||
* protocol already has a handler.
|
||||
*/
|
||||
function stream_wrapper_register ($protocol, $classname, $flags = null) {}
|
||||
function stream_wrapper_register ($protocol, $class, $flags = null) {}
|
||||
|
||||
/**
|
||||
* &Alias; <function>stream_wrapper_register</function>
|
||||
|
@ -907,7 +907,7 @@ function stream_wrapper_register ($protocol, $classname, $flags = null) {}
|
|||
* @param string $protocol <p>
|
||||
* The wrapper name to be registered.
|
||||
* </p>
|
||||
* @param string $classname <p>
|
||||
* @param string $class <p>
|
||||
* The classname which implements the protocol.
|
||||
* </p>
|
||||
* @param int $flags [optional] <p>
|
||||
|
@ -921,7 +921,7 @@ function stream_wrapper_register ($protocol, $classname, $flags = null) {}
|
|||
* stream_wrapper_register will return false if the
|
||||
* protocol already has a handler.
|
||||
*/
|
||||
function stream_register_wrapper ($protocol, $classname, $flags = 0) {}
|
||||
function stream_register_wrapper ($protocol, $class, $flags = 0) {}
|
||||
|
||||
/**
|
||||
* Resolve filename against the include path according to the same rules as fopen()/include().
|
||||
|
@ -969,13 +969,13 @@ function stream_get_transports () {}
|
|||
/**
|
||||
* Checks if a stream is a local stream
|
||||
* @link https://php.net/manual/en/function.stream-is-local.php
|
||||
* @param mixed $stream_or_url <p>
|
||||
* @param mixed $stream <p>
|
||||
* The stream resource or URL to check.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
* @since 5.2.4
|
||||
*/
|
||||
function stream_is_local ($stream_or_url) {}
|
||||
function stream_is_local ($stream) {}
|
||||
|
||||
/**
|
||||
* Fetches all the headers sent by the server in response to a HTTP request
|
||||
|
@ -983,7 +983,7 @@ function stream_is_local ($stream_or_url) {}
|
|||
* @param string $url <p>
|
||||
* The target URL.
|
||||
* </p>
|
||||
* @param int $format [optional] <p>
|
||||
* @param int $as_assoc_array [optional] <p>
|
||||
* If the optional format parameter is set to non-zero,
|
||||
* get_headers parses the response and sets the
|
||||
* array's keys.
|
||||
|
@ -992,7 +992,7 @@ function stream_is_local ($stream_or_url) {}
|
|||
* @return array|false an indexed or associative array with the headers, or false on
|
||||
* failure.
|
||||
*/
|
||||
function get_headers ($url, $format = null, $context = null) {}
|
||||
function get_headers ($url, $as_assoc_array = null, $context = null) {}
|
||||
|
||||
/**
|
||||
* Set timeout period on a stream
|
||||
|
@ -1113,7 +1113,7 @@ function realpath ($path) {}
|
|||
* @param string $pattern <p>
|
||||
* The shell wildcard pattern.
|
||||
* </p>
|
||||
* @param string $string <p>
|
||||
* @param string $filename <p>
|
||||
* The tested string. This function is especially useful for filenames,
|
||||
* but may also be used on regular strings.
|
||||
* </p>
|
||||
|
@ -1163,5 +1163,5 @@ function realpath ($path) {}
|
|||
* </p>
|
||||
* @return bool true if there is a match, false otherwise.
|
||||
*/
|
||||
function fnmatch ($pattern, $string, $flags = null) {}
|
||||
function fnmatch ($pattern, $filename, $flags = null) {}
|
||||
?>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
* @param int $port [optional] <p>
|
||||
* The port number.
|
||||
* </p>
|
||||
* @param int &$errno [optional] <p>
|
||||
* @param int &$error_code [optional] <p>
|
||||
* If provided, holds the system level error number that occurred in the
|
||||
* system-level connect() call.
|
||||
* </p>
|
||||
|
@ -23,7 +23,7 @@
|
|||
* connect() call. This is most likely due to a
|
||||
* problem initializing the socket.
|
||||
* </p>
|
||||
* @param string &$errstr [optional] <p>
|
||||
* @param string &$error_message [optional] <p>
|
||||
* The error message as a string.
|
||||
* </p>
|
||||
* @param float $timeout [optional] <p>
|
||||
|
@ -42,7 +42,7 @@
|
|||
* fwrite, fclose, and
|
||||
* feof). If the call fails, it will return false
|
||||
*/
|
||||
function fsockopen ($hostname, $port = null, &$errno = null, &$errstr = null, $timeout = null) {}
|
||||
function fsockopen ($hostname, $port = null, &$error_code = null, &$error_message = null, $timeout = null) {}
|
||||
|
||||
/**
|
||||
* Open persistent Internet or Unix domain socket connection
|
||||
|
@ -50,12 +50,12 @@ function fsockopen ($hostname, $port = null, &$errno = null, &$errstr = null, $t
|
|||
* @see fsockopen
|
||||
* @param string $hostname
|
||||
* @param int $port [optional]
|
||||
* @param int &$errno [optional]
|
||||
* @param string &$errstr [optional]
|
||||
* @param int &$error_code [optional]
|
||||
* @param string &$error_message [optional]
|
||||
* @param float $timeout [optional]
|
||||
* @return resource|false
|
||||
*/
|
||||
function pfsockopen ($hostname, $port = null, &$errno = null, &$errstr = null, $timeout = null) {}
|
||||
function pfsockopen ($hostname, $port = null, &$error_code = null, &$error_message = null, $timeout = null) {}
|
||||
|
||||
/**
|
||||
* Pack data into binary string
|
||||
|
@ -157,11 +157,11 @@ function pfsockopen ($hostname, $port = null, &$errno = null, &$errstr = null, $
|
|||
* </tr>
|
||||
* </table>
|
||||
* </p>
|
||||
* @param mixed ...$args [optional] <p>
|
||||
* @param mixed ...$values [optional] <p>
|
||||
* </p>
|
||||
* @return string|false a binary string containing data or false if the format string contains errors
|
||||
*/
|
||||
function pack ($format, ...$args) {}
|
||||
function pack ($format, ...$values) {}
|
||||
|
||||
/**
|
||||
* Unpack data from binary string
|
||||
|
@ -169,14 +169,14 @@ function pack ($format, ...$args) {}
|
|||
* @param string $format <p>
|
||||
* See pack for an explanation of the format codes.
|
||||
* </p>
|
||||
* @param string $data <p>
|
||||
* @param string $string <p>
|
||||
* The packed data.
|
||||
* </p>
|
||||
* @param int $offset [optional]
|
||||
* @return array|false an associative array containing unpacked elements of binary
|
||||
* string or false if the format string contains errors
|
||||
*/
|
||||
function unpack ($format, $data, $offset = 0) {}
|
||||
function unpack ($format, $string, $offset = 0) {}
|
||||
|
||||
/**
|
||||
* Tells what the user's browser is capable of
|
||||
|
@ -210,7 +210,7 @@ function get_browser ($user_agent = null, $return_array = null) {}
|
|||
/**
|
||||
* One-way string encryption (hashing)
|
||||
* @link https://php.net/manual/en/function.crypt.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The string to be encrypted.
|
||||
* </p>
|
||||
* @param string $salt [optional] <p>
|
||||
|
@ -225,12 +225,12 @@ function get_browser ($user_agent = null, $return_array = null) {}
|
|||
* </p>
|
||||
* @return string|null the encrypted string or <b>NULL</b> if an error occurs
|
||||
*/
|
||||
function crypt ($str, $salt = null) {}
|
||||
function crypt ($string, $salt = null) {}
|
||||
|
||||
/**
|
||||
* Open directory handle
|
||||
* @link https://php.net/manual/en/function.opendir.php
|
||||
* @param string $path <p>
|
||||
* @param string $directory <p>
|
||||
* The directory path that is to be opened
|
||||
* </p>
|
||||
* @param resource $context [optional] <p>
|
||||
|
@ -251,7 +251,7 @@ function crypt ($str, $salt = null) {}
|
|||
* '@' to the
|
||||
* front of the function name.
|
||||
*/
|
||||
function opendir ($path, $context = null) {}
|
||||
function opendir ($directory, $context = null) {}
|
||||
|
||||
/**
|
||||
* Close directory handle
|
||||
|
@ -347,7 +347,7 @@ function dir ($directory, $context = null) {}
|
|||
* @return Directory|false
|
||||
* @see dir()
|
||||
*/
|
||||
function getdir(string $path, $context = null) {}
|
||||
function getdir(string $directory, $context = null) {}
|
||||
|
||||
/**
|
||||
* List files and directories inside the specified path
|
||||
|
@ -813,7 +813,7 @@ function chmod ($filename, $mode) {}
|
|||
* @param string $filename <p>
|
||||
* The name of the file being touched.
|
||||
* </p>
|
||||
* @param int $time [optional] <p>
|
||||
* @param int $mtime [optional] <p>
|
||||
* The touch time. If time is not supplied,
|
||||
* the current system time is used.
|
||||
* </p>
|
||||
|
@ -824,7 +824,7 @@ function chmod ($filename, $mode) {}
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function touch ($filename, $time = null, $atime = null) {}
|
||||
function touch ($filename, $mtime = null, $atime = null) {}
|
||||
|
||||
/**
|
||||
* Clears file status cache
|
||||
|
@ -942,7 +942,7 @@ function diskfreespace ($directory) {}
|
|||
* This should be a last resort, as it does not comply with
|
||||
* RFC 2822.
|
||||
* </p>
|
||||
* @param string $additional_parameters [optional] <p>
|
||||
* @param string $additional_params [optional] <p>
|
||||
* The additional_parameters parameter
|
||||
* can be used to pass additional flags as command line options to the
|
||||
* program configured to be used when sending mail, as defined by the
|
||||
|
@ -962,7 +962,7 @@ function diskfreespace ($directory) {}
|
|||
* It is important to note that just because the mail was accepted for delivery,
|
||||
* it does NOT mean the mail will actually reach the intended destination.
|
||||
*/
|
||||
function mail ($to, $subject, $message, $additional_headers = null, $additional_parameters = null) {}
|
||||
function mail ($to, $subject, $message, $additional_headers = null, $additional_params = null) {}
|
||||
|
||||
/**
|
||||
* Calculate the hash value needed by EZMLM
|
||||
|
@ -979,10 +979,10 @@ function ezmlm_hash ($addr) {}
|
|||
/**
|
||||
* Open connection to system logger
|
||||
* @link https://php.net/manual/en/function.openlog.php
|
||||
* @param string $ident <p>
|
||||
* @param string $prefix <p>
|
||||
* The string ident is added to each message.
|
||||
* </p>
|
||||
* @param int $option <p>
|
||||
* @param int $flags <p>
|
||||
* The option argument is used to indicate
|
||||
* what logging options will be used when generating a log message.
|
||||
* <table>
|
||||
|
@ -1096,6 +1096,6 @@ function ezmlm_hash ($addr) {}
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function openlog ($ident, $option, $facility) {}
|
||||
function openlog ($prefix, $flags, $facility) {}
|
||||
|
||||
?>
|
||||
|
|
|
@ -78,8 +78,8 @@ function header_register_callback ( callable $callback ) {}
|
|||
* PHP > 5.4.0<br/>
|
||||
* Get the size of an image from a string.
|
||||
* @link https://secure.php.net/manual/en/function.getimagesizefromstring.php
|
||||
* @param string $imagedata The image data, as a string.
|
||||
* @param array &$imageinfo This optional parameter allows you to extract<br>
|
||||
* @param string $string The image data, as a string.
|
||||
* @param array &$image_info This optional parameter allows you to extract<br>
|
||||
* some extended information from the image file. Currently, this will <br>
|
||||
* return the different JPG APP markers as an associative array. <br>
|
||||
* Some programs use these APP markers to embed text information in images. <br>
|
||||
|
@ -92,18 +92,18 @@ function header_register_callback ( callable $callback ) {}
|
|||
* that can be used directly in an IMG tag.<br>
|
||||
* On failure, FALSE is returned.
|
||||
*/
|
||||
function getimagesizefromstring ($imagedata , array &$imageinfo = null) {}
|
||||
function getimagesizefromstring ($string , array &$image_info = null) {}
|
||||
|
||||
/**
|
||||
* PHP > 5.4.0<br/>
|
||||
* Set the stream chunk size.
|
||||
* @link https://secure.php.net/manual/en/function.stream-set-chunk-size.php
|
||||
* @param resource $fp The target stream.
|
||||
* @param int $chunk_size The desired new chunk size.
|
||||
* @param resource $stream The target stream.
|
||||
* @param int $size The desired new chunk size.
|
||||
* @return int|false Returns the previous chunk size on success.<br>
|
||||
* Will return <b>FALSE</b> if chunk_size is less than 1 or greater than <b>PHP_INT_MAX</b>.
|
||||
*/
|
||||
function stream_set_chunk_size ($fp , $chunk_size) {}
|
||||
function stream_set_chunk_size ($stream , $size) {}
|
||||
|
||||
/**
|
||||
* Initializes all syslog related variables
|
||||
|
@ -124,21 +124,21 @@ function lcg_value () {}
|
|||
/**
|
||||
* Calculate the metaphone key of a string
|
||||
* @link https://php.net/manual/en/function.metaphone.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @param int $phonemes [optional] <p>
|
||||
* @param int $max_phonemes [optional] <p>
|
||||
* This parameter restricts the returned metaphone key to phonemes characters in length.
|
||||
* The default value of 0 means no restriction.
|
||||
* </p>
|
||||
* @return string|false the metaphone key as a string, or FALSE on failure
|
||||
*/
|
||||
function metaphone ($str, $phonemes = 0) {}
|
||||
function metaphone ($string, $max_phonemes = 0) {}
|
||||
|
||||
/**
|
||||
* Turn on output buffering
|
||||
* @link https://php.net/manual/en/function.ob-start.php
|
||||
* @param callback $output_callback [optional] <p>
|
||||
* @param callback $callback [optional] <p>
|
||||
* An optional output_callback function may be
|
||||
* specified. This function takes a string as a parameter and should
|
||||
* return a string. The function will be called when
|
||||
|
@ -200,7 +200,7 @@ function metaphone ($str, $phonemes = 0) {}
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function ob_start ($output_callback = null, $chunk_size = null, $flags = PHP_OUTPUT_HANDLER_STDFLAGS) {}
|
||||
function ob_start ($callback = null, $chunk_size = null, $flags = PHP_OUTPUT_HANDLER_STDFLAGS) {}
|
||||
|
||||
/**
|
||||
* Flush (send) the output buffer
|
||||
|
@ -347,12 +347,12 @@ function ob_get_contents () {}
|
|||
/**
|
||||
* Turn implicit flush on/off
|
||||
* @link https://php.net/manual/en/function.ob-implicit-flush.php
|
||||
* @param int $flag [optional] <p>
|
||||
* @param int $enable [optional] <p>
|
||||
* 1 to turn implicit flushing on, 0 otherwise.
|
||||
* </p>
|
||||
* @return void
|
||||
*/
|
||||
function ob_implicit_flush ($flag = 1) {}
|
||||
function ob_implicit_flush ($enable = 1) {}
|
||||
|
||||
/**
|
||||
* List all output handlers in use
|
||||
|
@ -371,14 +371,14 @@ function ob_list_handlers () {}
|
|||
* @param array &$array <p>
|
||||
* The input array.
|
||||
* </p>
|
||||
* @param int $sort_flags [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* You may modify the behavior of the sort using the optional
|
||||
* parameter sort_flags, for details
|
||||
* see sort.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function ksort (array &$array, $sort_flags = null) {}
|
||||
function ksort (array &$array, $flags = null) {}
|
||||
|
||||
/**
|
||||
* Sort an array by key in reverse order
|
||||
|
@ -386,14 +386,14 @@ function ksort (array &$array, $sort_flags = null) {}
|
|||
* @param array &$array <p>
|
||||
* The input array.
|
||||
* </p>
|
||||
* @param int $sort_flags [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* You may modify the behavior of the sort using the optional parameter
|
||||
* sort_flags, for details see
|
||||
* sort.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function krsort (array &$array, $sort_flags = null) {}
|
||||
function krsort (array &$array, $flags = null) {}
|
||||
|
||||
/**
|
||||
* Sort an array using a "natural order" algorithm
|
||||
|
@ -421,14 +421,14 @@ function natcasesort (array &$array) {}
|
|||
* @param array &$array <p>
|
||||
* The input array.
|
||||
* </p>
|
||||
* @param int $sort_flags [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* You may modify the behavior of the sort using the optional
|
||||
* parameter sort_flags, for details
|
||||
* see sort.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function asort (array &$array, $sort_flags = null) {}
|
||||
function asort (array &$array, $flags = null) {}
|
||||
|
||||
/**
|
||||
* Sort an array in reverse order and maintain index association
|
||||
|
@ -436,14 +436,14 @@ function asort (array &$array, $sort_flags = null) {}
|
|||
* @param array &$array <p>
|
||||
* The input array.
|
||||
* </p>
|
||||
* @param int $sort_flags [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* You may modify the behavior of the sort using the optional parameter
|
||||
* sort_flags, for details see
|
||||
* sort.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function arsort (array &$array, $sort_flags = null) {}
|
||||
function arsort (array &$array, $flags = null) {}
|
||||
|
||||
/**
|
||||
* Sort an array
|
||||
|
@ -451,7 +451,7 @@ function arsort (array &$array, $sort_flags = null) {}
|
|||
* @param array &$array <p>
|
||||
* The input array.
|
||||
* </p>
|
||||
* @param int $sort_flags [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* The optional second parameter sort_flags
|
||||
* may be used to modify the sorting behavior using these values:
|
||||
* </p>
|
||||
|
@ -461,7 +461,7 @@ function arsort (array &$array, $sort_flags = null) {}
|
|||
* (don't change types)
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function sort (array &$array, $sort_flags = null) {}
|
||||
function sort (array &$array, $flags = null) {}
|
||||
|
||||
/**
|
||||
* Sort an array in reverse order
|
||||
|
@ -469,14 +469,14 @@ function sort (array &$array, $sort_flags = null) {}
|
|||
* @param array &$array <p>
|
||||
* The input array.
|
||||
* </p>
|
||||
* @param int $sort_flags [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* You may modify the behavior of the sort using the optional
|
||||
* parameter sort_flags, for details see
|
||||
* sort.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function rsort (array &$array, $sort_flags = null) {}
|
||||
function rsort (array &$array, $flags = null) {}
|
||||
|
||||
/**
|
||||
* Sort an array by values using a user-defined comparison function
|
||||
|
@ -484,14 +484,14 @@ function rsort (array &$array, $sort_flags = null) {}
|
|||
* @param array &$array <p>
|
||||
* The input array.
|
||||
* </p>
|
||||
* @param callback $cmp_function <p>
|
||||
* @param callback $callback <p>
|
||||
* The comparison function must return an integer less than, equal to, or
|
||||
* greater than zero if the first argument is considered to be
|
||||
* respectively less than, equal to, or greater than the second.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function usort (array &$array, $cmp_function) {}
|
||||
function usort (array &$array, $callback) {}
|
||||
|
||||
/**
|
||||
* Sort an array with a user-defined comparison function and maintain index association
|
||||
|
@ -499,13 +499,13 @@ function usort (array &$array, $cmp_function) {}
|
|||
* @param array &$array <p>
|
||||
* The input array.
|
||||
* </p>
|
||||
* @param callback $cmp_function <p>
|
||||
* @param callback $callback <p>
|
||||
* See usort and uksort for
|
||||
* examples of user-defined comparison functions.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function uasort (array &$array, $cmp_function) {}
|
||||
function uasort (array &$array, $callback) {}
|
||||
|
||||
/**
|
||||
* Sort an array by keys using a user-defined comparison function
|
||||
|
@ -513,7 +513,7 @@ function uasort (array &$array, $cmp_function) {}
|
|||
* @param array &$array <p>
|
||||
* The input array.
|
||||
* </p>
|
||||
* @param callback $cmp_function <p>
|
||||
* @param callback $callback <p>
|
||||
* The callback comparison function.
|
||||
* </p>
|
||||
* <p>
|
||||
|
@ -526,7 +526,7 @@ function uasort (array &$array, $cmp_function) {}
|
|||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function uksort (array &$array, $cmp_function) {}
|
||||
function uksort (array &$array, $callback) {}
|
||||
|
||||
/**
|
||||
* Shuffle an array
|
||||
|
@ -544,7 +544,7 @@ function shuffle (array &$array) {}
|
|||
* @param array|ArrayObject &$array <p>
|
||||
* The input array.
|
||||
* </p>
|
||||
* @param callback $funcname <p>
|
||||
* @param callback $callback <p>
|
||||
* Typically, funcname takes on two parameters.
|
||||
* The array parameter's value being the first, and
|
||||
* the key/index second.
|
||||
|
@ -563,22 +563,22 @@ function shuffle (array &$array) {}
|
|||
* the array that array_walk is applied to is
|
||||
* changed, the behavior of this function is undefined, and unpredictable.
|
||||
* </p>
|
||||
* @param mixed $userdata [optional] <p>
|
||||
* @param mixed $arg [optional] <p>
|
||||
* If the optional userdata parameter is supplied,
|
||||
* it will be passed as the third parameter to the callback
|
||||
* funcname.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function array_walk (array &$array, $funcname, $userdata = null) {}
|
||||
function array_walk (array &$array, $callback, $arg = null) {}
|
||||
|
||||
/**
|
||||
* Apply a user function recursively to every member of an array
|
||||
* @link https://php.net/manual/en/function.array-walk-recursive.php
|
||||
* @param array|ArrayObject &$input <p>
|
||||
* @param array|ArrayObject &$array <p>
|
||||
* The input array.
|
||||
* </p>
|
||||
* @param callback $funcname <p>
|
||||
* @param callback $callback <p>
|
||||
* Typically, funcname takes on two parameters.
|
||||
* The input parameter's value being the first, and
|
||||
* the key/index second.
|
||||
|
@ -591,14 +591,14 @@ function array_walk (array &$array, $funcname, $userdata = null) {}
|
|||
* any changes made to those elements will be made in the
|
||||
* original array itself.
|
||||
* </p>
|
||||
* @param mixed $userdata [optional] <p>
|
||||
* @param mixed $arg [optional] <p>
|
||||
* If the optional userdata parameter is supplied,
|
||||
* it will be passed as the third parameter to the callback
|
||||
* funcname.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function array_walk_recursive (array &$input, $funcname, $userdata = null) {}
|
||||
function array_walk_recursive (array &$array, $callback, $arg = null) {}
|
||||
|
||||
/**
|
||||
* Counts all elements in an array, or something in an object.
|
||||
|
@ -606,7 +606,7 @@ function array_walk_recursive (array &$input, $funcname, $userdata = null) {}
|
|||
* The interface has exactly one method, {@see Countable::count()}, which returns the return value for the count() function.
|
||||
* Please see the {@see Array} section of the manual for a detailed explanation of how arrays are implemented and used in PHP.
|
||||
* @link https://php.net/manual/en/function.count.php
|
||||
* @param array|Countable $var The array or the object.
|
||||
* @param array|Countable $value The array or the object.
|
||||
* @param int $mode [optional] If the optional mode parameter is set to
|
||||
* COUNT_RECURSIVE (or 1), count
|
||||
* will recursively count the array. This is particularly useful for
|
||||
|
@ -627,7 +627,7 @@ function array_walk_recursive (array &$input, $funcname, $userdata = null) {}
|
|||
* but it may also return 0 for a variable that has been initialized with an
|
||||
* empty array. Use isset to test if a variable is set.
|
||||
*/
|
||||
function count ($var, $mode = COUNT_NORMAL) {}
|
||||
function count ($value, $mode = COUNT_NORMAL) {}
|
||||
|
||||
/**
|
||||
* Set the internal pointer of an array to its last element
|
||||
|
@ -712,26 +712,22 @@ function key (array $array) {}
|
|||
/**
|
||||
* Find lowest value
|
||||
* @link https://php.net/manual/en/function.min.php
|
||||
* @param array|mixed $value1 Array to look through or first value to compare
|
||||
* @param mixed $value2 [optional] second value to compare
|
||||
* </p>
|
||||
* @param array|mixed $value Array to look through or first value to compare
|
||||
* @param mixed ...$values [optional] any comparable value
|
||||
* @return mixed min returns the numerically lowest of the
|
||||
* parameter values.
|
||||
*/
|
||||
function min ($value1, $value2 = null, ...$values) {}
|
||||
function min ($value, ...$values) {}
|
||||
|
||||
/**
|
||||
* Find highest value
|
||||
* @link https://php.net/manual/en/function.max.php
|
||||
* @param array|mixed $value1 Array to look through or first value to compare
|
||||
* @param mixed $value2 [optional] second value to compare
|
||||
* </p>
|
||||
* @param array|mixed $value Array to look through or first value to compare
|
||||
* @param mixed ...$values [optional] any comparable value
|
||||
* @return mixed max returns the numerically highest of the
|
||||
* parameter values, either within a arg array or two arguments.
|
||||
*/
|
||||
function max ($value1, $value2 = null, ...$values) {}
|
||||
function max ($value, ...$values) {}
|
||||
|
||||
/**
|
||||
* Checks if a value exists in an array
|
||||
|
@ -790,7 +786,7 @@ function array_search ($needle, array $haystack, $strict = null) {}
|
|||
/**
|
||||
* Import variables into the current symbol table from an array
|
||||
* @link https://php.net/manual/en/function.extract.php
|
||||
* @param array $var_array<p>
|
||||
* @param array $array<p>
|
||||
* Note that prefix is only required if
|
||||
* extract_type is EXTR_PREFIX_SAME,
|
||||
* EXTR_PREFIX_ALL, EXTR_PREFIX_INVALID
|
||||
|
@ -799,7 +795,7 @@ function array_search ($needle, array $haystack, $strict = null) {}
|
|||
* imported into the symbol table. Prefixes are automatically separated from
|
||||
* the array key by an underscore character.
|
||||
* </p>
|
||||
* @param int $extract_type [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* The way invalid/numeric keys and collisions are treated is determined
|
||||
* by the extract_type. It can be one of the
|
||||
* following values:
|
||||
|
@ -813,22 +809,22 @@ function array_search ($needle, array $haystack, $strict = null) {}
|
|||
* @return int the number of variables successfully imported into the symbol
|
||||
* table.
|
||||
*/
|
||||
function extract (array $var_array, $extract_type = null, $prefix = null) {}
|
||||
function extract (array $array, $flags = null, $prefix = null) {}
|
||||
|
||||
/**
|
||||
* Create array containing variables and their values
|
||||
* @link https://php.net/manual/en/function.compact.php
|
||||
* @param mixed $varname <p>
|
||||
* @param mixed $var_name <p>
|
||||
* compact takes a variable number of parameters.
|
||||
* Each parameter can be either a string containing the name of the
|
||||
* variable, or an array of variable names. The array can contain other
|
||||
* arrays of variable names inside it; compact
|
||||
* handles it recursively.
|
||||
* </p>
|
||||
* @param mixed ...$_ [optional]
|
||||
* @param mixed ...$var_names [optional]
|
||||
* @return array the output array with all the variables added to it.
|
||||
*/
|
||||
function compact ($varname, ...$_) {}
|
||||
function compact ($var_name, ...$var_names) {}
|
||||
|
||||
/**
|
||||
* Fill an array with values
|
||||
|
@ -837,7 +833,7 @@ function compact ($varname, ...$_) {}
|
|||
* The first index of the returned array.
|
||||
* Supports non-negative indexes only.
|
||||
* </p>
|
||||
* @param int $num <p>
|
||||
* @param int $count <p>
|
||||
* Number of elements to insert
|
||||
* </p>
|
||||
* @param mixed $value <p>
|
||||
|
@ -845,7 +841,7 @@ function compact ($varname, ...$_) {}
|
|||
* </p>
|
||||
* @return array the filled array
|
||||
*/
|
||||
function array_fill ($start_index, $num, $value) {}
|
||||
function array_fill ($start_index, $count, $value) {}
|
||||
|
||||
/**
|
||||
* Fill an array with values, specifying keys
|
||||
|
@ -884,17 +880,17 @@ function range ($start, $end, $step = 1) {}
|
|||
/**
|
||||
* Sort multiple or multi-dimensional arrays
|
||||
* @link https://php.net/manual/en/function.array-multisort.php
|
||||
* @param array &$array1 <p>
|
||||
* @param array &$array <p>
|
||||
* An array being sorted.
|
||||
* </p>
|
||||
* @param array|int &...$rest [optional] <p>
|
||||
* @param &...$rest [optional] <p>
|
||||
* More arrays, optionally followed by sort order and flags.
|
||||
* Only elements corresponding to equivalent elements in previous arrays are compared.
|
||||
* In other words, the sort is lexicographical.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function array_multisort (array &$array1, &...$rest) {}
|
||||
function array_multisort (array &$array, &...$rest) {}
|
||||
|
||||
/**
|
||||
* Push elements onto the end of array
|
||||
|
@ -904,12 +900,12 @@ function array_multisort (array &$array1, &...$rest) {}
|
|||
* @param array &$array <p>
|
||||
* The input array.
|
||||
* </p>
|
||||
* @param mixed ...$vars [optional] <p>
|
||||
* @param mixed ...$values [optional] <p>
|
||||
* The pushed variables.
|
||||
* </p>
|
||||
* @return int the number of elements in the array.
|
||||
*/
|
||||
function array_push (array &$array, ...$vars) {}
|
||||
function array_push (array &$array, ...$values) {}
|
||||
|
||||
/**
|
||||
* Pop the element off the end of array
|
||||
|
@ -944,17 +940,17 @@ function array_shift (array &$array) {}
|
|||
* @param array &$array <p>
|
||||
* The input array.
|
||||
* </p>
|
||||
* @param mixed ...$vars [optional] <p>
|
||||
* @param mixed ...$values [optional] <p>
|
||||
* The prepended variables.
|
||||
* </p>
|
||||
* @return int the number of elements in the array.
|
||||
*/
|
||||
function array_unshift (array &$array, ...$vars) {}
|
||||
function array_unshift (array &$array, ...$values) {}
|
||||
|
||||
/**
|
||||
* Remove a portion of the array and replace it with something else
|
||||
* @link https://php.net/manual/en/function.array-splice.php
|
||||
* @param array &$input <p>
|
||||
* @param array &$array <p>
|
||||
* The input array.
|
||||
* </p>
|
||||
* @param int $offset <p>
|
||||
|
@ -995,7 +991,7 @@ function array_unshift (array &$array, ...$vars) {}
|
|||
* </p>
|
||||
* @return array the array consisting of the extracted elements.
|
||||
*/
|
||||
function array_splice (array &$input, $offset, $length = null, $replacement = null) {}
|
||||
function array_splice (array &$array, $offset, $length = null, $replacement = null) {}
|
||||
|
||||
/**
|
||||
* Extract a slice of the array
|
||||
|
|
|
@ -31,12 +31,12 @@ function array_merge_recursive(array ...$arrays) { }
|
|||
* @param array $array <p>
|
||||
* The array in which elements are replaced.
|
||||
* </p>
|
||||
* @param array ...$arrays <p>
|
||||
* @param array ...$replacements <p>
|
||||
* The array from which elements will be extracted.
|
||||
* </p>
|
||||
* @return array or null if an error occurs.
|
||||
*/
|
||||
function array_replace(array $array, array ...$arrays) { }
|
||||
function array_replace(array $array, array ...$replacements) { }
|
||||
|
||||
/**
|
||||
* Replaces elements from passed arrays into the first array recursively
|
||||
|
@ -44,20 +44,20 @@ function array_replace(array $array, array ...$arrays) { }
|
|||
* @param array $array <p>
|
||||
* The array in which elements are replaced.
|
||||
* </p>
|
||||
* @param array ...$arrays <p>
|
||||
* @param array ...$replacements <p>
|
||||
* The array from which elements will be extracted.
|
||||
* </p>
|
||||
* @return array|null an array, or null if an error occurs.
|
||||
*/
|
||||
function array_replace_recursive(array $array, array ...$arrays) { }
|
||||
function array_replace_recursive(array $array, array ...$replacements) { }
|
||||
|
||||
/**
|
||||
* Return all the keys of an array
|
||||
* @link https://php.net/manual/en/function.array-keys.php
|
||||
* @param array $input <p>
|
||||
* @param array $array <p>
|
||||
* An array containing keys to return.
|
||||
* </p>
|
||||
* @param mixed $search_value [optional] <p>
|
||||
* @param mixed $filter_value [optional] <p>
|
||||
* If specified, then only keys containing these values are returned.
|
||||
* </p>
|
||||
* @param bool $strict [optional] <p>
|
||||
|
@ -65,41 +65,41 @@ function array_replace_recursive(array $array, array ...$arrays) { }
|
|||
* </p>
|
||||
* @return array an array of all the keys in input.
|
||||
*/
|
||||
function array_keys(array $input, $search_value = null, $strict = null) { }
|
||||
function array_keys(array $array, $filter_value = null, $strict = null) { }
|
||||
|
||||
/**
|
||||
* Return all the values of an array
|
||||
* @link https://php.net/manual/en/function.array-values.php
|
||||
* @param array $input <p>
|
||||
* @param array $array <p>
|
||||
* The array.
|
||||
* </p>
|
||||
* @return array an indexed array of values.
|
||||
* @meta
|
||||
*/
|
||||
function array_values(array $input) { }
|
||||
function array_values(array $array) { }
|
||||
|
||||
/**
|
||||
* Counts all the values of an array
|
||||
* @link https://php.net/manual/en/function.array-count-values.php
|
||||
* @param array $input <p>
|
||||
* @param array $array <p>
|
||||
* The array of values to count
|
||||
* </p>
|
||||
* @return array an associative array of values from input as
|
||||
* keys and their count as value.
|
||||
*/
|
||||
function array_count_values(array $input) { }
|
||||
function array_count_values(array $array) { }
|
||||
|
||||
/**
|
||||
* (PHP 5 >=5.5.0)<br/>
|
||||
* Return the values from a single column in the input array
|
||||
* @link https://secure.php.net/manual/en/function.array-column.php
|
||||
* @param array $array <p>A multi-dimensional array (record set) from which to pull a column of values.</p>
|
||||
* @param mixed $column <p>The column of values to return. This value may be the integer key of the column you wish to retrieve, or it may be the string key name for an associative array. It may also be NULL to return complete arrays (useful together with index_key to reindex the array).</p>
|
||||
* @param mixed $column_key <p>The column of values to return. This value may be the integer key of the column you wish to retrieve, or it may be the string key name for an associative array. It may also be NULL to return complete arrays (useful together with index_key to reindex the array).</p>
|
||||
* @param mixed $index_key [optional] <p>The column to use as the index/keys for the returned array. This value may be the integer key of the column, or it may be the string key name.</p>
|
||||
* @return array Returns an array of values representing a single column from the input array.
|
||||
* @since 5.5
|
||||
*/
|
||||
function array_column(array $array, $column, $index_key = null) { }
|
||||
function array_column(array $array, $column_key, $index_key = null) { }
|
||||
|
||||
/**
|
||||
* Return an array with elements in reverse order
|
||||
|
@ -118,10 +118,10 @@ function array_reverse(array $array, $preserve_keys = null) { }
|
|||
/**
|
||||
* Iteratively reduce the array to a single value using a callback function
|
||||
* @link https://php.net/manual/en/function.array-reduce.php
|
||||
* @param array $input <p>
|
||||
* @param array $array <p>
|
||||
* The input array.
|
||||
* </p>
|
||||
* @param callback $function <p>
|
||||
* @param callback $callback <p>
|
||||
* The callback function. Signature is <pre>callback ( mixed $carry , mixed $item ) : mixed</pre>
|
||||
* <blockquote>mixed <var>$carry</var> <p>The return value of the previous iteration; on the first iteration it holds the value of <var>$initial</var>.</p></blockquote>
|
||||
* <blockquote>mixed <var>$item</var> <p>Holds the current iteration value of the <var>$input</var></p></blockquote>
|
||||
|
@ -145,18 +145,18 @@ function array_reverse(array $array, $preserve_keys = null) { }
|
|||
* <br/>
|
||||
* @meta
|
||||
*/
|
||||
function array_reduce(array $input, $function, $initial = null) { }
|
||||
function array_reduce(array $array, $callback, $initial = null) { }
|
||||
|
||||
/**
|
||||
* Pad array to the specified length with a value
|
||||
* @link https://php.net/manual/en/function.array-pad.php
|
||||
* @param array $input <p>
|
||||
* @param array $array <p>
|
||||
* Initial array of values to pad.
|
||||
* </p>
|
||||
* @param int $pad_size <p>
|
||||
* @param int $length <p>
|
||||
* New size of the array.
|
||||
* </p>
|
||||
* @param mixed $pad_value <p>
|
||||
* @param mixed $value <p>
|
||||
* Value to pad if input is less than
|
||||
* pad_size.
|
||||
* </p>
|
||||
|
@ -167,7 +167,7 @@ function array_reduce(array $input, $function, $initial = null) { }
|
|||
* on the left. If the absolute value of pad_size is less than or equal to
|
||||
* the length of the input then no padding takes place.
|
||||
*/
|
||||
function array_pad(array $input, $pad_size, $pad_value) { }
|
||||
function array_pad(array $array, $length, $value) { }
|
||||
|
||||
/**
|
||||
* Exchanges all keys with their associated values in an array
|
||||
|
@ -182,7 +182,7 @@ function array_flip(array $array) { }
|
|||
/**
|
||||
* Changes all keys in an array
|
||||
* @link https://php.net/manual/en/function.array-change-key-case.php
|
||||
* @param array $input <p>
|
||||
* @param array $array <p>
|
||||
* The array to work on
|
||||
* </p>
|
||||
* @param int $case [optional] <p>
|
||||
|
@ -192,15 +192,15 @@ function array_flip(array $array) { }
|
|||
* @return array an array with its keys lower or uppercased
|
||||
* @meta
|
||||
*/
|
||||
function array_change_key_case(array $input, $case = null) { }
|
||||
function array_change_key_case(array $array, $case = null) { }
|
||||
|
||||
/**
|
||||
* Pick one or more random entries out of an array
|
||||
* @link https://php.net/manual/en/function.array-rand.php
|
||||
* @param array $input <p>
|
||||
* @param array $array <p>
|
||||
* The input array.
|
||||
* </p>
|
||||
* @param int $num_req [optional] <p>
|
||||
* @param int $num [optional] <p>
|
||||
* Specifies how many entries you want to pick.
|
||||
* </p>
|
||||
* @return int|string|array If you are picking only one entry, array_rand
|
||||
|
@ -208,7 +208,7 @@ function array_change_key_case(array $input, $case = null) { }
|
|||
* of keys for the random entries. This is done so that you can pick
|
||||
* random keys as well as values out of the array.
|
||||
*/
|
||||
function array_rand(array $input, $num_req = null) { }
|
||||
function array_rand(array $array, $num = null) { }
|
||||
|
||||
/**
|
||||
* Removes duplicate values from an array
|
||||
|
@ -216,7 +216,7 @@ function array_rand(array $input, $num_req = null) { }
|
|||
* @param array $array <p>
|
||||
* The input array.
|
||||
* </p>
|
||||
* @param int $sort_flags [optional] <p>
|
||||
* @param int $flags [optional] <p>
|
||||
* The optional second parameter sort_flags
|
||||
* may be used to modify the sorting behavior using these values:
|
||||
* </p>
|
||||
|
@ -241,7 +241,7 @@ function array_rand(array $input, $num_req = null) { }
|
|||
* @return array the filtered array.
|
||||
* @meta
|
||||
*/
|
||||
function array_unique(array $array, $sort_flags = SORT_STRING) { }
|
||||
function array_unique(array $array, $flags = SORT_STRING) { }
|
||||
|
||||
/**
|
||||
* Computes the intersection of arrays
|
||||
|
@ -620,7 +620,7 @@ function array_product(array $array) { }
|
|||
* current value from <b>array</b> is returned into
|
||||
* the result array. Array keys are preserved.
|
||||
* @link https://php.net/manual/en/function.array-filter.php
|
||||
* @param array $input <p>
|
||||
* @param array $array <p>
|
||||
* The array to iterate over
|
||||
* </p>
|
||||
* @param callback $callback [optional] <p>
|
||||
|
@ -632,7 +632,7 @@ function array_product(array $array) { }
|
|||
* converting to
|
||||
* boolean) will be removed.
|
||||
* </p>
|
||||
* @param int $flag [optional] <p>
|
||||
* @param int $mode [optional] <p>
|
||||
* Flag determining what arguments are sent to <i>callback</i>:
|
||||
* </p><ul>
|
||||
* <li>
|
||||
|
@ -647,7 +647,7 @@ function array_product(array $array) { }
|
|||
* @return array the filtered array.
|
||||
* @meta
|
||||
*/
|
||||
function array_filter(array $input, $callback = null, $flag = 0) { }
|
||||
function array_filter(array $array, $callback = null, $mode = 0) { }
|
||||
|
||||
/**
|
||||
* Applies the callback to the elements of the given arrays
|
||||
|
@ -655,23 +655,23 @@ function array_filter(array $input, $callback = null, $flag = 0) { }
|
|||
* @param callback $callback <p>
|
||||
* Callback function to run for each element in each array.
|
||||
* </p>
|
||||
* @param array $arr1 <p>
|
||||
* @param array $array <p>
|
||||
* An array to run through the callback function.
|
||||
* </p>
|
||||
* @param array ...$_ [optional]
|
||||
* @param array ...$arrays [optional]
|
||||
* @return array an array containing all the elements of arr1
|
||||
* after applying the callback function to each one.
|
||||
* @meta
|
||||
*/
|
||||
function array_map($callback, array $arr1, array ...$_) { }
|
||||
function array_map($callback, array $array, array ...$arrays) { }
|
||||
|
||||
/**
|
||||
* Split an array into chunks
|
||||
* @link https://php.net/manual/en/function.array-chunk.php
|
||||
* @param array $input <p>
|
||||
* @param array $array <p>
|
||||
* The array to work on
|
||||
* </p>
|
||||
* @param int $size <p>
|
||||
* @param int $length <p>
|
||||
* The size of each chunk
|
||||
* </p>
|
||||
* @param bool $preserve_keys [optional] <p>
|
||||
|
@ -681,7 +681,7 @@ function array_map($callback, array $arr1, array ...$_) { }
|
|||
* @return array a multidimensional numerically indexed array, starting with zero,
|
||||
* with each dimension containing size elements.
|
||||
*/
|
||||
function array_chunk(array $input, $size, $preserve_keys = null) { }
|
||||
function array_chunk(array $array, $length, $preserve_keys = null) { }
|
||||
|
||||
/**
|
||||
* Creates an array by using one array for keys and another for its values
|
||||
|
@ -705,12 +705,12 @@ function array_combine(array $keys, array $values) { }
|
|||
* @param mixed $key <p>
|
||||
* Value to check.
|
||||
* </p>
|
||||
* @param array|ArrayObject $search <p>
|
||||
* @param array|ArrayObject $array <p>
|
||||
* An array with keys to check.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function array_key_exists($key, array $search) { }
|
||||
function array_key_exists($key, array $array) { }
|
||||
|
||||
/**
|
||||
* Gets the first key of an array
|
||||
|
@ -739,19 +739,19 @@ function array_key_last(array $array) { }
|
|||
/**
|
||||
* &Alias; <function>current</function>
|
||||
* @link https://php.net/manual/en/function.pos.php
|
||||
* @param array $arg
|
||||
* @param array $array
|
||||
* @return mixed
|
||||
*/
|
||||
function pos($arg) { }
|
||||
function pos($array) { }
|
||||
|
||||
/**
|
||||
* &Alias; <function>count</function>
|
||||
* @link https://php.net/manual/en/function.sizeof.php
|
||||
* @param array|Countable $var
|
||||
* @param array|Countable $value
|
||||
* @param int $mode [optional]
|
||||
* @return int
|
||||
*/
|
||||
function sizeof($var, $mode = COUNT_NORMAL) { }
|
||||
function sizeof($value, $mode = COUNT_NORMAL) { }
|
||||
|
||||
/**
|
||||
* Checks if the given key or index exists in the array. The name of this function is array_key_exists() in PHP > 4.0.6.
|
||||
|
@ -759,12 +759,12 @@ function sizeof($var, $mode = COUNT_NORMAL) { }
|
|||
* @param mixed $key <p>
|
||||
* Value to check.
|
||||
* </p>
|
||||
* @param array $search <p>
|
||||
* @param array $array <p>
|
||||
* An array with keys to check.
|
||||
* </p>
|
||||
* @return bool true on success or false on failure.
|
||||
*/
|
||||
function key_exists($key, $search) { }
|
||||
function key_exists($key, $array) { }
|
||||
|
||||
/**
|
||||
* Checks if assertion is &false;
|
||||
|
@ -794,7 +794,7 @@ class AssertionError extends Error {
|
|||
/**
|
||||
* Set/get the various assert flags
|
||||
* @link https://php.net/manual/en/function.assert-options.php
|
||||
* @param int $what <p>
|
||||
* @param int $option <p>
|
||||
* <table>
|
||||
* Assert Options
|
||||
* <tr valign="top">
|
||||
|
@ -843,7 +843,7 @@ class AssertionError extends Error {
|
|||
* </p>
|
||||
* @return mixed|false the original setting of any option or false on errors.
|
||||
*/
|
||||
function assert_options($what, $value = null) { }
|
||||
function assert_options($option, $value = null) { }
|
||||
|
||||
/**
|
||||
* Compares two "PHP-standardized" version number strings
|
||||
|
@ -884,26 +884,26 @@ function version_compare($version1, $version2, $operator = null) { }
|
|||
/**
|
||||
* Convert a pathname and a project identifier to a System V IPC key
|
||||
* @link https://php.net/manual/en/function.ftok.php
|
||||
* @param string $pathname <p>
|
||||
* @param string $filename <p>
|
||||
* Path to an accessible file.
|
||||
* </p>
|
||||
* @param string $proj <p>
|
||||
* @param string $project_id <p>
|
||||
* Project identifier. This must be a one character string.
|
||||
* </p>
|
||||
* @return int On success the return value will be the created key value, otherwise
|
||||
* -1 is returned.
|
||||
*/
|
||||
function ftok($pathname, $proj) { }
|
||||
function ftok($filename, $project_id) { }
|
||||
|
||||
/**
|
||||
* Perform the rot13 transform on a string
|
||||
* @link https://php.net/manual/en/function.str-rot13.php
|
||||
* @param string $str <p>
|
||||
* @param string $string <p>
|
||||
* The input string.
|
||||
* </p>
|
||||
* @return string the ROT13 version of the given string.
|
||||
*/
|
||||
function str_rot13($str) { }
|
||||
function str_rot13($string) { }
|
||||
|
||||
/**
|
||||
* Retrieve list of registered filters
|
||||
|
@ -916,19 +916,19 @@ function stream_get_filters() { }
|
|||
/**
|
||||
* Check if a stream is a TTY
|
||||
* @link https://php.net/manual/en/function.stream-isatty.php
|
||||
* @param resource $name
|
||||
* @param resource $stream
|
||||
* @return bool
|
||||
* @since 7.2
|
||||
*/
|
||||
function stream_isatty($name) {}
|
||||
function stream_isatty($stream) {}
|
||||
|
||||
/**
|
||||
* Register a user defined stream filter
|
||||
* @link https://php.net/manual/en/function.stream-filter-register.php
|
||||
* @param string $filtername <p>
|
||||
* @param string $filter_name <p>
|
||||
* The filter name to be registered.
|
||||
* </p>
|
||||
* @param string $classname <p>
|
||||
* @param string $class <p>
|
||||
* To implement a filter, you need to define a class as an extension of
|
||||
* php_user_filter with a number of member functions
|
||||
* as defined below. When performing read/write operations on the stream
|
||||
|
@ -1036,7 +1036,7 @@ function stream_isatty($name) {}
|
|||
* stream_filter_register will return false if the
|
||||
* filtername is already defined.
|
||||
*/
|
||||
function stream_filter_register($filtername, $classname) { }
|
||||
function stream_filter_register($filter_name, $class) { }
|
||||
|
||||
/**
|
||||
* Return a bucket object from the brigade for operating on
|
||||
|
@ -1148,16 +1148,16 @@ function realpath_cache_size() { }
|
|||
* It returns the same result as (array) $object, with the
|
||||
* exception that it ignores overloaded array casts, such as used by
|
||||
* ArrayObject.
|
||||
* @param object $obj
|
||||
* @param object $object
|
||||
* @return array returns the mangled object properties
|
||||
* @since 7.4
|
||||
*/
|
||||
function get_mangled_object_vars($obj){}
|
||||
function get_mangled_object_vars($object){}
|
||||
|
||||
/**
|
||||
* Get the type or object name of a variable
|
||||
*
|
||||
* @param mixed $var The variable being type checked.
|
||||
* @param mixed $value The variable being type checked.
|
||||
* @return string Possibles values for the returned string are:
|
||||
* - "int"
|
||||
* - "float"
|
||||
|
@ -1171,7 +1171,7 @@ function get_mangled_object_vars($obj){}
|
|||
* - "resource (closed)" for closed resources
|
||||
* @since 8.0
|
||||
*/
|
||||
function get_debug_type(mixed $var): string {}
|
||||
function get_debug_type(mixed $value): string {}
|
||||
|
||||
/**
|
||||
* A more obvious and type-safe form of "(int) $resource"
|
||||
|
|
|
@ -1117,7 +1117,7 @@ define('PHP_QUERY_RFC3986', 2);
|
|||
|
||||
/**
|
||||
* Specifies where the manpages were installed into.
|
||||
* @since PHP 5.3.7
|
||||
* @since 5.3.7
|
||||
* @link https://php.net/manual/en/reserved.constants.php
|
||||
*/
|
||||
define('PHP_MANDIR', '/usr/local/php/php/man');
|
||||
|
|
|
@ -27,7 +27,7 @@ function sem_get ($key, $max_acquire = 1, $perm = 0666, $auto_release = 1) {}
|
|||
/**
|
||||
* Acquire a semaphore
|
||||
* @link https://php.net/manual/en/function.sem-acquire.php
|
||||
* @param resource $sem_identifier <p>
|
||||
* @param resource $semaphore <p>
|
||||
* <i>sem_identifier</i> is a semaphore resource,
|
||||
* obtained from <b>sem_get</b>.
|
||||
* </p>
|
||||
|
@ -38,29 +38,29 @@ function sem_get ($key, $max_acquire = 1, $perm = 0666, $auto_release = 1) {}
|
|||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function sem_acquire ($sem_identifier, $nowait = false) {}
|
||||
function sem_acquire ($semaphore, $nowait = false) {}
|
||||
|
||||
/**
|
||||
* Release a semaphore
|
||||
* @link https://php.net/manual/en/function.sem-release.php
|
||||
* @param resource $sem_identifier <p>
|
||||
* @param resource $semaphore <p>
|
||||
* A Semaphore resource handle as returned by
|
||||
* <b>sem_get</b>.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function sem_release ($sem_identifier) {}
|
||||
function sem_release ($semaphore) {}
|
||||
|
||||
/**
|
||||
* Remove a semaphore
|
||||
* @link https://php.net/manual/en/function.sem-remove.php
|
||||
* @param resource $sem_identifier <p>
|
||||
* @param resource $semaphore <p>
|
||||
* A semaphore resource identifier as returned
|
||||
* by <b>sem_get</b>.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function sem_remove ($sem_identifier) {}
|
||||
function sem_remove ($semaphore) {}
|
||||
|
||||
/**
|
||||
* @since 8.0
|
||||
|
|
|
@ -23,29 +23,29 @@ function shm_attach ($key, $memsize = null, $perm = 0666) {}
|
|||
/**
|
||||
* Removes shared memory from Unix systems
|
||||
* @link https://php.net/manual/en/function.shm-remove.php
|
||||
* @param resource $shm_identifier <p>
|
||||
* @param resource $shm <p>
|
||||
* The shared memory identifier as returned by
|
||||
* <b>shm_attach</b>
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function shm_remove ($shm_identifier) {}
|
||||
function shm_remove ($shm) {}
|
||||
|
||||
/**
|
||||
* Disconnects from shared memory segment
|
||||
* @link https://php.net/manual/en/function.shm-detach.php
|
||||
* @param resource $shm_identifier <p>
|
||||
* @param resource $shm <p>
|
||||
* A shared memory resource handle as returned by
|
||||
* <b>shm_attach</b>
|
||||
* </p>
|
||||
* @return bool <b>shm_detach</b> always returns <b>TRUE</b>.
|
||||
*/
|
||||
function shm_detach ($shm_identifier) {}
|
||||
function shm_detach ($shm) {}
|
||||
|
||||
/**
|
||||
* Inserts or updates a variable in shared memory
|
||||
* @link https://php.net/manual/en/function.shm-put-var.php
|
||||
* @param resource $shm_identifier <p>
|
||||
* @param resource $shm <p>
|
||||
* A shared memory resource handle as returned by
|
||||
* <b>shm_attach</b>
|
||||
* </p>
|
||||
|
@ -60,12 +60,12 @@ function shm_detach ($shm_identifier) {}
|
|||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function shm_put_var ($shm_identifier, $variable_key, $variable) {}
|
||||
function shm_put_var ($shm, $variable_key, $variable) {}
|
||||
|
||||
/**
|
||||
* Check whether a specific entry exists
|
||||
* @link https://php.net/manual/en/function.shm-has-var.php
|
||||
* @param resource $shm_identifier <p>
|
||||
* @param resource $shm <p>
|
||||
* Shared memory segment, obtained from <b>shm_attach</b>.
|
||||
* </p>
|
||||
* @param int $variable_key <p>
|
||||
|
@ -73,12 +73,12 @@ function shm_put_var ($shm_identifier, $variable_key, $variable) {}
|
|||
* </p>
|
||||
* @return bool <b>TRUE</b> if the entry exists, otherwise <b>FALSE</b>
|
||||
*/
|
||||
function shm_has_var ($shm_identifier, $variable_key) {}
|
||||
function shm_has_var ($shm, $variable_key) {}
|
||||
|
||||
/**
|
||||
* Returns a variable from shared memory
|
||||
* @link https://php.net/manual/en/function.shm-get-var.php
|
||||
* @param resource $shm_identifier <p>
|
||||
* @param resource $shm <p>
|
||||
* Shared memory segment, obtained from <b>shm_attach</b>.
|
||||
* </p>
|
||||
* @param int $variable_key <p>
|
||||
|
@ -86,12 +86,12 @@ function shm_has_var ($shm_identifier, $variable_key) {}
|
|||
* </p>
|
||||
* @return mixed the variable with the given key.
|
||||
*/
|
||||
function shm_get_var ($shm_identifier, $variable_key) {}
|
||||
function shm_get_var ($shm, $variable_key) {}
|
||||
|
||||
/**
|
||||
* Removes a variable from shared memory
|
||||
* @link https://php.net/manual/en/function.shm-remove-var.php
|
||||
* @param resource $shm_identifier <p>
|
||||
* @param resource $shm <p>
|
||||
* The shared memory identifier as returned by
|
||||
* <b>shm_attach</b>
|
||||
* </p>
|
||||
|
@ -100,7 +100,7 @@ function shm_get_var ($shm_identifier, $variable_key) {}
|
|||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function shm_remove_var ($shm_identifier, $variable_key) {}
|
||||
function shm_remove_var ($shm, $variable_key) {}
|
||||
|
||||
/**
|
||||
* @since 8.0
|
||||
|
|
|
@ -71,6 +71,9 @@ class PHPParameter extends BasePHPElement
|
|||
case 'has scalar typehint':
|
||||
$this->mutedProblems[] = StubProblemType::PARAMETER_HAS_SCALAR_TYPEHINT;
|
||||
break;
|
||||
case 'parameter name mismatch':
|
||||
$this->mutedProblems[] = StubProblemType::PARAMETER_NAME_MISMATCH;
|
||||
break;
|
||||
default:
|
||||
$this->mutedProblems[] = -1;
|
||||
break;
|
||||
|
|
|
@ -23,4 +23,5 @@ interface StubProblemType
|
|||
public const PROPERTY_TYPE = 15;
|
||||
public const PARAMETER_HAS_SCALAR_TYPEHINT = 16;
|
||||
public const FUNCTION_HAS_RETURN_TYPEHINT = 17;
|
||||
public const PARAMETER_NAME_MISMATCH = 18;
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@ use StubTests\Model\PHPDocElement;
|
|||
use StubTests\Model\PHPFunction;
|
||||
use StubTests\Model\PHPInterface;
|
||||
use StubTests\Model\PHPMethod;
|
||||
use StubTests\Model\PHPParameter;
|
||||
use StubTests\Model\StubProblemType;
|
||||
use StubTests\Model\Tags\RemovedTag;
|
||||
use StubTests\Parsers\Utils;
|
||||
|
@ -90,9 +91,28 @@ class StubsTest extends TestCase
|
|||
"Parameter number mismatch for function $functionName.
|
||||
Expected: " . self::getParameterRepresentation($function)
|
||||
);
|
||||
if ($phpstormFunction->stubBelongsToCore) {
|
||||
foreach ($function->parameters as $parameter) {
|
||||
if (!$parameter->hasMutedProblem(StubProblemType::PARAMETER_NAME_MISMATCH)){
|
||||
self::assertNotEmpty(array_filter($phpstormFunction->parameters,
|
||||
fn(PHPParameter $stubParameter) => $stubParameter->name === $parameter->name),
|
||||
"Function ${functionName} has signature $functionName(" . $this->printParameters($function->parameters) . ')' .
|
||||
"but stub function has signature $functionName(" . $this->printParameters($phpstormFunction->parameters) . ")");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function printParameters(array $params): string
|
||||
{
|
||||
$signature = '';
|
||||
foreach ($params as $param) {
|
||||
$signature .= '$' . $param->name . ', ';
|
||||
}
|
||||
return trim($signature, ", ");
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider \StubTests\TestData\Providers\ReflectionTestDataProviders::classProvider
|
||||
*/
|
||||
|
@ -309,7 +329,7 @@ class StubsTest extends TestCase
|
|||
self::markTestSkipped("Function '$methodName' contains inheritdoc.");
|
||||
} elseif ($stubFunction->parentName === "___PHPSTORM_HELPERS\object") {
|
||||
self::markTestSkipped("Function '$methodName' is declared in ___PHPSTORM_HELPERS\object.");
|
||||
} elseif ($stubFunction->name === "__construct"){
|
||||
} elseif ($stubFunction->name === "__construct") {
|
||||
$parentClass = PhpStormStubsSingleton::getPhpStormStubs()->getClass($stubFunction->parentName);
|
||||
if (!empty($parentClass->sinceTags)) {
|
||||
$sinceVersions = array_map(fn(Since $tag) => (int)$tag->getVersion(), $parentClass->sinceTags);
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
/**
|
||||
* Split given source into PHP tokens
|
||||
* @link https://php.net/manual/en/function.token-get-all.php
|
||||
* @param string $source <p>
|
||||
* @param string $code <p>
|
||||
* The PHP source to parse.
|
||||
* </p>
|
||||
* @param int $flags
|
||||
|
@ -26,17 +26,17 @@
|
|||
* or a three element array containing the token index in element 0, the string
|
||||
* content of the original token in element 1 and the line number in element 2.
|
||||
*/
|
||||
function token_get_all ($source, $flags = 0) {}
|
||||
function token_get_all ($code, $flags = 0) {}
|
||||
|
||||
/**
|
||||
* Get the symbolic name of a given PHP token
|
||||
* @link https://php.net/manual/en/function.token-name.php
|
||||
* @param int $token <p>
|
||||
* @param int $id <p>
|
||||
* The token value.
|
||||
* </p>
|
||||
* @return string The symbolic name of the given <i>token</i>.
|
||||
*/
|
||||
function token_name ($token) {}
|
||||
function token_name ($id) {}
|
||||
|
||||
define('TOKEN_PARSE', 1);
|
||||
define('T_REQUIRE_ONCE', 263);
|
||||
|
|
50
xml/xml.php
50
xml/xml.php
|
@ -36,14 +36,14 @@ function xml_parser_create ($encoding = null) {}
|
|||
* encodings are ISO-8859-1, UTF-8 and
|
||||
* US-ASCII.
|
||||
* </p>
|
||||
* @param string $separator [optional] <p>
|
||||
* @param string $sep [optional] <p>
|
||||
* With a namespace aware parser tag parameters passed to the various
|
||||
* handler functions will consist of namespace and tag name separated by
|
||||
* the string specified in <i>separator</i>.
|
||||
* </p>
|
||||
* @return resource|false|XmlParser a resource handle for the new XML parser.
|
||||
*/
|
||||
function xml_parser_create_ns ($encoding = null, $separator = ':') {}
|
||||
function xml_parser_create_ns ($encoding = null, $sep = ':') {}
|
||||
|
||||
/**
|
||||
* Use XML Parser within an object
|
||||
|
@ -51,12 +51,12 @@ function xml_parser_create_ns ($encoding = null, $separator = ':') {}
|
|||
* @param resource $parser <p>
|
||||
* A reference to the XML parser to use inside the object.
|
||||
* </p>
|
||||
* @param object &$object <p>
|
||||
* @param object &$obj <p>
|
||||
* The object where to use the XML parser.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function xml_set_object ($parser, &$object) {}
|
||||
function xml_set_object ($parser, &$obj) {}
|
||||
|
||||
/**
|
||||
* Set up start and end element handlers
|
||||
|
@ -64,7 +64,7 @@ function xml_set_object ($parser, &$object) {}
|
|||
* @param resource $parser <p>
|
||||
* A reference to the XML parser to set up start and end element handler functions.
|
||||
* </p>
|
||||
* @param callable $start_element_handler <p>
|
||||
* @param callable $shdl <p>
|
||||
* The function named by <i>start_element_handler</i>
|
||||
* must accept three parameters:
|
||||
* <b>start_element_handler</b>
|
||||
|
@ -74,7 +74,7 @@ function xml_set_object ($parser, &$object) {}
|
|||
* <i>parser</i>
|
||||
* The first parameter, parser, is a
|
||||
* reference to the XML parser calling the handler.
|
||||
* @param callable $end_element_handler <p>
|
||||
* @param callable $ehdl <p>
|
||||
* The function named by <i>end_element_handler</i>
|
||||
* must accept two parameters:
|
||||
* <b>end_element_handler</b>
|
||||
|
@ -85,7 +85,7 @@ function xml_set_object ($parser, &$object) {}
|
|||
* reference to the XML parser calling the handler.
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function xml_set_element_handler ($parser, callable $start_element_handler, callable $end_element_handler) {}
|
||||
function xml_set_element_handler ($parser, callable $shdl, callable $ehdl) {}
|
||||
|
||||
/**
|
||||
* Set up character data handler
|
||||
|
@ -93,7 +93,7 @@ function xml_set_element_handler ($parser, callable $start_element_handler, call
|
|||
* @param resource $parser <p>
|
||||
* A reference to the XML parser to set up character data handler function.
|
||||
* </p>
|
||||
* @param callable $handler <p>
|
||||
* @param callable $hdl <p>
|
||||
* <i>handler</i> is a string containing the name of a
|
||||
* function that must exist when <b>xml_parse</b> is called
|
||||
* for <i>parser</i>.
|
||||
|
@ -109,7 +109,7 @@ function xml_set_element_handler ($parser, callable $start_element_handler, call
|
|||
* reference to the XML parser calling the handler.
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function xml_set_character_data_handler ($parser, callable $handler) {}
|
||||
function xml_set_character_data_handler ($parser, callable $hdl) {}
|
||||
|
||||
/**
|
||||
* Set up processing instruction (PI) handler
|
||||
|
@ -117,7 +117,7 @@ function xml_set_character_data_handler ($parser, callable $handler) {}
|
|||
* @param resource $parser <p>
|
||||
* A reference to the XML parser to set up processing instruction (PI) handler function.
|
||||
* </p>
|
||||
* @param callable $handler <p>
|
||||
* @param callable $hdl <p>
|
||||
* <i>handler</i> is a string containing the name of a
|
||||
* function that must exist when <b>xml_parse</b> is called
|
||||
* for <i>parser</i>.
|
||||
|
@ -134,7 +134,7 @@ function xml_set_character_data_handler ($parser, callable $handler) {}
|
|||
* reference to the XML parser calling the handler.
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function xml_set_processing_instruction_handler ($parser, callable $handler) {}
|
||||
function xml_set_processing_instruction_handler ($parser, callable $hdl) {}
|
||||
|
||||
/**
|
||||
* Set up default handler
|
||||
|
@ -142,7 +142,7 @@ function xml_set_processing_instruction_handler ($parser, callable $handler) {}
|
|||
* @param resource $parser <p>
|
||||
* A reference to the XML parser to set up default handler function.
|
||||
* </p>
|
||||
* @param callable $handler <p>
|
||||
* @param callable $hdl <p>
|
||||
* <i>handler</i> is a string containing the name of a
|
||||
* function that must exist when <b>xml_parse</b> is called
|
||||
* for <i>parser</i>.
|
||||
|
@ -158,7 +158,7 @@ function xml_set_processing_instruction_handler ($parser, callable $handler) {}
|
|||
* reference to the XML parser calling the handler.
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function xml_set_default_handler ($parser, callable $handler) {}
|
||||
function xml_set_default_handler ($parser, callable $hdl) {}
|
||||
|
||||
/**
|
||||
* Set up unparsed entity declaration handler
|
||||
|
@ -166,7 +166,7 @@ function xml_set_default_handler ($parser, callable $handler) {}
|
|||
* @param resource $parser <p>
|
||||
* A reference to the XML parser to set up unparsed entity declaration handler function.
|
||||
* </p>
|
||||
* @param callable $handler <p>
|
||||
* @param callable $hdl <p>
|
||||
* <i>handler</i> is a string containing the name of a
|
||||
* function that must exist when <b>xml_parse</b> is called
|
||||
* for <i>parser</i>.
|
||||
|
@ -187,7 +187,7 @@ function xml_set_default_handler ($parser, callable $handler) {}
|
|||
* handler.
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function xml_set_unparsed_entity_decl_handler ($parser, callable $handler) {}
|
||||
function xml_set_unparsed_entity_decl_handler ($parser, callable $hdl) {}
|
||||
|
||||
/**
|
||||
* Set up notation declaration handler
|
||||
|
@ -195,7 +195,7 @@ function xml_set_unparsed_entity_decl_handler ($parser, callable $handler) {}
|
|||
* @param resource $parser <p>
|
||||
* A reference to the XML parser to set up notation declaration handler function.
|
||||
* </p>
|
||||
* @param callable $handler <p>
|
||||
* @param callable $hdl <p>
|
||||
* <i>handler</i> is a string containing the name of a
|
||||
* function that must exist when <b>xml_parse</b> is called
|
||||
* for <i>parser</i>.
|
||||
|
@ -214,7 +214,7 @@ function xml_set_unparsed_entity_decl_handler ($parser, callable $handler) {}
|
|||
* reference to the XML parser calling the handler.
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function xml_set_notation_decl_handler ($parser, callable $handler) {}
|
||||
function xml_set_notation_decl_handler ($parser, callable $hdl) {}
|
||||
|
||||
/**
|
||||
* Set up external entity reference handler
|
||||
|
@ -222,7 +222,7 @@ function xml_set_notation_decl_handler ($parser, callable $handler) {}
|
|||
* @param resource $parser <p>
|
||||
* A reference to the XML parser to set up external entity reference handler function.
|
||||
* </p>
|
||||
* @param callable $handler <p>
|
||||
* @param callable $hdl <p>
|
||||
* <i>handler</i> is a string containing the name of a
|
||||
* function that must exist when <b>xml_parse</b> is called
|
||||
* for <i>parser</i>.
|
||||
|
@ -245,7 +245,7 @@ function xml_set_notation_decl_handler ($parser, callable $handler) {}
|
|||
* reference to the XML parser calling the handler.
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function xml_set_external_entity_ref_handler ($parser, callable $handler) {}
|
||||
function xml_set_external_entity_ref_handler ($parser, callable $hdl) {}
|
||||
|
||||
/**
|
||||
* Set up start namespace declaration handler
|
||||
|
@ -253,7 +253,7 @@ function xml_set_external_entity_ref_handler ($parser, callable $handler) {}
|
|||
* @param resource $parser <p>
|
||||
* A reference to the XML parser.
|
||||
* </p>
|
||||
* @param callable $handler <p>
|
||||
* @param callable $hdl <p>
|
||||
* <i>handler</i> is a string containing the name of a
|
||||
* function that must exist when <b>xml_parse</b> is called
|
||||
* for <i>parser</i>.
|
||||
|
@ -274,7 +274,7 @@ function xml_set_external_entity_ref_handler ($parser, callable $handler) {}
|
|||
* reference to the XML parser calling the handler.
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function xml_set_start_namespace_decl_handler ($parser, callable $handler) {}
|
||||
function xml_set_start_namespace_decl_handler ($parser, callable $hdl) {}
|
||||
|
||||
/**
|
||||
* Set up end namespace declaration handler
|
||||
|
@ -282,7 +282,7 @@ function xml_set_start_namespace_decl_handler ($parser, callable $handler) {}
|
|||
* @param resource $parser <p>
|
||||
* A reference to the XML parser.
|
||||
* </p>
|
||||
* @param callable $handler <p>
|
||||
* @param callable $hdl <p>
|
||||
* <i>handler</i> is a string containing the name of a
|
||||
* function that must exist when <b>xml_parse</b> is called
|
||||
* for <i>parser</i>.
|
||||
|
@ -302,7 +302,7 @@ function xml_set_start_namespace_decl_handler ($parser, callable $handler) {}
|
|||
* reference to the XML parser calling the handler.
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function xml_set_end_namespace_decl_handler ($parser, callable $handler) {}
|
||||
function xml_set_end_namespace_decl_handler ($parser, callable $hdl) {}
|
||||
|
||||
/**
|
||||
* Start parsing an XML document
|
||||
|
@ -316,7 +316,7 @@ function xml_set_end_namespace_decl_handler ($parser, callable $handler) {}
|
|||
* as long as the <i>is_final</i> parameter is set and
|
||||
* <b>TRUE</b> when the last data is parsed.
|
||||
* </p>
|
||||
* @param bool $is_final [optional] <p>
|
||||
* @param bool $isfinal [optional] <p>
|
||||
* If set and <b>TRUE</b>, <i>data</i> is the last piece of
|
||||
* data sent in this parse.
|
||||
* </p>
|
||||
|
@ -334,7 +334,7 @@ function xml_set_end_namespace_decl_handler ($parser, callable $handler) {}
|
|||
* Entity errors are reported at the end of the data thus only if
|
||||
* <i>is_final</i> is set and <b>TRUE</b>.
|
||||
*/
|
||||
function xml_parse ($parser, $data, $is_final = false) {}
|
||||
function xml_parse ($parser, $data, $isfinal = false) {}
|
||||
|
||||
/**
|
||||
* Parse XML data into an array structure
|
||||
|
|
|
@ -20,52 +20,52 @@ function readgzfile ($filename, $use_include_path = 0) {}
|
|||
/**
|
||||
* Rewind the position of a gz-file pointer
|
||||
* @link https://php.net/manual/en/function.gzrewind.php
|
||||
* @param resource $zp <p>
|
||||
* @param resource $fp <p>
|
||||
* The gz-file pointer. It must be valid, and must point to a file
|
||||
* successfully opened by <b>gzopen</b>.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function gzrewind ($zp) {}
|
||||
function gzrewind ($fp) {}
|
||||
|
||||
/**
|
||||
* Close an open gz-file pointer
|
||||
* @link https://php.net/manual/en/function.gzclose.php
|
||||
* @param resource $zp <p>
|
||||
* @param resource $fp <p>
|
||||
* The gz-file pointer. It must be valid, and must point to a file
|
||||
* successfully opened by <b>gzopen</b>.
|
||||
* </p>
|
||||
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
|
||||
*/
|
||||
function gzclose ($zp) {}
|
||||
function gzclose ($fp) {}
|
||||
|
||||
/**
|
||||
* Test for EOF on a gz-file pointer
|
||||
* @link https://php.net/manual/en/function.gzeof.php
|
||||
* @param resource $zp <p>
|
||||
* @param resource $fp <p>
|
||||
* The gz-file pointer. It must be valid, and must point to a file
|
||||
* successfully opened by <b>gzopen</b>.
|
||||
* </p>
|
||||
* @return int|bool <b>TRUE</b> if the gz-file pointer is at EOF or an error occurs;
|
||||
* otherwise returns <b>FALSE</b>.
|
||||
*/
|
||||
function gzeof ($zp) {}
|
||||
function gzeof ($fp) {}
|
||||
|
||||
/**
|
||||
* Get character from gz-file pointer
|
||||
* @link https://php.net/manual/en/function.gzgetc.php
|
||||
* @param resource $zp <p>
|
||||
* @param resource $fp <p>
|
||||
* The gz-file pointer. It must be valid, and must point to a file
|
||||
* successfully opened by <b>gzopen</b>.
|
||||
* </p>
|
||||
* @return string|false The uncompressed character or <b>FALSE</b> on EOF (unlike <b>gzeof</b>).
|
||||
*/
|
||||
function gzgetc ($zp) {}
|
||||
function gzgetc ($fp) {}
|
||||
|
||||
/**
|
||||
* Get line from file pointer
|
||||
* @link https://php.net/manual/en/function.gzgets.php
|
||||
* @param resource $zp <p>
|
||||
* @param resource $fp <p>
|
||||
* The gz-file pointer. It must be valid, and must point to a file
|
||||
* successfully opened by <b>gzopen</b>.
|
||||
* </p>
|
||||
|
@ -74,7 +74,7 @@ function gzgetc ($zp) {}
|
|||
* </p>
|
||||
* @return string|false The uncompressed string, or <b>FALSE</b> on error.
|
||||
*/
|
||||
function gzgets ($zp, $length) {}
|
||||
function gzgets ($fp, $length) {}
|
||||
|
||||
/**
|
||||
* Get line from gz-file pointer and strip HTML tags
|
||||
|
@ -99,7 +99,7 @@ function gzgetss ($zp, $length, $allowable_tags = null) {}
|
|||
/**
|
||||
* Binary-safe gz-file read
|
||||
* @link https://php.net/manual/en/function.gzread.php
|
||||
* @param resource $zp <p>
|
||||
* @param resource $fp <p>
|
||||
* The gz-file pointer. It must be valid, and must point to a file
|
||||
* successfully opened by <b>gzopen</b>.
|
||||
* </p>
|
||||
|
@ -108,7 +108,7 @@ function gzgetss ($zp, $length, $allowable_tags = null) {}
|
|||
* </p>
|
||||
* @return string The data that have been read.
|
||||
*/
|
||||
function gzread ($zp, $length) {}
|
||||
function gzread ($fp, $length) {}
|
||||
|
||||
/**
|
||||
* Open gz-file
|
||||
|
@ -142,19 +142,19 @@ function gzopen ($filename, $mode, $use_include_path = 0) {}
|
|||
/**
|
||||
* Output all remaining data on a gz-file pointer
|
||||
* @link https://php.net/manual/en/function.gzpassthru.php
|
||||
* @param resource $zp <p>
|
||||
* @param resource $fp <p>
|
||||
* The gz-file pointer. It must be valid, and must point to a file
|
||||
* successfully opened by <b>gzopen</b>.
|
||||
* </p>
|
||||
* @return int The number of uncompressed characters read from <i>gz</i>
|
||||
* and passed through to the input, or <b>FALSE</b> on error.
|
||||
*/
|
||||
function gzpassthru ($zp) {}
|
||||
function gzpassthru ($fp) {}
|
||||
|
||||
/**
|
||||
* Seek on a gz-file pointer
|
||||
* @link https://php.net/manual/en/function.gzseek.php
|
||||
* @param resource $zp <p>
|
||||
* @param resource $fp <p>
|
||||
* The gz-file pointer. It must be valid, and must point to a file
|
||||
* successfully opened by <b>gzopen</b>.
|
||||
* </p>
|
||||
|
@ -173,27 +173,27 @@ function gzpassthru ($zp) {}
|
|||
* @return int Upon success, returns 0; otherwise, returns -1. Note that seeking
|
||||
* past EOF is not considered an error.
|
||||
*/
|
||||
function gzseek ($zp, $offset, $whence = SEEK_SET) {}
|
||||
function gzseek ($fp, $offset, $whence = SEEK_SET) {}
|
||||
|
||||
/**
|
||||
* Tell gz-file pointer read/write position
|
||||
* @link https://php.net/manual/en/function.gztell.php
|
||||
* @param resource $zp <p>
|
||||
* @param resource $fp <p>
|
||||
* The gz-file pointer. It must be valid, and must point to a file
|
||||
* successfully opened by <b>gzopen</b>.
|
||||
* </p>
|
||||
* @return int|false The position of the file pointer or <b>FALSE</b> if an error occurs.
|
||||
*/
|
||||
function gztell ($zp) {}
|
||||
function gztell ($fp) {}
|
||||
|
||||
/**
|
||||
* Binary-safe gz-file write
|
||||
* @link https://php.net/manual/en/function.gzwrite.php
|
||||
* @param resource $zp <p>
|
||||
* @param resource $fp <p>
|
||||
* The gz-file pointer. It must be valid, and must point to a file
|
||||
* successfully opened by <b>gzopen</b>.
|
||||
* </p>
|
||||
* @param string $string <p>
|
||||
* @param string $str <p>
|
||||
* The string to write.
|
||||
* </p>
|
||||
* @param int $length [optional] <p>
|
||||
|
@ -211,7 +211,7 @@ function gztell ($zp) {}
|
|||
* @return int the number of (uncompressed) bytes written to the given gz-file
|
||||
* stream.
|
||||
*/
|
||||
function gzwrite ($zp, $string, $length = null) {}
|
||||
function gzwrite ($fp, $str, $length = null) {}
|
||||
|
||||
/**
|
||||
* Alias of <b>gzwrite</b>
|
||||
|
@ -262,7 +262,7 @@ function gzcompress ($data, $level = -1, $encoding = ZLIB_ENCODING_DEFLATE) {}
|
|||
* @param string $data <p>
|
||||
* The data compressed by <b>gzcompress</b>.
|
||||
* </p>
|
||||
* @param int $length [optional] <p>
|
||||
* @param int $max_decoded_len [optional] <p>
|
||||
* The maximum length of data to decode.
|
||||
* </p>
|
||||
* @return string|false The original uncompressed data or <b>FALSE</b> on error.
|
||||
|
@ -272,7 +272,7 @@ function gzcompress ($data, $level = -1, $encoding = ZLIB_ENCODING_DEFLATE) {}
|
|||
* 32768 times the length of the compressed input <i>data</i>
|
||||
* or more than the optional parameter <i>length</i>.
|
||||
*/
|
||||
function gzuncompress ($data, $length = 0) {}
|
||||
function gzuncompress ($data, $max_decoded_len = 0) {}
|
||||
|
||||
/**
|
||||
* Deflate a string
|
||||
|
@ -298,7 +298,7 @@ function gzdeflate ($data, $level = -1, $encoding = ZLIB_ENCODING_RAW) {}
|
|||
* @param string $data <p>
|
||||
* The data compressed by <b>gzdeflate</b>.
|
||||
* </p>
|
||||
* @param int $length [optional] <p>
|
||||
* @param int $max_decoded_len [optional] <p>
|
||||
* The maximum length of data to decode.
|
||||
* </p>
|
||||
* @return string|false The original uncompressed data or <b>FALSE</b> on error.
|
||||
|
@ -308,7 +308,7 @@ function gzdeflate ($data, $level = -1, $encoding = ZLIB_ENCODING_RAW) {}
|
|||
* 32768 times the length of the compressed input <i>data</i>
|
||||
* or more than the optional parameter <i>length</i>.
|
||||
*/
|
||||
function gzinflate ($data, $length = 0) {}
|
||||
function gzinflate ($data, $max_decoded_len = 0) {}
|
||||
|
||||
/**
|
||||
* Create a gzip compressed string
|
||||
|
@ -321,7 +321,7 @@ function gzinflate ($data, $length = 0) {}
|
|||
* for maximum compression. If not given, the default compression level will
|
||||
* be the default compression level of the zlib library.
|
||||
* </p>
|
||||
* @param int $encoding_mode [optional] <p>
|
||||
* @param int $encoding [optional] <p>
|
||||
* The encoding mode. Can be <b>FORCE_GZIP</b> (the default)
|
||||
* or <b>FORCE_DEFLATE</b>.
|
||||
* </p>
|
||||
|
@ -337,7 +337,7 @@ function gzinflate ($data, $length = 0) {}
|
|||
* </p>
|
||||
* @return string|false The encoded string, or <b>FALSE</b> if an error occurred.
|
||||
*/
|
||||
function gzencode ($data, $level = -1, $encoding_mode = FORCE_GZIP) {}
|
||||
function gzencode ($data, $level = -1, $encoding = FORCE_GZIP) {}
|
||||
|
||||
/**
|
||||
* Decodes a gzip compressed string
|
||||
|
@ -345,13 +345,13 @@ function gzencode ($data, $level = -1, $encoding_mode = FORCE_GZIP) {}
|
|||
* @param string $data <p>
|
||||
* The data to decode, encoded by <b>gzencode</b>.
|
||||
* </p>
|
||||
* @param int $length [optional] <p>
|
||||
* @param int $max_decoded_len [optional] <p>
|
||||
* The maximum length of data to decode.
|
||||
* </p>
|
||||
* @return string|false The decoded string, or <b>FALSE</b> if an error occurred.
|
||||
* @since 5.4
|
||||
*/
|
||||
function gzdecode ($data, $length = null) {}
|
||||
function gzdecode ($data, $max_decoded_len = null) {}
|
||||
|
||||
/**
|
||||
* Compress data with the specified encoding
|
||||
|
@ -390,11 +390,11 @@ function zlib_get_coding_type () {}
|
|||
/**
|
||||
* ob_start callback function to gzip output buffer
|
||||
* @link https://php.net/manual/en/function.ob-gzhandler.php
|
||||
* @param string $buffer
|
||||
* @param int $mode
|
||||
* @param string $data
|
||||
* @param int $flags
|
||||
* @return string
|
||||
*/
|
||||
function ob_gzhandler ($buffer, $mode) {}
|
||||
function ob_gzhandler ($data, $flags) {}
|
||||
|
||||
/**
|
||||
* Initialize an incremental deflate context
|
||||
|
@ -425,10 +425,10 @@ function deflate_init ($encoding, $options = array()) {}
|
|||
* @param resource $context <p>
|
||||
* A context created with <b>deflate_init()</b>.
|
||||
* </p>
|
||||
* @param string $data <p>
|
||||
* @param string $add <p>
|
||||
* A chunk of data to compress.
|
||||
* </p>
|
||||
* @param int $flush_mode [optional] <p>
|
||||
* @param int $flush_behavior [optional] <p>
|
||||
* One of <b>ZLIB_BLOCK</b>, <b>ZLIB_NO_FLUSH</b>, <b>ZLIB_PARTIAL_FLUSH</b>,
|
||||
* <b>ZLIB_SYNC_FLUSH</b> (default), <b>ZLIB_FULL_FLUSH</b>,
|
||||
* <b>ZLIB_FINISH</b>. Normally you will want to set <b>ZLIB_NO_FLUSH</b> to
|
||||
|
@ -440,7 +440,7 @@ function deflate_init ($encoding, $options = array()) {}
|
|||
* </p>
|
||||
* @since 7.0
|
||||
*/
|
||||
function deflate_add ($context, $data, $flush_mode = ZLIB_SYNC_FLUSH) {}
|
||||
function deflate_add ($context, $add, $flush_behavior = ZLIB_SYNC_FLUSH) {}
|
||||
|
||||
/**
|
||||
* Initialize an incremental inflate context
|
||||
|
|
Loading…
Reference in New Issue