[phpstorm-stubs] update stubs to migration version for php 5.3

This commit is contained in:
Ivan Fedorov 2022-11-02 12:20:17 +01:00
parent 428effcf0a
commit e764dfca0a
145 changed files with 21277 additions and 42595 deletions

132
Core/Core.php Executable file → Normal file
View File

@ -1,10 +1,6 @@
<?php
// Start of Core v.5.3.6-13ubuntu3.2
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Pure;
/**
@ -130,42 +126,6 @@ function strcasecmp(string $string1, string $string2): int {}
#[Pure]
function strncasecmp(string $string1, string $string2, int $length): int {}
/**
* The function returns {@see true} if the passed $haystack starts from the
* $needle string or {@see false} otherwise.
*
* @param string $haystack
* @param string $needle
* @return bool
* @since 8.0
*/
#[Pure]
function str_starts_with(string $haystack, string $needle): bool {}
/**
* The function returns {@see true} if the passed $haystack ends with the
* $needle string or {@see false} otherwise.
*
* @param string $haystack
* @param string $needle
* @return bool
* @since 8.0
*/
#[Pure]
function str_ends_with(string $haystack, string $needle): bool {}
/**
* Checks if $needle is found in $haystack and returns a boolean value
* (true/false) whether or not the $needle was found.
*
* @param string $haystack
* @param string $needle
* @return bool
* @since 8.0
*/
#[Pure]
function str_contains(string $haystack, string $needle): bool {}
/**
* Return the current key and value pair from an array and advance the array cursor
* @link https://php.net/manual/en/function.each.php
@ -338,12 +298,7 @@ function error_reporting(?int $error_level): int {}
* </p>
* @return bool true on success or false on failure.
*/
function define(
string $constant_name,
#[LanguageLevelTypeAware(['8.1' => 'mixed'], default: 'null|array|bool|int|float|string')] $value,
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] bool $case_insensitive,
#[PhpStormStubsElementAvailable(from: '7.0')] #[Deprecated(since: 7.3)] bool $case_insensitive = false
): bool {}
function define(string $constant_name, null|array|bool|int|float|string $value, bool $case_insensitive): bool {}
/**
* Checks whether a given named constant exists
@ -428,16 +383,6 @@ function method_exists($object_or_class, string $method): bool {}
#[Pure]
function property_exists($object_or_class, string $property): bool {}
/**
* Checks if the trait exists
* @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(string $trait, bool $autoload = true): bool {}
/**
* Checks if the class has been defined
* @link https://php.net/manual/en/function.class-exists.php
@ -483,21 +428,6 @@ function interface_exists(string $interface, bool $autoload = true): bool {}
#[Pure(true)]
function function_exists(string $function): bool {}
/**
* Checks if the enum has been defined
* @link https://php.net/manual/en/function.enum-exists.php
* @param string $enum <p>
* The enum name. The name is matched in a case-insensitive manner.
* </p>
* @param bool $autoload [optional] <p>
* Whether or not to call autoload by default.
* </p>
* @return bool true if <i>enum</i> is a defined enum,
* false otherwise.
* @since 8.1
*/
function enum_exists(string $enum, bool $autoload = true): bool {}
/**
* Creates an alias for a class
* @link https://php.net/manual/en/function.class-alias.php
@ -679,7 +609,6 @@ function set_error_handler(?callable $callback, int $error_levels = E_ALL|E_STRI
* @link https://php.net/manual/en/function.restore-error-handler.php
* @return bool This function always returns true.
*/
#[LanguageLevelTypeAware(['8.2' => 'true'], default: 'bool')]
function restore_error_handler(): bool {}
/**
@ -703,7 +632,6 @@ function set_exception_handler(?callable $callback) {}
* @link https://php.net/manual/en/function.restore-exception-handler.php
* @return bool This function always returns true.
*/
#[LanguageLevelTypeAware(['8.2' => 'true'], default: 'bool')]
function restore_exception_handler(): bool {}
/**
@ -730,16 +658,6 @@ function get_declared_classes(): array {}
#[Pure(true)]
function get_declared_interfaces(): array {}
/**
* Returns an array of all declared traits
* @return array with names of all declared traits in values. Returns NULL in case of a failure.
* @link https://secure.php.net/manual/en/function.get-declared-traits.php
* @see class_uses()
* @since 5.4
*/
#[Pure(true)]
function get_declared_traits(): array {}
/**
* Returns an array of all defined functions
* @link https://php.net/manual/en/function.get-defined-functions.php
@ -751,7 +669,7 @@ function get_declared_traits(): array {}
* below).
*/
#[Pure(true)]
function get_defined_functions(#[PhpStormStubsElementAvailable(from: '7.1')] bool $exclude_disabled = true): array {}
function get_defined_functions(): array {}
/**
* Returns an array of all defined variables
@ -1030,10 +948,7 @@ function debug_backtrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT, int $lim
* </p>
* @return void
*/
function debug_print_backtrace(
int $options = 0,
#[PhpStormStubsElementAvailable(from: '7.0')] int $limit = 0
): void {}
function debug_print_backtrace(int $options = 0): void {}
/**
* Forces collection of any existing garbage cycles
@ -1063,44 +978,3 @@ function gc_enable(): void {}
* @return void
*/
function gc_disable(): void {}
/**
* Gets information about the garbage collector
* @link https://php.net/manual/en/function.gc-status.php
* @return int[] associative array with the following elements:
* <ul>
* <li>"runs"</li>
* <li>"collected"</li>
* <li>"threshold"</li>
* <li>"roots"</li>
* </ul>
* @since 7.3
*/
#[ArrayShape(["runs" => "int", "collected" => "int", "threshold" => "int", "roots" => "int"])]
#[Pure(true)]
function gc_status(): array {}
/**
* Reclaims memory used by the Zend Engine memory manager
* @link https://php.net/manual/en/function.gc-mem-caches.php
* @return int Returns the number of bytes freed.
* @since 7.0
*/
function gc_mem_caches(): int {}
/**
* Returns active resources
* @link https://php.net/manual/en/function.get-resources.php
* @param string|null $type [optional]<p>
*
* If defined, this will cause get_resources() to only return resources of the given type. A list of resource types is available.
*
* If the string Unknown is provided as the type, then only resources that are of an unknown type will be returned.
*
* If omitted, all resources will be returned.
* </p>
* @return resource[] Returns an array of currently active resources, indexed by resource number.
* @since 7.0
*/
#[Pure(true)]
function get_resources(?string $type): array {}

View File

@ -1,9 +1,5 @@
<?php
// Start of Core v.5.3.6-13ubuntu3.2
use JetBrains\PhpStorm\ExpectedValues;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
@ -117,7 +113,7 @@ interface ArrayAccess
* The return value will be casted to boolean if non-boolean was returned.
*/
#[TentativeType]
public function offsetExists(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $offset): bool;
public function offsetExists($offset): bool;
/**
* Offset to retrieve
@ -128,7 +124,7 @@ interface ArrayAccess
* @return TValue Can return all value types.
*/
#[TentativeType]
public function offsetGet(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $offset): mixed;
public function offsetGet($offset): mixed;
/**
* Offset to set
@ -142,10 +138,7 @@ interface ArrayAccess
* @return void
*/
#[TentativeType]
public function offsetSet(
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $offset,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value
): void;
public function offsetSet($offset, $value): void;
/**
* Offset to unset
@ -156,7 +149,7 @@ interface ArrayAccess
* @return void
*/
#[TentativeType]
public function offsetUnset(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $offset): void;
public function offsetUnset($offset): void;
}
/**
@ -181,89 +174,7 @@ interface Serializable
* @param string $data The string representation of the object.
* @return void
*/
public function unserialize(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $data);
}
/**
* Throwable is the base interface for any object that can be thrown via a throw statement in PHP 7,
* including Error and Exception.
* @link https://php.net/manual/en/class.throwable.php
* @since 7.0
*/
interface Throwable extends Stringable
{
/**
* Gets the message
* @link https://php.net/manual/en/throwable.getmessage.php
* @return string
* @since 7.0
*/
public function getMessage(): string;
/**
* Gets the exception code
* @link https://php.net/manual/en/throwable.getcode.php
* @return int <p>
* Returns the exception code as integer in
* {@see Exception} but possibly as other type in
* {@see Exception} descendants (for example as
* string in {@see PDOException}).
* </p>
* @since 7.0
*/
public function getCode();
/**
* Gets the file in which the exception occurred
* @link https://php.net/manual/en/throwable.getfile.php
* @return string Returns the name of the file from which the object was thrown.
* @since 7.0
*/
public function getFile(): string;
/**
* Gets the line on which the object was instantiated
* @link https://php.net/manual/en/throwable.getline.php
* @return int Returns the line number where the thrown object was instantiated.
* @since 7.0
*/
public function getLine(): int;
/**
* Gets the stack trace
* @link https://php.net/manual/en/throwable.gettrace.php
* @return array <p>
* Returns the stack trace as an array in the same format as
* {@see debug_backtrace()}.
* </p>
* @since 7.0
*/
public function getTrace(): array;
/**
* Gets the stack trace as a string
* @link https://php.net/manual/en/throwable.gettraceasstring.php
* @return string Returns the stack trace as a string.
* @since 7.0
*/
public function getTraceAsString(): string;
/**
* Returns the previous Throwable
* @link https://php.net/manual/en/throwable.getprevious.php
* @return null|Throwable Returns the previous {@see Throwable} if available, or <b>NULL</b> otherwise.
* @since 7.0
*/
#[LanguageLevelTypeAware(['8.0' => 'Throwable|null'], default: '')]
public function getPrevious();
/**
* Gets a string representation of the thrown object
* @link https://php.net/manual/en/throwable.tostring.php
* @return string <p>Returns the string representation of the thrown object.</p>
* @since 7.0
*/
public function __toString();
public function unserialize($data);
}
/**
@ -285,101 +196,6 @@ interface Countable
public function count(): int;
}
/**
* Stringable interface denotes a class as having a __toString() method.
*
* @since 8.0
*/
interface Stringable
{
/**
* Magic method {@see https://www.php.net/manual/en/language.oop5.magic.php#object.tostring}
* allows a class to decide how it will react when it is treated like a string.
*
* @return string Returns string representation of the object that
* implements this interface (and/or "__toString" magic method).
*/
public function __toString(): string;
}
/**
* @since 8.1
*/
interface UnitEnum
{
public readonly string $name;
/**
* @return static[]
*/
#[Pure]
public static function cases(): array;
}
/**
* @since 8.1
*/
interface BackedEnum extends UnitEnum
{
public readonly int|string $value;
/**
* @param int|string $value
* @return static
*/
#[Pure]
public static function from(int|string $value): static;
/**
* @param int|string $value
* @return static|null
*/
#[Pure]
public static function tryFrom(int|string $value): ?static;
}
/**
* @since 8.1
* @internal
*
* Internal interface to ensure precise type inference
*/
interface IntBackedEnum extends BackedEnum
{
public readonly int $value;
/**
* @param int $value
* @return static
*/
#[Pure]
public static function from(int $value): static;
/**
* @param int $value
* @return static|null
*/
#[Pure]
public static function tryFrom(int $value): ?static;
}
/**
* @since 8.1
* @internal
*
* Internal interface to ensure precise type inference
*/
interface StringBackedEnum extends BackedEnum
{
public readonly string $value;
#[Pure]
public static function from(string $value): static;
#[Pure]
public static function tryFrom(string $value): ?static;
}
/**
* Created by typecasting to object.
* @link https://php.net/manual/en/reserved.classes.php
@ -391,7 +207,7 @@ class stdClass {}
* all Exceptions.
* @link https://php.net/manual/en/class.exception.php
*/
class Exception implements Throwable
class Exception
{
/** The error message */
protected $message;
@ -400,11 +216,9 @@ class Exception implements Throwable
protected $code;
/** The filename where the error happened */
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
protected $file;
/** The line where the error happened */
#[LanguageLevelTypeAware(['8.1' => 'int'], default: '')]
protected $line;
/**
@ -412,14 +226,10 @@ class Exception implements Throwable
* @link https://php.net/manual/en/exception.construct.php
* @param string $message [optional] The Exception message to throw.
* @param int $code [optional] The Exception code.
* @param null|Throwable $previous [optional] The previous throwable used for the exception chaining.
* @param null|Exception $previous [optional] The previous throwable used for the exception chaining.
*/
#[Pure]
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $message = "",
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $code = 0,
#[LanguageLevelTypeAware(['8.0' => 'Throwable|null'], default: 'Throwable')] $previous = null
) {}
public function __construct($message = '', $code = 0, Exception $previous = null) {}
/**
* Gets the Exception message
@ -491,210 +301,9 @@ class Exception implements Throwable
#[TentativeType]
public function __wakeup(): void {}
/**
* Clone the exception
* Tries to clone the Exception, which results in Fatal error.
* @link https://php.net/manual/en/exception.clone.php
* @return void
*/
#[PhpStormStubsElementAvailable(from: "5.4", to: "8.0")]
final private function __clone(): void {}
/**
* Clone the exception
* Tries to clone the Exception, which results in Fatal error.
* @link https://php.net/manual/en/exception.clone.php
* @return void
*/
#[PhpStormStubsElementAvailable("8.1")]
private function __clone(): void {}
}
/**
* Error is the base class for all internal PHP error exceptions.
* @link https://php.net/manual/en/class.error.php
* @since 7.0
*/
class Error implements Throwable
{
/** The error message */
protected $message;
/** The error code */
protected $code;
/** The filename where the error happened */
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
protected $file;
/** The line where the error happened */
#[LanguageLevelTypeAware(['8.1' => 'int'], default: '')]
protected $line;
/**
* Construct the error object.
* @link https://php.net/manual/en/error.construct.php
* @param string $message [optional] The Error message to throw.
* @param int $code [optional] The Error code.
* @param null|Throwable $previous [optional] The previous throwable used for the exception chaining.
*/
#[Pure]
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $message = "",
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $code = 0,
#[LanguageLevelTypeAware(['8.0' => 'Throwable|null'], default: 'Throwable')] $previous = null
) {}
/***
* Gets the message
* @link https://php.net/manual/en/throwable.getmessage.php
* @return string
* @since 7.0
*/
final public function getMessage(): string {}
/**
* Gets the exception code
* @link https://php.net/manual/en/throwable.getcode.php
* @return int <p>
* Returns the exception code as integer in
* {@see Exception} but possibly as other type in
* {@see Exception} descendants (for example as
* string in {@see PDOException}).
* </p>
* @since 7.0
*/
final public function getCode() {}
/**
* Gets the file in which the exception occurred
* @link https://php.net/manual/en/throwable.getfile.php
* @return string Returns the name of the file from which the object was thrown.
* @since 7.0
*/
final public function getFile(): string {}
/**
* Gets the line on which the object was instantiated
* @link https://php.net/manual/en/throwable.getline.php
* @return int Returns the line number where the thrown object was instantiated.
* @since 7.0
*/
final public function getLine(): int {}
/**
* Gets the stack trace
* @link https://php.net/manual/en/throwable.gettrace.php
* @return array <p>
* Returns the stack trace as an array in the same format as
* {@see debug_backtrace()}.
* </p>
* @since 7.0
*/
final public function getTrace(): array {}
/**
* Gets the stack trace as a string
* @link https://php.net/manual/en/throwable.gettraceasstring.php
* @return string Returns the stack trace as a string.
* @since 7.0
*/
final public function getTraceAsString(): string {}
/**
* Returns the previous Throwable
* @link https://php.net/manual/en/throwable.getprevious.php
* @return null|Throwable Returns the previous {@see Throwable} if available, or <b>NULL</b> otherwise.
* @since 7.0
*/
final public function getPrevious(): ?Throwable {}
/**
* Gets a string representation of the thrown object
* @link https://php.net/manual/en/throwable.tostring.php
* @return string <p>Returns the string representation of the thrown object.</p>
* @since 7.0
*/
public function __toString(): string {}
#[TentativeType]
public function __wakeup(): void {}
/**
* Clone the error
* Error can not be clone, so this method results in fatal error.
* @return void
* @link https://php.net/manual/en/error.clone.php
*/
#[PhpStormStubsElementAvailable(from: "7.0", to: "8.0")]
final private function __clone(): void {}
/**
* Clone the error
* Error can not be clone, so this method results in fatal error.
* @return void
* @link https://php.net/manual/en/error.clone.php
*/
#[PhpStormStubsElementAvailable('8.1')]
private function __clone(): void {}
}
class ValueError extends Error {}
/**
* There are three scenarios where a TypeError may be thrown.
* The first is where the argument type being passed to a function does not match its corresponding declared
* parameter type. The second is where a value being returned from a function does not match the declared function return type. The third is where an
* invalid number of arguments are passed to a built-in PHP function (strict mode only).
* @link https://php.net/manual/en/class.typeerror.php
* @since 7.0
*/
class TypeError extends Error {}
/**
* ParseError is thrown when an error occurs while parsing PHP code, such as when {@see eval()} is called.
* @link https://php.net/manual/en/class.parseerror.php
* @since 7.0
*/
class ParseError extends CompileError {}
/**
* ArgumentCountError is thrown when too few arguments are passed to a user
* defined routine.
*
* @since 7.1
* @see https://php.net/migration71.incompatible#migration71.incompatible.too-few-arguments-exception
*/
class ArgumentCountError extends TypeError {}
/**
* ArithmeticError is thrown when an error occurs while performing mathematical operations.
* In PHP 7.0, these errors include attempting to perform a bitshift by a negative amount,
* and any call to {@see intdiv()} that would result in a value outside the possible bounds of an integer.
* @link https://php.net/manual/en/class.arithmeticerror.php
* @since 7.0
*/
class ArithmeticError extends Error {}
/**
* Class CompileError
* @link https://secure.php.net/manual/en/class.compileerror.php
* @since 7.3
*/
class CompileError extends Error {}
/**
* DivisionByZeroError is thrown when an attempt is made to divide a number by zero.
* @link https://php.net/manual/en/class.divisionbyzeroerror.php
* @since 7.0
*/
class DivisionByZeroError extends ArithmeticError {}
/**
* @since 8.0
*/
class UnhandledMatchError extends Error {}
class ValueError {}
/**
* An Error Exception.
@ -702,7 +311,6 @@ class UnhandledMatchError extends Error {}
*/
class ErrorException extends Exception
{
#[LanguageLevelTypeAware(['8.1' => 'int'], default: '')]
protected $severity;
/**
@ -716,14 +324,7 @@ class ErrorException extends Exception
* @param Exception $previous [optional] The previous exception used for the exception chaining.
*/
#[Pure]
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $message = "",
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $code = 0,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $severity = 1,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $filename = __FILE__,
#[LanguageLevelTypeAware(['8.0' => 'int|null'], default: '')] $line = __LINE__,
#[LanguageLevelTypeAware(['8.0' => 'Throwable|null'], default: 'Throwable')] $previous = null
) {}
public function __construct($message = '', $code = 0, $severity = 1, $filename = __FILE__, $line = __LINE__, Exception $previous = null) {}
/**
* Gets the exception severity
@ -762,18 +363,7 @@ final class Closure
* This determines the visibility of protected and private methods of the bound object.
* @return Closure|false Returns the newly created Closure object or FALSE on failure
*/
public static function bind(
Closure $closure,
?object $newThis,
object|string|null $newScope = 'static'
): ?Closure {}
/**
* @param callable $callback
* @return Closure
* @since 7.1
*/
public static function fromCallable(callable $callback): Closure {}
public static function bind(Closure $closure, ?object $newThis, object|string|null $newScope = 'static'): ?Closure {}
/**
* This is for consistency with other classes that implement calling magic,
@ -794,336 +384,4 @@ final class Closure
* @return Closure|false Returns the newly created Closure object or FALSE on failure
*/
public function bindTo(?object $newThis, object|string|null $newScope = 'static'): ?Closure {}
/**
* Temporarily binds the closure to newthis, and calls it with any given parameters.
* @link https://php.net/manual/en/closure.call.php
* @param object $newThis The object to bind the closure to for the duration of the call.
* @param mixed $args [optional] Zero or more parameters, which will be given as parameters to the closure.
* @return mixed
* @since 7.0
*/
public function call(object $newThis, mixed ...$args): mixed {}
}
/**
* Weak references allow the programmer to retain a reference to an
* object which does not prevent the object from being destroyed.
* They are useful for implementing cache like structures.
* @template T of object
* @link https://www.php.net/manual/en/class.weakreference.php
* @since 7.4
*/
final class WeakReference
{
/**
* This method exists only to disallow instantiation of the WeakReference
* class. Weak references are to be instantiated with the factory method
* <b>WeakReference::create()</b>.
*/
public function __construct() {}
/**
* Create a new weak reference.
* @link https://www.php.net/manual/en/weakreference.create.php
* @template TIn of object
* @param TIn $object Any object.
* @return WeakReference<TIn> The freshly instantiated object.
* @since 7.4
*/
public static function create(object $object): WeakReference {}
/**
* Gets a weakly referenced object. If the object has already been
* destroyed, NULL is returned.
* @link https://www.php.net/manual/en/weakreference.get.php
* @return T|null
* @since 7.4
*/
public function get(): ?object {}
}
/**
* Weak maps allow creating a map from objects to arbitrary values
* (similar to SplObjectStorage) without preventing the objects that are used
* as keys from being garbage collected. If an object key is garbage collected,
* it will simply be removed from the map.
*
* @since 8.0
*
* @template TKey of object
* @template TValue
* @template-implements IteratorAggregate<TKey, TValue>
*/
final class WeakMap implements ArrayAccess, Countable, IteratorAggregate
{
/**
* Returns {@see true} if the value for the object is contained in
* the {@see WeakMap} and {@see false} instead.
*
* @param TKey $object Any object
* @return bool
*/
public function offsetExists($object): bool {}
/**
* Returns the existsing value by an object.
*
* @param TKey $object Any object
* @return TValue Value associated with the key object
*/
public function offsetGet($object): mixed {}
/**
* Sets a new value for an object.
*
* @param TKey $object Any object
* @param TValue $value Any value
* @return void
*/
public function offsetSet($object, mixed $value): void {}
/**
* Force removes an object value from the {@see WeakMap} instance.
*
* @param TKey $object Any object
* @return void
*/
public function offsetUnset($object): void {}
/**
* Returns an iterator in the "[object => mixed]" format.
*
* @return Traversable<TKey, TValue>
*/
public function getIterator(): Iterator {}
/**
* Returns the number of items in the {@see WeakMap} instance.
*
* @return int<0,max>
*/
public function count(): int {}
}
/**
* @since 8.0
*/
#[Attribute(Attribute::TARGET_CLASS)]
final class Attribute
{
/**
* Marks that attribute declaration is allowed only in classes.
*/
public const TARGET_CLASS = 1;
/**
* Marks that attribute declaration is allowed only in functions.
*/
public const TARGET_FUNCTION = 2;
/**
* Marks that attribute declaration is allowed only in class methods.
*/
public const TARGET_METHOD = 4;
/**
* Marks that attribute declaration is allowed only in class properties.
*/
public const TARGET_PROPERTY = 8;
/**
* Marks that attribute declaration is allowed only in class constants.
*/
public const TARGET_CLASS_CONSTANT = 16;
/**
* Marks that attribute declaration is allowed only in function or method parameters.
*/
public const TARGET_PARAMETER = 32;
/**
* Marks that attribute declaration is allowed anywhere.
*/
public const TARGET_ALL = 63;
/**
* Notes that an attribute declaration in the same place is
* allowed multiple times.
*/
public const IS_REPEATABLE = 64;
public int $flags;
/**
* @param int $flags A value in the form of a bitmask indicating the places
* where attributes can be defined.
*/
public function __construct(#[ExpectedValues(flagsFromClass: Attribute::class)] int $flags = self::TARGET_ALL) {}
}
/**
* @since 8.0
*/
final class InternalIterator implements Iterator
{
private function __construct() {}
public function current(): mixed {}
public function next(): void {}
public function key(): mixed {}
public function valid(): bool {}
public function rewind(): void {}
}
/**
* @since 8.1
*
* @template TStart
* @template TResume
* @template TReturn
* @template TSuspend
*/
final class Fiber
{
/**
* @param callable $callback Function to invoke when starting the fiber.
*/
public function __construct(callable $callback) {}
/**
* @return self|null Returns the currently executing fiber instance or NULL if in {main}.
*/
public static function getCurrent(): ?Fiber {}
/**
* Suspend execution of the fiber. The fiber may be resumed with {@see Fiber::resume()} or {@see Fiber::throw()}.
*
* Cannot be called from {main}.
*
* @param TSuspend $value Value to return from {@see Fiber::resume()} or {@see Fiber::throw()}.
*
* @return TResume Value provided to {@see Fiber::resume()}.
*
* @throws FiberError Thrown if not within a fiber (i.e., if called from {main}).
* @throws Throwable Exception provided to {@see Fiber::throw()}.
*/
public static function suspend(mixed $value = null): mixed {}
/**
* Starts execution of the fiber. Returns when the fiber suspends or terminates.
*
* @param TStart ...$args Arguments passed to fiber function.
*
* @return TSuspend|null Value from the first suspension point or NULL if the fiber returns.
*
* @throws FiberError If the fiber has already been started.
* @throws Throwable If the fiber callable throws an uncaught exception.
*/
public function start(mixed ...$args): mixed {}
/**
* Resumes the fiber, returning the given value from {@see Fiber::suspend()}.
* Returns when the fiber suspends or terminates.
*
* @param TResume $value
*
* @return TSuspend|null Value from the next suspension point or NULL if the fiber returns.
*
* @throws FiberError If the fiber has not started, is running, or has terminated.
* @throws Throwable If the fiber callable throws an uncaught exception.
*/
public function resume(mixed $value = null): mixed {}
/**
* Throws the given exception into the fiber from {@see Fiber::suspend()}.
* Returns when the fiber suspends or terminates.
*
* @param Throwable $exception
*
* @return TSuspend|null Value from the next suspension point or NULL if the fiber returns.
*
* @throws FiberError If the fiber has not started, is running, or has terminated.
* @throws Throwable If the fiber callable throws an uncaught exception.
*/
public function throw(Throwable $exception): mixed {}
/**
* @return bool True if the fiber has been started.
*/
public function isStarted(): bool {}
/**
* @return bool True if the fiber is suspended.
*/
public function isSuspended(): bool {}
/**
* @return bool True if the fiber is currently running.
*/
public function isRunning(): bool {}
/**
* @return bool True if the fiber has completed execution (returned or threw).
*/
public function isTerminated(): bool {}
/**
* @return TReturn Return value of the fiber callback. NULL is returned if the fiber does not have a return statement.
*
* @throws FiberError If the fiber has not terminated or the fiber threw an exception.
*/
public function getReturn(): mixed {}
}
/**
* @since 8.1
*/
final class FiberError extends Error
{
public function __construct() {}
}
/**
* @since 8.1
*/
#[Attribute(Attribute::TARGET_METHOD)]
final class ReturnTypeWillChange
{
public function __construct() {}
}
/**
* @since 8.2
*/
#[Attribute(Attribute::TARGET_CLASS)]
final class AllowDynamicProperties
{
public function __construct() {}
}
/**
* @since 8.2
*/
#[Attribute(Attribute::TARGET_PARAMETER)]
final class SensitiveParameter
{
public function __construct() {}
}
/**
* @since 8.2
*/
final class SensitiveParameterValue
{
private readonly mixed $value;
public function __construct(mixed $value) {}
public function getValue(): mixed {}
public function __debugInfo(): array {}
}

157
Core/Core_d.php Executable file → Normal file
View File

@ -1,7 +1,5 @@
<?php
// Start of Core v.5.3.6-13ubuntu3.2
/**
* Fatal run-time errors. These indicate errors that can not be
* recovered from, such as a memory allocation problem.
@ -127,145 +125,190 @@ define('E_USER_DEPRECATED', 16384);
* @link https://php.net/manual/en/errorfunc.constants.php
*/
define('E_ALL', 32767);
define('DEBUG_BACKTRACE_PROVIDE_OBJECT', 1);
define('DEBUG_BACKTRACE_IGNORE_ARGS', 2);
define('S_MEMORY', 1);
define('S_VARS', 4);
define('S_FILES', 8);
define('S_INCLUDE', 16);
define('S_SQL', 32);
define('S_EXECUTOR', 64);
define('S_MAIL', 128);
define('S_SESSION', 256);
define('S_MISC', 2);
define('S_INTERNAL', 536870912);
define('S_ALL', 511);
define('true', (bool)1, true);
define('false', (bool)0, true);
define('null', null, true);
define('ZEND_THREAD_SAFE', false);
define('ZEND_DEBUG_BUILD', false);
define('PHP_WINDOWS_VERSION_BUILD', 0);
define('PHP_WINDOWS_VERSION_MAJOR', 0);
define('PHP_WINDOWS_VERSION_MINOR', 0);
define('PHP_WINDOWS_VERSION_PLATFORM', 0);
define('PHP_WINDOWS_VERSION_PRODUCTTYPE', 0);
define('PHP_WINDOWS_VERSION_SP_MAJOR', 0);
define('PHP_WINDOWS_VERSION_SP_MINOR', 0);
define('PHP_WINDOWS_VERSION_SUITEMASK', 0);
define('PHP_WINDOWS_NT_DOMAIN_CONTROLLER', 2);
define('PHP_WINDOWS_NT_SERVER', 3);
define('PHP_WINDOWS_NT_WORKSTATION', 1);
/**
* @since 7.4
*/
define('PHP_WINDOWS_EVENT_CTRL_C', 0);
/**
* @since 7.4
*/
define('PHP_WINDOWS_EVENT_CTRL_BREAK', 1);
define('PHP_VERSION', "5.3.6-13ubuntu3.2");
define('PHP_MAJOR_VERSION', 5);
define('PHP_MINOR_VERSION', 3);
define('PHP_RELEASE_VERSION', 6);
define('PHP_EXTRA_VERSION', "-13ubuntu3.2");
define('PHP_VERSION_ID', 50306);
define('PHP_ZTS', 0);
define('PHP_DEBUG', 0);
define('PHP_OS', "Linux");
/**
* The operating system family PHP was built for. Either of 'Windows', 'BSD', 'Darwin', 'Solaris', 'Linux' or 'Unknown'. Available as of PHP 7.2.0.
* @since 7.2
*/
define('PHP_OS_FAMILY', "Linux");
define('PHP_SAPI', "cli");
/**
* @since 7.4
*/
define('PHP_CLI_PROCESS_TITLE', 1);
define('DEFAULT_INCLUDE_PATH', ".:/usr/share/php:/usr/share/pear");
define('PEAR_INSTALL_DIR', "/usr/share/php");
define('PEAR_EXTENSION_DIR', "/usr/lib/php5/20090626");
define('PHP_EXTENSION_DIR', "/usr/lib/php5/20090626");
/**
* Specifies where the binaries were installed into.
* @link https://php.net/manual/en/reserved.constants.php
*/
define('PHP_BINARY', '/usr/local/php/bin/php');
define('PHP_PREFIX', "/usr");
define('PHP_BINDIR', "/usr/bin");
define('PHP_LIBDIR', "/usr/lib/php5");
define('PHP_DATADIR', "/usr/share");
define('PHP_SYSCONFDIR', "/etc");
define('PHP_LOCALSTATEDIR', "/var");
define('PHP_CONFIG_FILE_PATH', "/etc/php5/cli");
define('PHP_CONFIG_FILE_SCAN_DIR', "/etc/php5/cli/conf.d");
define('PHP_SHLIB_SUFFIX', "so");
define('PHP_EOL', "\n");
define('SUHOSIN_PATCH', 1);
define('SUHOSIN_PATCH_VERSION', "0.9.10");
define('PHP_MAXPATHLEN', 4096);
define('PHP_INT_MAX', 9223372036854775807);
define('PHP_INT_MIN', -9223372036854775808);
define('PHP_INT_SIZE', 8);
/**
* Number of decimal digits that can be rounded into a float and back without precision loss. Available as of PHP 7.2.0.
* @since 7.2
*/
define('PHP_FLOAT_DIG', 15);
/**
* Smallest representable positive number x, so that x + 1.0 != 1.0. Available as of PHP 7.2.0.
* @since 7.2
*/
define('PHP_FLOAT_EPSILON', 2.2204460492503e-16);
define('PHP_BINARY', "/usr/local/php/bin/php");
define('PHP_PREFIX', "/usr");
define('PHP_BINDIR', "/usr/bin");
define('PHP_LIBDIR', "/usr/lib/php5");
define('PHP_DATADIR', "/usr/share");
define('PHP_SYSCONFDIR', "/etc");
define('PHP_LOCALSTATEDIR', "/var");
define('PHP_CONFIG_FILE_PATH', "/etc/php5/cli");
define('PHP_CONFIG_FILE_SCAN_DIR', "/etc/php5/cli/conf.d");
define('PHP_SHLIB_SUFFIX', "so");
define('PHP_EOL', "\n");
define('SUHOSIN_PATCH', 1);
define('SUHOSIN_PATCH_VERSION', "0.9.10");
define('PHP_MAXPATHLEN', 4096);
define('PHP_INT_MAX', 9223372036854775807);
define('PHP_INT_MIN', -9223372036854775808);
define('PHP_INT_SIZE', 8);
/**
* Largest representable floating point number. Available as of PHP 7.2.0.
* @since 7.2
*/
define('PHP_FLOAT_MAX', 1.7976931348623e+308);
/**
* Smallest representable floating point number. Available as of PHP 7.2.0.
* @since 7.2
*/
define('PHP_FLOAT_MIN', 2.2250738585072e-308);
define('ZEND_MULTIBYTE', 0);
define('PHP_OUTPUT_HANDLER_START', 1);
define('PHP_OUTPUT_HANDLER_CONT', 2);
define('PHP_OUTPUT_HANDLER_END', 4);
define('UPLOAD_ERR_OK', 0);
define('UPLOAD_ERR_INI_SIZE', 1);
define('UPLOAD_ERR_FORM_SIZE', 2);
define('UPLOAD_ERR_PARTIAL', 3);
define('UPLOAD_ERR_NO_FILE', 4);
define('UPLOAD_ERR_NO_TMP_DIR', 6);
define('UPLOAD_ERR_CANT_WRITE', 7);
define('UPLOAD_ERR_EXTENSION', 8);
define('STDIN', fopen('php://stdin', 'r'));
define('STDOUT', fopen('php://stdout', 'w'));
define('STDERR', fopen('php://stderr', 'w'));
define('PHP_FD_SETSIZE', 1024);
/** @link https://php.net/manual/en/outcontrol.constants.php */
define('PHP_OUTPUT_HANDLER_WRITE', 0);
/** @link https://php.net/manual/en/outcontrol.constants.php */
define('PHP_OUTPUT_HANDLER_FLUSH', 4);
/** @link https://php.net/manual/en/outcontrol.constants.php */
define('PHP_OUTPUT_HANDLER_CLEAN', 2);
/** @link https://php.net/manual/en/outcontrol.constants.php */
define('PHP_OUTPUT_HANDLER_FINAL', 8);
/** @link https://php.net/manual/en/outcontrol.constants.php */
define('PHP_OUTPUT_HANDLER_CLEANABLE', 16);
/** @link https://php.net/manual/en/outcontrol.constants.php */
define('PHP_OUTPUT_HANDLER_FLUSHABLE', 32);
/** @link https://php.net/manual/en/outcontrol.constants.php */
define('PHP_OUTPUT_HANDLER_REMOVABLE', 64);
/** @link https://php.net/manual/en/outcontrol.constants.php */
define('PHP_OUTPUT_HANDLER_STDFLAGS', 112);
/** @link https://php.net/manual/en/outcontrol.constants.php */
define('PHP_OUTPUT_HANDLER_STARTED', 4096);
/** @link https://php.net/manual/en/outcontrol.constants.php */
define('PHP_OUTPUT_HANDLER_DISABLED', 8192);
@ -274,4 +317,4 @@ define('PHP_OUTPUT_HANDLER_DISABLED', 8192);
* @since 5.3.7
* @link https://php.net/manual/en/reserved.constants.php
*/
define('PHP_MANDIR', '/usr/local/php/php/man');
define('PHP_MANDIR', "/usr/local/php/php/man");

View File

@ -1,13 +1,20 @@
<?php
// Start of PDO v.1.0.4dev
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
/**
* (PHP 5 >= 5.1.3, PHP 7, PECL pdo >= 1.0.3)<br/>
* Return an array of available PDO drivers
* @link https://php.net/manual/en/pdo.getavailabledrivers.php
* @return array <b>PDO::getAvailableDrivers</b> returns an array of PDO driver names. If
* no drivers are available, it returns an empty array.
*/
#[Pure]
function pdo_drivers(): array {}
/**
* Represents an error raised by PDO. You should not throw a
* <b>PDOException</b> from your own code.
@ -16,7 +23,6 @@ use JetBrains\PhpStorm\Pure;
*/
class PDOException extends RuntimeException
{
#[LanguageLevelTypeAware(['8.1' => 'array|null'], default: '')]
public $errorInfo;
protected $code;
}
@ -63,54 +69,6 @@ class PDO
*/
public const PARAM_BOOL = 5;
/**
* Flag to denote a string uses the national character set.
* @since 7.2
* @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-str-natl
*/
public const PARAM_STR_NATL = 1073741824;
/**
* Flag to denote a string uses the regular character set.
* @since 7.2
* @link https://php.net/manual/en/pdo.constants.php#pdo.constants.param-str-char
*/
public const PARAM_STR_CHAR = 536870912;
/**
* Sets the default string parameter type, this can be one of PDO::PARAM_STR_NATL and PDO::PARAM_STR_CHAR.
* @since 7.2
* @link https://php.net/manual/en/pdo.constants.php#pdo.constants.attr-default-str-param
*/
public const ATTR_DEFAULT_STR_PARAM = 21;
/**
* Specifies that a function created with PDO::sqliteCreateFunction() is deterministic, i.e. it always returns the same result given the same inputs within a single SQL statement.
* @since 7.1.4
* @link https://php.net/manual/en/pdo.constants.php#pdo.constants.sqlite-deterministic
*/
public const SQLITE_DETERMINISTIC = 2048;
/**
* @since 7.3
*/
public const SQLITE_OPEN_READONLY = 1;
/**
* @since 7.3
*/
public const SQLITE_OPEN_READWRITE = 2;
/**
* @since 7.3
*/
public const SQLITE_OPEN_CREATE = 4;
/**
* @since 7.3
*/
public const SQLITE_ATTR_OPEN_FLAGS = 1000;
/**
* Specifies that the parameter is an INOUT parameter for a stored
* procedure. You must bitwise-OR this value with an explicit
@ -552,13 +510,6 @@ class PDO
*/
public const FETCH_ORI_REL = 5;
/**
* Specifies that the default fetch mode shall be used.
* @since 8.0.7
* @link https://php.net/manual/en/pdo.constants.php#pdo.constants.fetch-default
*/
public const FETCH_DEFAULT = 0;
/**
* Create a <b>PDOStatement</b> object with a forward-only cursor. This is the
* default cursor choice, as it is the fastest and most common data access
@ -734,33 +685,6 @@ class PDO
*/
public const MYSQL_ATTR_SSL_CIPHER = 1011;
/**
* <p>
* Disables multi query execution in both {@see PDO::prepare()} and {@see PDO::query()} when set to FALSE.
* </p>
* <p>
* Note, this constant can only be used in the driver_options array when constructing a new database handle.
* </p>
* @since 5.5.21
* @link https://php.net/manual/en/ref.pdo-mysql.php#pdo.constants.mysql-attr-multi-statements
*/
public const MYSQL_ATTR_MULTI_STATEMENTS = 1013;
/**
* <p>
* Disables SSL peer verification when set to FALSE.
* </p>
* @since 7.0.18
* @since 7.1.4
* @link https://bugs.php.net/bug.php?id=71003
*/
public const MYSQL_ATTR_SSL_VERIFY_SERVER_CERT = 1014;
/**
* @since 8.1
*/
public const MYSQL_ATTR_LOCAL_INFILE_DIRECTORY = 1015;
#[Deprecated("Use PDO::ATTR_EMULATE_PREPARES instead")]
public const PGSQL_ASSOC = 1;
@ -768,11 +692,6 @@ class PDO
* @removed 7.1
*/
public const PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT = 1000;
/**
* @since 5.6
*/
public const PGSQL_ATTR_DISABLE_PREPARES = 1000;
public const PGSQL_BAD_RESPONSE = 5;
public const PGSQL_BOTH = 3;
public const PGSQL_TRANSACTION_IDLE = 0;
@ -834,11 +753,11 @@ class PDO
public const PGSQL_STATUS_LONG = 1;
public const PGSQL_STATUS_STRING = 2;
public const PGSQL_TUPLES_OK = 2;
public const SQLSRV_TXN_READ_UNCOMMITTED = "READ_UNCOMMITTED";
public const SQLSRV_TXN_READ_COMMITTED = "READ_COMMITTED";
public const SQLSRV_TXN_REPEATABLE_READ = "REPEATABLE_READ";
public const SQLSRV_TXN_SNAPSHOT = "SNAPSHOT";
public const SQLSRV_TXN_SERIALIZABLE = "SERIALIZABLE";
public const SQLSRV_TXN_READ_UNCOMMITTED = 'READ_UNCOMMITTED';
public const SQLSRV_TXN_READ_COMMITTED = 'READ_COMMITTED';
public const SQLSRV_TXN_REPEATABLE_READ = 'REPEATABLE_READ';
public const SQLSRV_TXN_SNAPSHOT = 'SNAPSHOT';
public const SQLSRV_TXN_SERIALIZABLE = 'SERIALIZABLE';
public const SQLSRV_ENCODING_BINARY = 2;
public const SQLSRV_ENCODING_SYSTEM = 3;
public const SQLSRV_ENCODING_UTF8 = 65001;
@ -859,50 +778,6 @@ class PDO
public const SQLSRV_CURSOR_STATIC = 3;
public const SQLSRV_CURSOR_BUFFERED = 42;
/**
* @since 7.4
*/
public const SQLITE_ATTR_READONLY_STATEMENT = 1001;
/**
* @since 7.4
*/
public const SQLITE_ATTR_EXTENDED_RESULT_CODES = 1002;
/**
* Provides a way to specify the action on the database session.
* @since 7.2.16
* @since 7.3.3
*/
public const OCI_ATTR_ACTION = 1000;
/**
* Provides a way to specify the client info on the database session.
* @since 7.2.16
* @since 7.3.3
*/
public const OCI_ATTR_CLIENT_INFO = 1001;
/**
* Provides a way to specify the client identifier on the database session.
* @since 7.2.16
* @since 7.3.3
*/
public const OCI_ATTR_CLIENT_IDENTIFIER = 1002;
/**
* Provides a way to specify the module on the database session.
* @since 7.2.16
* @since 7.3.3
*/
public const OCI_ATTR_MODULE = 1003;
/**
* The number of milliseconds to wait for individual round trips to the database to complete before timing out.
* @since 8.0
*/
public const OCI_ATTR_CALL_TIMEOUT = 1004;
/**
* Sets the date format.
*/
@ -919,7 +794,7 @@ class PDO
public const FB_ATTR_TIMESTAMP_FORMAT = 1002;
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)<br/>
* Creates a PDO instance representing a connection to a database
* @link https://php.net/manual/en/pdo.construct.php
* @param string $dsn
@ -928,15 +803,10 @@ class PDO
* @param array $options [optional]
* @throws PDOException if the attempt to connect to the requested database fails.
*/
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $dsn,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $username = null,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $password = null,
#[LanguageLevelTypeAware(['8.0' => 'array|null'], default: '')] $options = null
) {}
public function __construct($dsn, $username = null, $password = null, $options = null) {}
/**
* (PHP 5 &gt;= 5.1.3, PHP 7, PECL pdo &gt;= 1.0.3)<br/>
* (PHP 5 >= 5.1.3, PHP 7, PECL pdo >= 1.0.3)<br/>
* Return an array of available PDO drivers
* @link https://php.net/manual/en/pdo.getavailabledrivers.php
* @return array <b>PDO::getAvailableDrivers</b> returns an array of PDO driver names. If
@ -946,7 +816,7 @@ class PDO
public static function getAvailableDrivers(): array {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)<br/>
* Prepares a statement for execution and returns a statement object
* @link https://php.net/manual/en/pdo.prepare.php
* @param string $query <p>
@ -973,13 +843,10 @@ class PDO
* so <b>PDO::prepare</b> does not check the statement.
*/
#[TentativeType]
public function prepare(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $query,
array $options = []
): PDOStatement|false {}
public function prepare($query, array $options = []): PDOStatement|false {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)<br/>
* Initiates a transaction
* <p>
* Turns off autocommit mode. While autocommit mode is turned off,
@ -1006,7 +873,7 @@ class PDO
public function beginTransaction(): bool {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)<br/>
* Commits a transaction
* @link https://php.net/manual/en/pdo.commit.php
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
@ -1016,7 +883,7 @@ class PDO
public function commit(): bool {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)<br/>
* Rolls back a transaction
* @link https://php.net/manual/en/pdo.rollback.php
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
@ -1026,7 +893,7 @@ class PDO
public function rollBack(): bool {}
/**
* (PHP 5 &gt;= 5.3.3, Bundled pdo_pgsql, PHP 7)<br/>
* (PHP 5 >= 5.3.3, Bundled pdo_pgsql, PHP 7)<br/>
* Checks if inside a transaction
* @link https://php.net/manual/en/pdo.intransaction.php
* @return bool <b>TRUE</b> if a transaction is currently active, and <b>FALSE</b> if not.
@ -1035,7 +902,7 @@ class PDO
public function inTransaction(): bool {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)<br/>
* Set an attribute
* @link https://php.net/manual/en/pdo.setattribute.php
* @param int $attribute
@ -1043,13 +910,10 @@ class PDO
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function setAttribute(
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $attribute,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value
): bool {}
public function setAttribute($attribute, $value): bool {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)<br/>
* Execute an SQL statement and return the number of affected rows
* @link https://php.net/manual/en/pdo.exec.php
* @param string $statement <p>
@ -1077,10 +941,10 @@ class PDO
* </code>
*/
#[TentativeType]
public function exec(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $statement): int|false {}
public function exec($statement): int|false {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.2.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)<br/>
* Executes an SQL statement, returning a result set as a PDOStatement object
* @link https://php.net/manual/en/pdo.query.php
* @param string $statement <p>
@ -1103,35 +967,10 @@ class PDO
* on failure.
* @see PDOStatement::setFetchMode For a full description of the second and following parameters.
*/
#[PhpStormStubsElementAvailable(to: '7.4')]
public function query($statement, $mode = PDO::ATTR_DEFAULT_FETCH_MODE, $arg3 = null, array $ctorargs = []) {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.2.0)<br/>
* Executes an SQL statement, returning a result set as a PDOStatement object
* @link https://php.net/manual/en/pdo.query.php
* @param string $statement <p>
* The SQL statement to prepare and execute.
* </p>
* <p>
* Data inside the query should be properly escaped.
* </p>
* @param int $mode <p>
* The fetch mode must be one of the PDO::FETCH_* constants.
* </p>
* @param mixed $fetch_mode_args <p>
* Arguments of custom class constructor when the <i>mode</i>
* parameter is set to <b>PDO::FETCH_CLASS</b>.
* </p>
* @return PDOStatement|false <b>PDO::query</b> returns a PDOStatement object, or <b>FALSE</b>
* on failure.
* @see PDOStatement::setFetchMode For a full description of the second and following parameters.
*/
#[PhpStormStubsElementAvailable('8.0')]
public function query($statement, $mode = PDO::ATTR_DEFAULT_FETCH_MODE, ...$fetch_mode_args) {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)<br/>
* Returns the ID of the last inserted row or sequence value
* @link https://php.net/manual/en/pdo.lastinsertid.php
* @param string $name [optional] <p>
@ -1154,10 +993,10 @@ class PDO
* IM001 SQLSTATE.
*/
#[TentativeType]
public function lastInsertId(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $name = null): string|false {}
public function lastInsertId($name = null): string|false {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)<br/>
* Fetch the SQLSTATE associated with the last operation on the database handle
* @link https://php.net/manual/en/pdo.errorcode.php
* @return mixed an SQLSTATE, a five characters alphanumeric identifier defined in
@ -1186,7 +1025,7 @@ class PDO
public function errorCode(): ?string {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)<br/>
* Fetch extended error information associated with the last operation on the database handle
* @link https://php.net/manual/en/pdo.errorinfo.php
* @return array <b>PDO::errorInfo</b> returns an array of error information
@ -1229,7 +1068,7 @@ class PDO
public function errorInfo(): array {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.2.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)<br/>
* Retrieve a database connection attribute
* @link https://php.net/manual/en/pdo.getattribute.php
* @param int $attribute <p>
@ -1252,10 +1091,10 @@ class PDO
* An unsuccessful call returns null.
*/
#[TentativeType]
public function getAttribute(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $attribute): mixed {}
public function getAttribute($attribute): mixed {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.2.1)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.1)<br/>
* Quotes a string for use in a query.
* @link https://php.net/manual/en/pdo.quote.php
* @param string $string <p>
@ -1269,17 +1108,14 @@ class PDO
* this way.
*/
#[TentativeType]
public function quote(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $string,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $type = PDO::PARAM_STR
): string|false {}
public function quote($string, $type = PDO::PARAM_STR): string|false {}
final public function __wakeup() {}
final public function __sleep() {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo_sqlite &gt;= 1.0.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo_sqlite >= 1.0.0)<br/>
* Registers a User Defined Function for use in SQL statements
* @link https://php.net/manual/en/pdo.sqlitecreatefunction.php
* @param string $function_name <p>
@ -1302,7 +1138,7 @@ class PDO
public function sqliteCreateFunction($function_name, $callback, $num_args = -1, $flags = 0) {}
/**
* (PHP 5 &gt;= 5.3.3, PHP 7, PHP 8)<br/>
* (PHP 5 >= 5.3.3, PHP 7, PHP 8)<br/>
* Copy data from PHP array into table
* @link https://www.php.net/manual/en/pdo.pgsqlcopyfromarray.php
* @param string $tableName <p>
@ -1322,16 +1158,10 @@ class PDO
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function pgsqlCopyFromArray(
string $tableName,
array $rows,
string $separator = "\t",
string $nullAs = "\\\\N",
?string $fields = null
): bool {}
public function pgsqlCopyFromArray(string $tableName, array $rows, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): bool {}
/**
* (PHP 5 &gt;= 5.3.3, PHP 7, PHP 8)<br/>
* (PHP 5 >= 5.3.3, PHP 7, PHP 8)<br/>
* Copy data from file into table
* @link https://www.php.net/manual/en/pdo.pgsqlcopyfromfile.php
* @param string $tableName <p>
@ -1351,16 +1181,10 @@ class PDO
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function pgsqlCopyFromFile(
string $tableName,
string $filename,
string $separator = "\t",
string $nullAs = "\\\\N",
?string $fields = null
): bool {}
public function pgsqlCopyFromFile(string $tableName, string $filename, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): bool {}
/**
* (PHP 5 &gt;= 5.3.3, PHP 7, PHP 8)<br/>
* (PHP 5 >= 5.3.3, PHP 7, PHP 8)<br/>
* Copy data from database table into PHP array
* @link https://www.php.net/manual/en/pdo.pgsqlcopytoarray.php
* @param string $tableName <p>
@ -1377,15 +1201,10 @@ class PDO
* </p>
* @return array|false returns an array of rows, or <b>FALSE</b> on failure.
*/
public function pgsqlCopyToArray(
string $tableName,
string $separator = "\t",
string $nullAs = "\\\\N",
?string $fields = null
): array|false {}
public function pgsqlCopyToArray(string $tableName, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): array|false {}
/**
* (PHP 5 &gt;= 5.3.3, PHP 7, PHP 8)<br/>
* (PHP 5 >= 5.3.3, PHP 7, PHP 8)<br/>
* Copy data from table into file
* @link https://www.php.net/manual/en/pdo.pgsqlcopytofile.php
* @param string $tableName <p>
@ -1405,16 +1224,10 @@ class PDO
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function pgsqlCopyToFile(
string $tableName,
string $filename,
string $separator = "\t",
string $nullAs = "\\\\N",
?string $fields = null
): bool {}
public function pgsqlCopyToFile(string $tableName, string $filename, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): bool {}
/**
* (PHP 5 &gt;= 5.1.2, PHP 7, PHP 8, PECL pdo_pgsql &gt;= 1.0.2)<br/>
* (PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL pdo_pgsql >= 1.0.2)<br/>
* Creates a new large object
* @link https://www.php.net/manual/en/pdo.pgsqllobcreate.php
* @return string|false returns the OID of the newly created large object on success,
@ -1423,7 +1236,7 @@ class PDO
public function pgsqlLOBCreate(): string|false {}
/**
* (PHP 5 &gt;= 5.1.2, PHP 7, PHP 8, PECL pdo_pgsql &gt;= 1.0.2)<br/>
* (PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL pdo_pgsql >= 1.0.2)<br/>
* Opens an existing large object stream
* @link https://www.php.net/manual/en/pdo.pgsqllobopen.php
* @param string $oid <p>
@ -1434,10 +1247,10 @@ class PDO
* </p>
* @return resource|false returns a stream resource on success or <b>FALSE</b> on failure.
*/
public function pgsqlLOBOpen(string $oid, string $mode = "rb") {}
public function pgsqlLOBOpen(string $oid, string $mode = 'rb') {}
/**
* (PHP 5 &gt;= 5.1.2, PHP 7, PHP 8, PECL pdo_pgsql &gt;= 1.0.2)<br/>
* (PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL pdo_pgsql >= 1.0.2)<br/>
* Deletes the large object
* @link https://www.php.net/manual/en/pdo.pgsqllobunlink.php
* @param string $oid <p>
@ -1446,33 +1259,10 @@ class PDO
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function pgsqlLOBUnlink(string $oid): bool {}
/**
* (PHP 5 &gt;= 5.6.0, PHP 7, PHP 8)<br/>
* Get asynchronous notification
* @link https://www.php.net/manual/en/pdo.pgsqlgetnotify.php
* @param int $fetchMode <p>
* The format the result set should be returned as, represented as a <b>PDO::FETCH_*</b> constant.
* </p>
* @param int $timeoutMilliseconds <p>
* The length of time to wait for a response, in milliseconds.
* </p>
* @return array|false if one or more notifications is pending, returns a single row,
* with fields message and pid, otherwise <b>FALSE</b>.
*/
public function pgsqlGetNotify(int $fetchMode = PDO::FETCH_DEFAULT, int $timeoutMilliseconds = 0): array|false {}
/**
* (PHP 5 &gt;= 5.6.0, PHP 7, PHP 8)<br/>
* Get the server PID
* @link https://www.php.net/manual/en/pdo.pgsqlgetpid.php
* @return int The server's PID.
*/
public function pgsqlGetPid(): int {}
}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 1.0.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 1.0.0)<br/>
* Represents a prepared statement and, after the statement is executed, an
* associated result set.
* @link https://php.net/manual/en/class.pdostatement.php
@ -1482,11 +1272,10 @@ class PDOStatement implements IteratorAggregate
/**
* @var string
*/
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
public $queryString;
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)<br/>
* Executes a prepared statement
* @link https://php.net/manual/en/pdostatement.execute.php
* @param array $params [optional] <p>
@ -1509,10 +1298,10 @@ class PDOStatement implements IteratorAggregate
* @throws PDOException On error if PDO::ERRMODE_EXCEPTION option is true.
*/
#[TentativeType]
public function execute(#[LanguageLevelTypeAware(['8.0' => 'array|null'], default: '')] $params = null): bool {}
public function execute($params = null): bool {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)<br/>
* Fetches the next row from a result set
* @link https://php.net/manual/en/pdostatement.fetch.php
* @param int $mode [optional] <p>
@ -1540,14 +1329,10 @@ class PDOStatement implements IteratorAggregate
* all cases, <b>FALSE</b> is returned on failure.
*/
#[TentativeType]
public function fetch(
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $mode = PDO::FETCH_BOTH,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $cursorOrientation = PDO::FETCH_ORI_NEXT,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $cursorOffset = 0
): mixed {}
public function fetch($mode = PDO::FETCH_BOTH, $cursorOrientation = PDO::FETCH_ORI_NEXT, $cursorOffset = 0): mixed {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)<br/>
* Binds a parameter to the specified variable name
* @link https://php.net/manual/en/pdostatement.bindparam.php
* @param mixed $param <p>
@ -1577,16 +1362,10 @@ class PDOStatement implements IteratorAggregate
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function bindParam(
#[LanguageLevelTypeAware(['8.0' => 'int|string'], default: '')] $param,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] &$var,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $type = PDO::PARAM_STR,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $maxLength = null,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $driverOptions = null
): bool {}
public function bindParam($param, &$var, $type = PDO::PARAM_STR, $maxLength = null, $driverOptions = null): bool {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)<br/>
* Bind a column to a PHP variable
* @link https://php.net/manual/en/pdostatement.bindcolumn.php
* @param mixed $column <p>
@ -1609,16 +1388,10 @@ class PDOStatement implements IteratorAggregate
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function bindColumn(
#[LanguageLevelTypeAware(['8.0' => 'int|string'], default: '')] $column,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] &$var,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $type = PDO::PARAM_STR,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $maxLength = null,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $driverOptions = null
): bool {}
public function bindColumn($column, &$var, $type = PDO::PARAM_STR, $maxLength = null, $driverOptions = null): bool {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 1.0.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 1.0.0)<br/>
* Binds a value to a parameter
* @link https://php.net/manual/en/pdostatement.bindvalue.php
* @param mixed $param <p>
@ -1638,14 +1411,10 @@ class PDOStatement implements IteratorAggregate
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function bindValue(
#[LanguageLevelTypeAware(['8.0' => 'int|string'], default: '')] $param,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $type = PDO::PARAM_STR
): bool {}
public function bindValue($param, $value, $type = PDO::PARAM_STR): bool {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)<br/>
* Returns the number of rows affected by the last SQL statement
* @link https://php.net/manual/en/pdostatement.rowcount.php
* @return int the number of rows.
@ -1654,7 +1423,7 @@ class PDOStatement implements IteratorAggregate
public function rowCount(): int {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.9.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.9.0)<br/>
* Returns a single column from the next row of a result set
* @link https://php.net/manual/en/pdostatement.fetchcolumn.php
* @param int $column [optional] <p>
@ -1670,10 +1439,10 @@ class PDOStatement implements IteratorAggregate
* use <b>PDOStatement::fetchColumn</b> to retrieve data.
*/
#[TentativeType]
public function fetchColumn(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $column = 0): mixed {}
public function fetchColumn($column = 0): mixed {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)<br/>
* Returns an array containing all of the result set rows
* @link https://php.net/manual/en/pdostatement.fetchall.php
* @param int $mode [optional] <p>
@ -1717,16 +1486,12 @@ class PDOStatement implements IteratorAggregate
* processing them with PHP.
*/
#[TentativeType]
public function fetchAll(
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $mode = PDO::FETCH_BOTH,
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $fetch_argument = null,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] ...$args
): array {}
public function fetchAll($mode = PDO::FETCH_BOTH, $fetch_argument = null, ...$args): array {}
/**
* @template T
*
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.2.4)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.4)<br/>
* Fetches the next row and returns it as an object.
* @link https://php.net/manual/en/pdostatement.fetchobject.php
* @param class-string<T> $class [optional] <p>
@ -1739,13 +1504,10 @@ class PDOStatement implements IteratorAggregate
* correspond to the column names or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function fetchObject(
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $class = "stdClass",
array $constructorArgs = []
): object|false {}
public function fetchObject($class = 'stdClass', array $constructorArgs = []): object|false {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)<br/>
* Fetch the SQLSTATE associated with the last operation on the statement handle
* @link https://php.net/manual/en/pdostatement.errorcode.php
* @return string Identical to <b>PDO::errorCode</b>, except that
@ -1756,7 +1518,7 @@ class PDOStatement implements IteratorAggregate
public function errorCode(): ?string {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)<br/>
* Fetch extended error information associated with the last operation on the statement handle
* @link https://php.net/manual/en/pdostatement.errorinfo.php
* @return array <b>PDOStatement::errorInfo</b> returns an array of
@ -1785,7 +1547,7 @@ class PDOStatement implements IteratorAggregate
public function errorInfo(): array {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.2.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)<br/>
* Set a statement attribute
* @link https://php.net/manual/en/pdostatement.setattribute.php
* @param int $attribute
@ -1793,23 +1555,20 @@ class PDOStatement implements IteratorAggregate
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function setAttribute(
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $attribute,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value
): bool {}
public function setAttribute($attribute, $value): bool {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.2.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)<br/>
* Retrieve a statement attribute
* @link https://php.net/manual/en/pdostatement.getattribute.php
* @param int $name
* @return mixed the attribute value.
*/
#[TentativeType]
public function getAttribute(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $name): mixed {}
public function getAttribute($name): mixed {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.2.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)<br/>
* Returns the number of columns in the result set
* @link https://php.net/manual/en/pdostatement.columncount.php
* @return int the number of columns in the result set represented by the
@ -1820,7 +1579,7 @@ class PDOStatement implements IteratorAggregate
public function columnCount(): int {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.2.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)<br/>
* Returns metadata for a column in a result set
* @link https://php.net/manual/en/pdostatement.getcolumnmeta.php
* @param int $column <p>
@ -1880,20 +1639,11 @@ class PDOStatement implements IteratorAggregate
* or if no result set exists.
*/
#[TentativeType]
#[ArrayShape([
"name" => "string",
"len" => "int",
"precision" => "int",
"oci:decl_type" => "int|string",
"native_type" => "string",
"scale" => "int",
"flags" => "array",
"pdo_type" => "int"
])]
public function getColumnMeta(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $column): array|false {}
#[ArrayShape(["name" => "string", "len" => "int", "precision" => "int", "oci:decl_type" => "int|string", "native_type" => "string", "scale" => "int", "flags" => "array", "pdo_type" => "int"])]
public function getColumnMeta($column): array|false {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.2.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)<br/>
* Set the default fetch mode for this statement
* @link https://php.net/manual/en/pdostatement.setfetchmode.php
* @param int $mode <p>
@ -1905,27 +1655,10 @@ class PDOStatement implements IteratorAggregate
* @param array $params [optional] <p> Constructor arguments. </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
#[PhpStormStubsElementAvailable(to: '7.4')]
public function setFetchMode($mode, $className = null, array $params = []) {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.2.0)<br/>
* Set the default fetch mode for this statement
* @link https://php.net/manual/en/pdostatement.setfetchmode.php
* @param int $mode <p>
* The fetch mode must be one of the PDO::FETCH_* constants.
* </p>
* @param string|object|null $className [optional] <p>
* Class name or object
* </p>
* @param mixed ...$params <p> Constructor arguments. </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
#[PhpStormStubsElementAvailable('8.0')]
public function setFetchMode($mode, $className = null, ...$params) {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.2.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.2.0)<br/>
* Advances to the next rowset in a multi-rowset statement handle
* @link https://php.net/manual/en/pdostatement.nextrowset.php
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
@ -1934,7 +1667,7 @@ class PDOStatement implements IteratorAggregate
public function nextRowset(): bool {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.9.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.9.0)<br/>
* Closes the cursor, enabling the statement to be executed again.
* @link https://php.net/manual/en/pdostatement.closecursor.php
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
@ -1943,7 +1676,7 @@ class PDOStatement implements IteratorAggregate
public function closeCursor(): bool {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.9.0)<br/>
* (PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.9.0)<br/>
* Dump an SQL prepared command
* @link https://php.net/manual/en/pdostatement.debugdumpparams.php
* @return bool|null No value is returned.
@ -1954,28 +1687,9 @@ class PDOStatement implements IteratorAggregate
final public function __wakeup() {}
final public function __sleep() {}
/**
* @return Iterator
* @since 8.0
*/
public function getIterator(): Iterator {}
}
final class PDORow
{
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
public $queryString;
}
/**
* (PHP 5 &gt;= 5.1.3, PHP 7, PECL pdo &gt;= 1.0.3)<br/>
* Return an array of available PDO drivers
* @link https://php.net/manual/en/pdo.getavailabledrivers.php
* @return array <b>PDO::getAvailableDrivers</b> returns an array of PDO driver names. If
* no drivers are available, it returns an empty array.
*/
#[Pure]
function pdo_drivers(): array {}
// End of PDO v.1.0.4dev

View File

@ -1,9 +1,6 @@
<?php
// Start of Phar v.2.0.1
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
/**
@ -38,7 +35,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
public const OPENSSL_SHA512 = 6;
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Construct a Phar archive object
* @link https://php.net/manual/en/phar.construct.php
* @param string $filename <p>
@ -55,15 +52,10 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* @throws BadMethodCallException If called twice.
* @throws UnexpectedValueException If the phar archive can't be opened.
*/
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $filename,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $alias = null,
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] $fileformat = null
) {}
public function __construct($filename, $flags = FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO, $alias = null, $fileformat = null) {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Returns the api version
* @link https://php.net/manual/en/phar.apiversion.php
* @return string The API version string as in &#x00022;1.0.0&#x00022;.
@ -71,7 +63,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
final public static function apiVersion(): string {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Returns whether phar extension supports compression using either zlib or bzip2
* @link https://php.net/manual/en/phar.cancompress.php
* @param int $compression [optional] <p>
@ -84,7 +76,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
final public static function canCompress(int $compression = 0): bool {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Returns whether phar extension supports writing and creating phars
* @link https://php.net/manual/en/phar.canwrite.php
* @return bool <b>TRUE</b> if write access is enabled, <b>FALSE</b> if it is disabled.
@ -104,7 +96,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
final public static function createDefaultStub(?string $index = null, ?string $webIndex = null): string {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.2.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.2.0)<br/>
* Return array of supported compression algorithms
* @link https://php.net/manual/en/phar.getsupportedcompression.php
* @return string[] an array containing any of "GZ" or
@ -115,7 +107,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
final public static function getSupportedCompression(): array {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.1.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.1.0)<br/>
* Return array of supported signature types
* @link https://php.net/manual/en/phar.getsupportedsignatures.php
* @return string[] an array containing any of "MD5", "SHA-1",
@ -124,7 +116,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
final public static function getSupportedSignatures(): array {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* instructs phar to intercept fopen, file_get_contents, opendir, and all of the stat-related functions
* @link https://php.net/manual/en/phar.interceptfilefuncs.php
* @return void
@ -132,7 +124,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
final public static function interceptFileFuncs(): void {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.2.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.2.0)<br/>
* Returns whether the given filename is a valid phar filename
* @link https://php.net/manual/en/phar.isvalidpharfilename.php
* @param string $filename <p>
@ -147,7 +139,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
final public static function isValidPharFilename(string $filename, bool $executable = true): bool {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Loads any phar archive with an alias
* @link https://php.net/manual/en/phar.loadphar.php
* @param string $filename <p>
@ -164,7 +156,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
final public static function loadPhar(string $filename, ?string $alias = null): bool {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Reads the currently executed file (a phar) and registers its manifest
* @link https://php.net/manual/en/phar.mapphar.php
* @param string|null $alias [optional] <p>
@ -179,7 +171,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
final public static function mapPhar(?string $alias = null, int $offset = 0): bool {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* Returns the full path on disk or full phar URL to the currently executing Phar archive
* @link https://php.net/manual/en/phar.running.php
* @param bool $returnPhar <p>
@ -188,13 +180,10 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* </p>
* @return string the filename if valid, empty string otherwise.
*/
final public static function running(
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] $returnPhar,
#[PhpStormStubsElementAvailable(from: '7.0')] bool $returnPhar = true
): string {}
final public static function running($returnPhar): string {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* Mount an external path or file to a virtual location within the phar archive
* @link https://php.net/manual/en/phar.mount.php
* @param string $pharPath <p>
@ -224,7 +213,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
final public static function mungServer(array $variables): void {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* Completely remove a phar archive from disk and from memory
* @link https://php.net/manual/en/phar.unlinkarchive.php
* @param string $filename <p>
@ -236,7 +225,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
final public static function unlinkArchive(string $filename): bool {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* mapPhar for web-based phars. front controller for web applications
* @link https://php.net/manual/en/phar.webphar.php
* @param null|string $alias [optional] <p>
@ -313,13 +302,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* </p>
* @return void No value is returned.
*/
final public static function webPhar(
?string $alias = null,
?string $index = "index.php",
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $fileNotFoundScript = null,
array $mimeTypes = null,
?callable $rewrite = null
): void {}
final public static function webPhar(?string $alias = null, ?string $index = 'index.php', string $fileNotFoundScript = null, array $mimeTypes = null, ?callable $rewrite = null): void {}
public function __destruct() {}
@ -333,10 +316,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* @return void no return value, exception is thrown on failure.
*/
#[TentativeType]
public function addEmptyDir(
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $directory = '',
#[PhpStormStubsElementAvailable(from: '8.0')] string $directory
): void {}
public function addEmptyDir($directory = ''): void {}
/**
* (Unknown)<br/>
@ -352,10 +332,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* @return void no return value, exception is thrown on failure.
*/
#[TentativeType]
public function addFile(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $filename,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $localName = null
): void {}
public function addFile($filename, $localName = null): void {}
/**
* (Unknown)<br/>
@ -370,14 +347,10 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* @return void no return value, exception is thrown on failure.
*/
#[TentativeType]
public function addFromString(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $localName,
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $contents = '',
#[PhpStormStubsElementAvailable(from: '8.0')] string $contents
): void {}
public function addFromString($localName, $contents = ''): void {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* Construct a phar archive from the files within a directory.
* @link https://php.net/manual/en/phar.buildfromdirectory.php
* @param string $directory <p>
@ -394,13 +367,10 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* filesystem.
*/
#[TentativeType]
public function buildFromDirectory(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $directory,
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $pattern = null
): array {}
public function buildFromDirectory($directory, $pattern = null): array {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* Construct a phar archive from an iterator.
* @link https://php.net/manual/en/phar.buildfromiterator.php
* @param Traversable $iterator <p>
@ -416,13 +386,10 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* filesystem.
*/
#[TentativeType]
public function buildFromIterator(
Traversable $iterator,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $baseDirectory = null
): array {}
public function buildFromIterator(Traversable $iterator, $baseDirectory = null): array {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* Compresses all files in the current Phar archive
* @link https://php.net/manual/en/phar.compressfiles.php
* @param int $compression <p>
@ -433,10 +400,10 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* @return void No value is returned.
*/
#[TentativeType]
public function compressFiles(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $compression): void {}
public function compressFiles($compression): void {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* Decompresses all files in the current Phar archive
* @link https://php.net/manual/en/phar.decompressfiles.php
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
@ -444,7 +411,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
public function decompressFiles() {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* Compresses the entire Phar archive using Gzip or Bzip2 compression
* @link https://php.net/manual/en/phar.compress.php
* @param int $compression <p>
@ -462,13 +429,10 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* @return static|null a <b>Phar</b> object.
*/
#[TentativeType]
public function compress(
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $compression,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $extension = null
): ?Phar {}
public function compress($compression, $extension = null): ?Phar {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* Decompresses the entire Phar archive
* @link https://php.net/manual/en/phar.decompress.php
* @param string $extension [optional] <p>
@ -481,10 +445,10 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* @return static|null A <b>Phar</b> object is returned.
*/
#[TentativeType]
public function decompress(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $extension = null): ?Phar {}
public function decompress($extension = null): ?Phar {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* Convert a phar archive to another executable phar archive file format
* @link https://php.net/manual/en/phar.converttoexecutable.php
* @param int $format [optional] <p>
@ -515,14 +479,10 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* exception on failure.
*/
#[TentativeType]
public function convertToExecutable(
#[LanguageLevelTypeAware(['8.0' => 'int|null'], default: '')] $format = 9021976,
#[LanguageLevelTypeAware(['8.0' => 'int|null'], default: '')] $compression = 9021976,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $extension = null
): ?Phar {}
public function convertToExecutable($format = 9021976, $compression = 9021976, $extension = null): ?Phar {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* Convert a phar archive to a non-executable tar or zip file
* @link https://php.net/manual/en/phar.converttodata.php
* @param int $format [optional] <p>
@ -551,14 +511,10 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* exception on failure.
*/
#[TentativeType]
public function convertToData(
#[LanguageLevelTypeAware(['8.0' => 'int|null'], default: '')] $format = 9021976,
#[LanguageLevelTypeAware(['8.0' => 'int|null'], default: '')] $compression = 9021976,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $extension = null
): ?PharData {}
public function convertToData($format = 9021976, $compression = 9021976, $extension = null): ?PharData {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* Copy a file internal to the phar archive to another new file within the phar
* @link https://php.net/manual/en/phar.copy.php
* @param string $to
@ -566,13 +522,10 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* @return bool returns <b>TRUE</b> on success, but it is safer to encase method call in a
* try/catch block and assume success if no exception is thrown.
*/
public function copy(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $to,
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $from
) {}
public function copy($to, $from) {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Returns the number of entries (files) in the Phar archive
* @link https://php.net/manual/en/phar.count.php
* @param int $mode [optional]
@ -580,10 +533,10 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* if none.
*/
#[TentativeType]
public function count(#[PhpStormStubsElementAvailable(from: '8.0')] int $mode = COUNT_NORMAL): int {}
public function count(): int {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* Delete a file within a phar archive
* @link https://php.net/manual/en/phar.delete.php
* @param string $localName <p>
@ -592,10 +545,10 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* @return bool returns <b>TRUE</b> on success, but it is better to check for thrown exception,
* and assume success if none is thrown.
*/
public function delete(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $localName) {}
public function delete($localName) {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.2.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.2.0)<br/>
* Deletes the global metadata of the phar
* @link https://php.net/manual/en/phar.delmetadata.php
* @return bool returns <b>TRUE</b> on success, but it is better to check for thrown exception,
@ -620,11 +573,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* and assume success if none is thrown.
*/
#[TentativeType]
public function extractTo(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $directory,
#[LanguageLevelTypeAware(['8.0' => 'array|string|null'], default: '')] $files = null,
#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $overwrite = false
): bool {}
public function extractTo($directory, $files = null, $overwrite = false): bool {}
/**
* @return string|null
@ -634,7 +583,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
public function getAlias(): ?string {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Returns phar archive meta-data
* @link https://php.net/manual/en/phar.getmetadata.php
* @param array $unserializeOptions [optional] if is set to anything other than the default,
@ -643,10 +592,10 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* or <b>NULL</b> if no meta-data is stored.
*/
#[TentativeType]
public function getMetadata(#[PhpStormStubsElementAvailable(from: '8.0')] array $unserializeOptions = []): mixed {}
public function getMetadata(): mixed {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Return whether phar was modified
* @link https://php.net/manual/en/phar.getmodified.php
* @return bool <b>TRUE</b> if the phar has been modified since opened, <b>FALSE</b> if not.
@ -655,7 +604,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
public function getModified(): bool {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Return MD5/SHA1/SHA256/SHA512/OpenSSL signature of a Phar archive
* @link https://php.net/manual/en/phar.getsignature.php
* @return array Array with the opened archive's signature in hash key and MD5,
@ -672,7 +621,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
public function getSignature(): array|false {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Return the PHP loader or bootstrap stub of a Phar archive
* @link https://php.net/manual/en/phar.getstub.php
* @return string a string containing the contents of the bootstrap loader (stub) of
@ -682,7 +631,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
public function getStub(): string {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Return version info of Phar archive
* @link https://php.net/manual/en/phar.getversion.php
* @return string The opened archive's API version. This is not to be confused with
@ -695,7 +644,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
public function getVersion(): string {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.2.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.2.0)<br/>
* Returns whether phar has global meta-data
* @link https://php.net/manual/en/phar.hasmetadata.php
* @return bool <b>TRUE</b> if meta-data has been set, and <b>FALSE</b> if not.
@ -704,7 +653,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
public function hasMetadata(): bool {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Used to determine whether Phar write operations are being buffered, or are flushing directly to disk
* @link https://php.net/manual/en/phar.isbuffering.php
* @return bool <b>TRUE</b> if the write operations are being buffer, <b>FALSE</b> otherwise.
@ -713,7 +662,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
public function isBuffering(): bool {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* Returns Phar::GZ or PHAR::BZ2 if the entire phar archive is compressed (.tar.gz/tar.bz and so on)
* @link https://php.net/manual/en/phar.iscompressed.php
* @return mixed Phar::GZ, Phar::BZ2 or <b>FALSE</b>
@ -722,7 +671,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
public function isCompressed(): int|false {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* Returns true if the phar archive is based on the tar/phar/zip file format depending on the parameter
* @link https://php.net/manual/en/phar.isfileformat.php
* @param int $format <p>
@ -732,7 +681,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* @return bool <b>TRUE</b> if the phar archive matches the file format requested by the parameter
*/
#[TentativeType]
public function isFileFormat(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $format): bool {}
public function isFileFormat($format): bool {}
/**
* (Unknown)<br/>
@ -744,7 +693,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
public function isWritable(): bool {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* determines whether a file exists in the phar
* @link https://php.net/manual/en/phar.offsetexists.php
* @param string $localName <p>
@ -756,7 +705,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
public function offsetExists($localName): bool {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Gets a <b>PharFileInfo</b> object for a specific file
* @link https://php.net/manual/en/phar.offsetget.php
* @param string $localName <p>
@ -769,7 +718,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
public function offsetGet($localName): SplFileInfo {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* set the contents of an internal file to those of an external file
* @link https://php.net/manual/en/phar.offsetset.php
* @param string $localName <p>
@ -784,7 +733,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
public function offsetSet($localName, $value): void {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* remove a file from a phar
* @link https://php.net/manual/en/phar.offsetunset.php
* @param string $localName <p>
@ -796,7 +745,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
public function offsetUnset($localName): void {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.2.1)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.2.1)<br/>
* Set the alias for the Phar archive
* @link https://php.net/manual/en/phar.setalias.php
* @param string $alias <p>
@ -806,7 +755,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* @return bool
*/
#[TentativeType]
public function setAlias(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $alias): bool {}
public function setAlias($alias): bool {}
/**
* (Unknown)<br/>
@ -821,13 +770,10 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function setDefaultStub(
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $index = null,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $webIndex = null
): bool {}
public function setDefaultStub($index = null, $webIndex = null): bool {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Sets phar archive meta-data
* @link https://php.net/manual/en/phar.setmetadata.php
* @param mixed $metadata <p>
@ -836,10 +782,10 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* @return void No value is returned.
*/
#[TentativeType]
public function setMetadata(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $metadata): void {}
public function setMetadata($metadata): void {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.1.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.1.0)<br/>
* set the signature algorithm for a phar and apply it.
* @link https://php.net/manual/en/phar.setsignaturealgorithm.php
* @param int $algo <p>
@ -862,13 +808,10 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* @return void No value is returned.
*/
#[TentativeType]
public function setSignatureAlgorithm(
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $algo,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $privateKey = null
): void {}
public function setSignatureAlgorithm($algo, $privateKey = null): void {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Used to set the PHP loader or bootstrap stub of a Phar archive
* @link https://php.net/manual/en/phar.setstub.php
* @param string $stub <p>
@ -879,13 +822,10 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function setStub(
$stub,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $length = -1
) {}
public function setStub($stub, $length = -1) {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Start buffering Phar write operations, do not modify the Phar object on disk
* @link https://php.net/manual/en/phar.startbuffering.php
* @return void No value is returned.
@ -894,7 +834,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
public function startBuffering(): void {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Stop buffering write requests to the Phar archive, and save changes to disk
* @link https://php.net/manual/en/phar.stopbuffering.php
* @return void No value is returned.
@ -981,7 +921,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
class PharData extends Phar
{
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* Construct a non-executable tar or zip archive object
* @link https://php.net/manual/en/phardata.construct.php
* @param string $filename <p>
@ -1001,12 +941,7 @@ class PharData extends Phar
* available within the <b>Phar</b> class.
* </p>
*/
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $filename,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $alias = null,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $format = Phar::TAR
) {}
public function __construct($filename, $flags = FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO, $alias = null, $format = Phar::TAR) {}
/**
* @param string $localName
@ -1023,7 +958,7 @@ class PharData extends Phar
public function offsetGet($localName): SplFileInfo {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* set the contents of a file within the tar/zip to those of an external file or string
* @link https://php.net/manual/en/phardata.offsetset.php
* @param string $localName <p>
@ -1038,7 +973,7 @@ class PharData extends Phar
public function offsetSet($localName, $value): void {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* remove a file from a tar/zip archive
* @link https://php.net/manual/en/phardata.offsetunset.php
* @param string $localName <p>
@ -1123,7 +1058,7 @@ class PharData extends Phar
class PharFileInfo extends SplFileInfo
{
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Construct a Phar entry object
* @link https://php.net/manual/en/pharfileinfo.construct.php
* @param string $filename <p>
@ -1132,12 +1067,12 @@ class PharFileInfo extends SplFileInfo
* the entry should be phar://boo.phar/my/file.php.
* </p>
*/
public function __construct(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $filename) {}
public function __construct($filename) {}
public function __destruct() {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Sets file-specific permission bits
* @link https://php.net/manual/en/pharfileinfo.chmod.php
* @param int $perms <p>
@ -1146,19 +1081,19 @@ class PharFileInfo extends SplFileInfo
* @return void No value is returned.
*/
#[TentativeType]
public function chmod(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $perms): void {}
public function chmod($perms): void {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* Compresses the current Phar entry with either zlib or bzip2 compression
* @link https://php.net/manual/en/pharfileinfo.compress.php
* @param int $compression
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function compress(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $compression) {}
public function compress($compression) {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 2.0.0)<br/>
* Decompresses the current Phar entry within the phar
* @link https://php.net/manual/en/pharfileinfo.decompress.php
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
@ -1166,7 +1101,7 @@ class PharFileInfo extends SplFileInfo
public function decompress() {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.2.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.2.0)<br/>
* Deletes the metadata of the entry
* @link https://php.net/manual/en/pharfileinfo.delmetadata.php
* @return bool <b>TRUE</b> if successful, <b>FALSE</b> if the entry had no metadata.
@ -1179,7 +1114,7 @@ class PharFileInfo extends SplFileInfo
public function delMetadata() {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Returns the actual size of the file (with compression) inside the Phar archive
* @link https://php.net/manual/en/pharfileinfo.getcompressedsize.php
* @return int<0, max> The size in bytes of the file within the Phar archive on disk.
@ -1188,7 +1123,7 @@ class PharFileInfo extends SplFileInfo
public function getCompressedSize(): int {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Returns CRC32 code or throws an exception if CRC has not been verified
* @link https://php.net/manual/en/pharfileinfo.getcrc32.php
* @return int The <b>crc32</b> checksum of the file within the Phar archive.
@ -1200,7 +1135,7 @@ class PharFileInfo extends SplFileInfo
public function getContent(): string {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Returns file-specific meta-data saved with a file
* @link https://php.net/manual/en/pharfileinfo.getmetadata.php
* @param array $unserializeOptions [optional] if is set to anything other than the default,
@ -1209,10 +1144,10 @@ class PharFileInfo extends SplFileInfo
* or <b>NULL</b> if no meta-data is stored.
*/
#[TentativeType]
public function getMetadata(#[PhpStormStubsElementAvailable(from: '8.0')] array $unserializeOptions = []): mixed {}
public function getMetadata(): mixed {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Returns the Phar file entry flags
* @link https://php.net/manual/en/pharfileinfo.getpharflags.php
* @return int The Phar flags (always 0 in the current implementation)
@ -1221,7 +1156,7 @@ class PharFileInfo extends SplFileInfo
public function getPharFlags(): int {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.2.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.2.0)<br/>
* Returns the metadata of the entry
* @link https://php.net/manual/en/pharfileinfo.hasmetadata.php
* @return bool <b>FALSE</b> if no metadata is set or is <b>NULL</b>, <b>TRUE</b> if metadata is not <b>NULL</b>
@ -1230,7 +1165,7 @@ class PharFileInfo extends SplFileInfo
public function hasMetadata(): bool {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Returns whether the entry is compressed
* @link https://php.net/manual/en/pharfileinfo.iscompressed.php
* @param int $compression [optional] <p>
@ -1240,10 +1175,10 @@ class PharFileInfo extends SplFileInfo
* @return bool <b>TRUE</b> if the file is compressed within the Phar archive, <b>FALSE</b> if not.
*/
#[TentativeType]
public function isCompressed(#[LanguageLevelTypeAware(['8.0' => 'int|null'], default: '')] $compression = 9021976): bool {}
public function isCompressed($compression = 9021976): bool {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Returns whether file entry has had its CRC verified
* @link https://php.net/manual/en/pharfileinfo.iscrcchecked.php
* @return bool <b>TRUE</b> if the file has had its CRC verified, <b>FALSE</b> if not.
@ -1252,7 +1187,7 @@ class PharFileInfo extends SplFileInfo
public function isCRCChecked(): bool {}
/**
* (PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)<br/>
* (PHP >= 5.3.0, PECL phar >= 1.0.0)<br/>
* Sets file-specific meta-data saved with a file
* @link https://php.net/manual/en/pharfileinfo.setmetadata.php
* @param mixed $metadata <p>
@ -1261,6 +1196,5 @@ class PharFileInfo extends SplFileInfo
* @return void No value is returned.
*/
#[TentativeType]
public function setMetadata(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $metadata): void {}
public function setMetadata($metadata): void {}
}
// End of Phar v.2.0.1

View File

@ -170,9 +170,9 @@ const CLASSES = array (
'XSLTProcessor' => 'xsl/xsl.php',
'ZipArchive' => 'zip/zip.php',
'__PHP_Incomplete_Class' => 'standard/standard_0.php',
'___PHPSTORM_HELPERSPS_UNRESERVE_PREFIX_static' => 'standard/_types.php',
'___PHPSTORM_HELPERSPS_UNRESERVE_PREFIX_this' => 'standard/_types.php',
'___PHPSTORM_HELPERSobject' => 'standard/_types.php',
'___PHPSTORM_HELPERS\\PS_UNRESERVE_PREFIX_static' => 'standard/_types.php',
'___PHPSTORM_HELPERS\\PS_UNRESERVE_PREFIX_this' => 'standard/_types.php',
'___PHPSTORM_HELPERS\\object' => 'standard/_types.php',
'finfo' => 'fileinfo/fileinfo.php',
'iterable' => 'Core/Core_c.php',
'mysqli' => 'mysqli/mysqli.php',
@ -413,7 +413,6 @@ const FUNCTIONS = array (
'date_timezone_set' => 'date/date.php',
'datefmt_create' => 'intl/intl.php',
'datefmt_format' => 'intl/intl.php',
'datefmt_format_object' => 'intl/intl.php',
'datefmt_get_calendar' => 'intl/intl.php',
'datefmt_get_calendar_object' => 'intl/intl.php',
'datefmt_get_datetype' => 'intl/intl.php',
@ -422,7 +421,6 @@ const FUNCTIONS = array (
'datefmt_get_locale' => 'intl/intl.php',
'datefmt_get_pattern' => 'intl/intl.php',
'datefmt_get_timetype' => 'intl/intl.php',
'datefmt_get_timezone' => 'intl/intl.php',
'datefmt_get_timezone_id' => 'intl/intl.php',
'datefmt_is_lenient' => 'intl/intl.php',
'datefmt_localtime' => 'intl/intl.php',
@ -430,7 +428,6 @@ const FUNCTIONS = array (
'datefmt_set_calendar' => 'intl/intl.php',
'datefmt_set_lenient' => 'intl/intl.php',
'datefmt_set_pattern' => 'intl/intl.php',
'datefmt_set_timezone' => 'intl/intl.php',
'datefmt_set_timezone_id' => 'intl/intl.php',
'dba_close' => 'dba/dba.php',
'dba_delete' => 'dba/dba.php',
@ -3845,6 +3842,7 @@ const CONSTANTS = array (
'OPENSSL_CIPHER_RC2_128' => 'openssl/openssl.php',
'OPENSSL_CIPHER_RC2_40' => 'openssl/openssl.php',
'OPENSSL_CIPHER_RC2_64' => 'openssl/openssl.php',
'OPENSSL_DEFAULT_STREAM_CIPHERS' => 'openssl/openssl.php',
'OPENSSL_DONT_ZERO_PAD_KEY' => 'openssl/openssl.php',
'OPENSSL_KEYTYPE_DH' => 'openssl/openssl.php',
'OPENSSL_KEYTYPE_DSA' => 'openssl/openssl.php',

View File

@ -7,30 +7,30 @@ namespace PHPSTORM_META {
);
registerArgumentsSet('ReflectionClassModifiers',
\ReflectionClass::IS_FINAL |
\ReflectionClass::IS_EXPLICIT_ABSTRACT |
\ReflectionClass::IS_FINAL|
\ReflectionClass::IS_EXPLICIT_ABSTRACT|
\ReflectionClass::IS_IMPLICIT_ABSTRACT
);
registerArgumentsSet('ReflectionMethodModifiers',
\ReflectionMethod::IS_ABSTRACT |
\ReflectionMethod::IS_FINAL |
\ReflectionMethod::IS_PUBLIC |
\ReflectionMethod::IS_PRIVATE |
\ReflectionMethod::IS_PROTECTED |
\ReflectionMethod::IS_ABSTRACT|
\ReflectionMethod::IS_FINAL|
\ReflectionMethod::IS_PUBLIC|
\ReflectionMethod::IS_PRIVATE|
\ReflectionMethod::IS_PROTECTED|
\ReflectionMethod::IS_STATIC
);
registerArgumentsSet('ReflectionPropertyModifiers',
\ReflectionProperty::IS_PUBLIC |
\ReflectionProperty::IS_PRIVATE |
\ReflectionProperty::IS_PROTECTED |
\ReflectionProperty::IS_PUBLIC|
\ReflectionProperty::IS_PRIVATE|
\ReflectionProperty::IS_PROTECTED|
\ReflectionProperty::IS_STATIC
);
registerArgumentsSet('ReflectionConstantModifiers',
\ReflectionClassConstant::IS_PUBLIC |
\ReflectionClassConstant::IS_PRIVATE |
\ReflectionClassConstant::IS_PUBLIC|
\ReflectionClassConstant::IS_PRIVATE|
\ReflectionClassConstant::IS_PROTECTED
);
@ -40,12 +40,12 @@ namespace PHPSTORM_META {
);
registerArgumentsSet('ReflectionAttributeTarget',
\Attribute::TARGET_CLASS |
\Attribute::TARGET_FUNCTION |
\Attribute::TARGET_METHOD |
\Attribute::TARGET_PROPERTY |
\Attribute::TARGET_CLASS_CONSTANT |
\Attribute::TARGET_PARAMETER |
\Attribute::TARGET_CLASS|
\Attribute::TARGET_FUNCTION|
\Attribute::TARGET_METHOD|
\Attribute::TARGET_PROPERTY|
\Attribute::TARGET_CLASS_CONSTANT|
\Attribute::TARGET_PARAMETER|
\Attribute::TARGET_ALL
);

View File

@ -1,7 +1,6 @@
<?php
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\TentativeType;
/**
@ -19,7 +18,7 @@ class Reflection
* @return string[] An array of modifier names.
*/
#[TentativeType]
public static function getModifierNames(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $modifiers): array {}
public static function getModifierNames($modifiers): array {}
/**
* Exports
@ -32,6 +31,6 @@ class Reflection
* export is returned as a string, otherwise {@see null} is returned.
* @removed 8.0
*/
#[Deprecated(since: '7.4')]
#[Deprecated(since: "7.4")]
public static function export(Reflector $reflector, $return = false) {}
}

View File

@ -1,83 +0,0 @@
<?php
use JetBrains\PhpStorm\Pure;
/**
* @since 8.0
*
* @template T of object
*/
class ReflectionAttribute implements Reflector
{
/**
* Indicates that the search for a suitable attribute should not be by
* strict comparison, but by the inheritance chain.
*
* Used for the argument of flags of the "getAttribute" method.
*
* @since 8.0
*/
public const IS_INSTANCEOF = 2;
/**
* ReflectionAttribute cannot be created explicitly.
* @since 8.0
*/
private function __construct() {}
public static function export() {}
/**
* Gets attribute name
*
* @return string The name of the attribute parameter.
* @since 8.0
*/
#[Pure]
public function getName(): string {}
/**
* Returns the target of the attribute as a bit mask format.
*
* @return int
* @since 8.0
*/
#[Pure]
public function getTarget(): int {}
/**
* Returns {@see true} if the attribute is repeated.
*
* @return bool
* @since 8.0
*/
#[Pure]
public function isRepeated(): bool {}
/**
* Gets list of passed attribute's arguments.
*
* @return array
* @since 8.0
*/
#[Pure]
public function getArguments(): array {}
/**
* Creates a new instance of the attribute with passed arguments
*
* @return T
* @since 8.0
*/
public function newInstance(): object {}
public function __toString(): string {}
/**
* ReflectionAttribute cannot be cloned
*
* @return void
* @since 8.0
*/
private function __clone(): void {}
}

View File

@ -2,8 +2,6 @@
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Immutable;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
@ -36,16 +34,10 @@ class ReflectionClass implements Reflector
*/
public const IS_FINAL = 32;
/**
* @since 8.2
*/
public const IS_READONLY = 65536;
/**
* @var class-string<T> Name of the class, same as calling the {@see ReflectionClass::getName()} method
*/
#[Immutable]
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
public $name;
/**
@ -56,7 +48,7 @@ class ReflectionClass implements Reflector
* the class to reflect, or an object.
* @throws ReflectionException if the class does not exist.
*/
public function __construct(#[LanguageLevelTypeAware(['8.0' => 'object|string'], default: '')] $objectOrClass) {}
public function __construct($objectOrClass) {}
/**
* Exports a reflected class
@ -69,7 +61,7 @@ class ReflectionClass implements Reflector
* export is returned as a string, otherwise {@see null} is returned.
* @removed 8.0
*/
#[Deprecated(since: '7.4')]
#[Deprecated(since: "7.4")]
public static function export($argument, $return = false) {}
/**
@ -121,17 +113,6 @@ class ReflectionClass implements Reflector
#[TentativeType]
public function isInstantiable(): bool {}
/**
* Returns whether this class is cloneable
*
* @link https://php.net/manual/en/reflectionclass.iscloneable.php
* @return bool Returns {@see true} if the class is cloneable, {@see false} otherwise.
* @since 5.4
*/
#[Pure]
#[TentativeType]
public function isCloneable(): bool {}
/**
* Gets the filename of the file in which the class has been defined
*
@ -194,7 +175,7 @@ class ReflectionClass implements Reflector
* @return bool Returns {@see true} if it has the method, otherwise {@see false}
*/
#[TentativeType]
public function hasMethod(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): bool {}
public function hasMethod($name): bool {}
/**
* Gets a <b>ReflectionMethod</b> for a class method.
@ -206,7 +187,7 @@ class ReflectionClass implements Reflector
*/
#[Pure]
#[TentativeType]
public function getMethod(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): ReflectionMethod {}
public function getMethod($name): ReflectionMethod {}
/**
* Gets an array of methods for the class.
@ -219,7 +200,7 @@ class ReflectionClass implements Reflector
*/
#[Pure]
#[TentativeType]
public function getMethods(#[LanguageLevelTypeAware(['8.0' => 'int|null'], default: '')] $filter = null): array {}
public function getMethods($filter = null): array {}
/**
* Checks if property is defined
@ -229,7 +210,7 @@ class ReflectionClass implements Reflector
* @return bool Returns {@see true} if it has the property, otherwise {@see false}
*/
#[TentativeType]
public function hasProperty(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): bool {}
public function hasProperty($name): bool {}
/**
* Gets a <b>ReflectionProperty</b> for a class's property
@ -241,7 +222,7 @@ class ReflectionClass implements Reflector
*/
#[Pure]
#[TentativeType]
public function getProperty(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): ReflectionProperty {}
public function getProperty($name): ReflectionProperty {}
/**
* Gets properties
@ -254,31 +235,7 @@ class ReflectionClass implements Reflector
*/
#[Pure]
#[TentativeType]
public function getProperties(#[LanguageLevelTypeAware(['8.0' => 'int|null'], default: '')] $filter = null): array {}
/**
* Gets a ReflectionClassConstant for a class's property
*
* @link https://php.net/manual/en/reflectionclass.getreflectionconstant.php
* @param string $name The class constant name.
* @return ReflectionClassConstant|false A {@see ReflectionClassConstant}.
* @since 7.1
*/
#[Pure]
#[TentativeType]
public function getReflectionConstant(string $name): ReflectionClassConstant|false {}
/**
* Gets class constants
*
* @link https://php.net/manual/en/reflectionclass.getreflectionconstants.php
* @param int|null $filter [optional] allows the filtering of constants defined in a class by their visibility. Since 8.0.
* @return ReflectionClassConstant[] An array of ReflectionClassConstant objects.
* @since 7.1
*/
#[Pure]
#[TentativeType]
public function getReflectionConstants(#[PhpStormStubsElementAvailable(from: '8.0')] ?int $filter = ReflectionClassConstant::IS_PUBLIC|ReflectionClassConstant::IS_PROTECTED|ReflectionClassConstant::IS_PRIVATE): array {}
public function getProperties($filter = null): array {}
/**
* Checks if constant is defined
@ -288,7 +245,7 @@ class ReflectionClass implements Reflector
* @return bool Returns {@see true} if the constant is defined, otherwise {@see false}
*/
#[TentativeType]
public function hasConstant(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): bool {}
public function hasConstant($name): bool {}
/**
* Gets constants
@ -300,7 +257,7 @@ class ReflectionClass implements Reflector
*/
#[Pure]
#[TentativeType]
public function getConstants(#[PhpStormStubsElementAvailable(from: '8.0')] ?int $filter = ReflectionClassConstant::IS_PUBLIC|ReflectionClassConstant::IS_PROTECTED|ReflectionClassConstant::IS_PRIVATE): array {}
public function getConstants(): array {}
/**
* Gets defined constant
@ -312,7 +269,7 @@ class ReflectionClass implements Reflector
*/
#[Pure]
#[TentativeType]
public function getConstant(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): mixed {}
public function getConstant($name): mixed {}
/**
* Gets the interfaces
@ -335,17 +292,6 @@ class ReflectionClass implements Reflector
#[TentativeType]
public function getInterfaceNames(): array {}
/**
* Checks if the class is anonymous
*
* @link https://php.net/manual/en/reflectionclass.isanonymous.php
* @return bool Returns {@see true} on success or {@see false} on failure.
* @since 7.0
*/
#[Pure]
#[TentativeType]
public function isAnonymous(): bool {}
/**
* Checks if the class is an interface
*
@ -356,55 +302,6 @@ class ReflectionClass implements Reflector
#[TentativeType]
public function isInterface(): bool {}
/**
* Returns an array of traits used by this class
*
* @link https://php.net/manual/en/reflectionclass.gettraits.php
* @return ReflectionClass[] an array with trait names in keys and
* instances of trait's {@see ReflectionClass} in values.
* @since 5.4
*/
#[Pure]
#[TentativeType]
public function getTraits(): array {}
/**
* Returns an array of names of traits used by this class
*
* @link https://php.net/manual/en/reflectionclass.gettraitnames.php
* @return string[] An array with trait names in values.
* Returns {@see null} in case of an error.
* @since 5.4
*/
#[Pure]
#[TentativeType]
public function getTraitNames(): array {}
/**
* Returns an array of trait aliases
*
* @link https://php.net/manual/en/reflectionclass.gettraitaliases.php
* @return string[] an array with new method names in keys and original
* names (in the format "TraitName::original") in values.
* Returns {@see null} in case of an error.
* @since 5.4
*/
#[Pure]
#[TentativeType]
public function getTraitAliases(): array {}
/**
* Returns whether this is a trait
*
* @link https://php.net/manual/en/reflectionclass.istrait.php
* @return bool Returns {@see true} if this is a trait, {@see false} otherwise.
* Returns {@see null} in case of an error.
* @since 5.4
*/
#[Pure]
#[TentativeType]
public function isTrait(): bool {}
/**
* Checks if class is abstract
*
@ -425,13 +322,6 @@ class ReflectionClass implements Reflector
#[TentativeType]
public function isFinal(): bool {}
/**
* @return bool
*/
#[Pure]
#[PhpStormStubsElementAvailable(from: '8.2')]
public function isReadOnly(): bool {}
/**
* Gets modifiers
*
@ -451,7 +341,7 @@ class ReflectionClass implements Reflector
*/
#[Pure]
#[TentativeType]
public function isInstance(#[LanguageLevelTypeAware(['8.0' => 'object'], default: '')] $object): bool {}
public function isInstance($object): bool {}
/**
* Creates a new class instance from given arguments.
@ -466,19 +356,6 @@ class ReflectionClass implements Reflector
*/
public function newInstance(...$args) {}
/**
* Creates a new class instance without invoking the constructor.
*
* @link https://php.net/manual/en/reflectionclass.newinstancewithoutconstructor.php
* @return T a new instance of the class.
* @throws ReflectionException if the class is an internal class that
* cannot be instantiated without invoking the constructor. In PHP 5.6.0
* onwards, this exception is limited only to internal classes that are final.
* @since 5.4
*/
#[TentativeType]
public function newInstanceWithoutConstructor(): object {}
/**
* Creates a new class instance from given arguments.
*
@ -514,7 +391,7 @@ class ReflectionClass implements Reflector
*/
#[Pure]
#[TentativeType]
public function isSubclassOf(#[LanguageLevelTypeAware(['8.0' => 'ReflectionClass|string'], default: '')] $class): bool {}
public function isSubclassOf($class): bool {}
/**
* Gets static properties
@ -539,10 +416,7 @@ class ReflectionClass implements Reflector
*/
#[Pure]
#[TentativeType]
public function getStaticPropertyValue(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $default = null
): mixed {}
public function getStaticPropertyValue($name, $default = null): mixed {}
/**
* Sets static property value
@ -553,10 +427,7 @@ class ReflectionClass implements Reflector
* @return void No value is returned.
*/
#[TentativeType]
public function setStaticPropertyValue(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value
): void {}
public function setStaticPropertyValue($name, $value): void {}
/**
* Gets default properties
@ -582,17 +453,6 @@ class ReflectionClass implements Reflector
#[TentativeType]
public function isIterateable(): bool {}
/**
* Check whether this class is iterable
*
* @link https://php.net/manual/en/reflectionclass.isiterable.php
* @return bool Returns {@see true} on success or {@see false} on failure.
* @since 7.2
*/
#[Pure]
#[TentativeType]
public function isIterable(): bool {}
/**
* Checks whether it implements an interface.
*
@ -601,7 +461,7 @@ class ReflectionClass implements Reflector
* @return bool Returns {@see true} on success or {@see false} on failure.
*/
#[TentativeType]
public function implementsInterface(#[LanguageLevelTypeAware(['8.0' => 'ReflectionClass|string'], default: '')] $interface): bool {}
public function implementsInterface($interface): bool {}
/**
* Gets a <b>ReflectionExtension</b> object for the extension which defined the class
@ -653,38 +513,4 @@ class ReflectionClass implements Reflector
#[Pure]
#[TentativeType]
public function getShortName(): string {}
/**
* @template T
*
* Returns an array of class attributes.
*
* @param class-string<T>|null $name Name of an attribute class
* @param int $flags Сriteria by which the attribute is searched.
* @return ReflectionAttribute<T>[]
* @since 8.0
*/
#[Pure]
public function getAttributes(?string $name = null, int $flags = 0): array {}
#[PhpStormStubsElementAvailable('8.1')]
public function isEnum(): bool {}
/**
* Clones object
*
* @link https://php.net/manual/en/reflectionclass.clone.php
* @return void
*/
#[PhpStormStubsElementAvailable(from: "5.4", to: "8.0")]
final private function __clone(): void {}
/**
* Clones object
*
* @link https://php.net/manual/en/reflectionclass.clone.php
* @return void
*/
#[PhpStormStubsElementAvailable(from: "8.1")]
private function __clone(): void {}
}

View File

@ -1,226 +0,0 @@
<?php
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Immutable;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
/**
* The ReflectionClassConstant class reports information about a class constant.
*
* @link https://www.php.net/manual/en/class.reflectionclassconstant.php
* @since 7.1
*/
class ReflectionClassConstant implements Reflector
{
/**
* Indicates that the constant is public.
*
* @since 8.0
*/
public const IS_PUBLIC = 1;
/**
* Indicates that the constant is protected.
*
* @since 8.0
*/
public const IS_PROTECTED = 2;
/**
* Indicates that the constant is private.
*
* @since 8.0
*/
public const IS_PRIVATE = 4;
/**
* @since 8.1
*/
public const IS_FINAL = 5;
/**
* @var string Constant name, same as calling the {@see ReflectionClassConstant::getName()} method
*/
#[Immutable]
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
public $name;
/**
* @var string Fully qualified class name where this constant was defined
*/
#[Immutable]
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
public $class;
/**
* @var bool
* @since 8.1
*/
#[Immutable]
public bool $isFinal;
/**
* ReflectionClassConstant constructor.
*
* @param string|object $class Either a string containing the name of the class to reflect, or an object.
* @param string $constant The name of the class constant.
* @since 7.1
* @link https://php.net/manual/en/reflectionclassconstant.construct.php
*/
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'string|object'], default: '')] $class,
string $constant
) {}
/**
* @link https://php.net/manual/en/reflectionclassconstant.export.php
* @param string|object $class The reflection to export.
* @param string $name The class constant name.
* @param bool $return Setting to {@see true} will return the export, as opposed to emitting it. Setting
* to {@see false} (the default) will do the opposite.
* @return string|null
* @since 7.1
* @removed 8.0
*/
#[Deprecated(since: '7.4')]
public static function export($class, $name, $return = false) {}
/**
* Gets declaring class
*
* @return ReflectionClass
* @link https://php.net/manual/en/reflectionclassconstant.getdeclaringclass.php
* @since 7.1
*/
#[Pure]
#[TentativeType]
public function getDeclaringClass(): ReflectionClass {}
/**
* Gets doc comments
*
* @return string|false The doc comment if it exists, otherwise {@see false}
* @link https://php.net/manual/en/reflectionclassconstant.getdoccomment.php
* @since 7.1
*/
#[Pure]
#[TentativeType]
public function getDocComment(): string|false {}
/**
* Gets the class constant modifiers
*
* @return int A numeric representation of the modifiers. The actual meanings of these modifiers are described in
* the predefined constants.
* @link https://php.net/manual/en/reflectionclassconstant.getmodifiers.php
* @since 7.1
*/
#[Pure]
#[TentativeType]
public function getModifiers(): int {}
/**
* Get name of the constant
*
* @link https://php.net/manual/en/reflectionclassconstant.getname.php
* @return string Returns the constant's name.
* @since 7.1
*/
#[Pure]
#[TentativeType]
public function getName(): string {}
/**
* Gets value
*
* @link https://php.net/manual/en/reflectionclassconstant.getvalue.php
* @return mixed The value of the class constant.
* @since 7.1
*/
#[Pure]
#[TentativeType]
public function getValue(): mixed {}
/**
* Checks if class constant is private
*
* @link https://php.net/manual/en/reflectionclassconstant.isprivate.php
* @return bool
* @since 7.1
*/
#[Pure]
#[TentativeType]
public function isPrivate(): bool {}
/**
* Checks if class constant is protected
*
* @link https://php.net/manual/en/reflectionclassconstant.isprotected.php
* @return bool
* @since 7.1
*/
#[Pure]
#[TentativeType]
public function isProtected(): bool {}
/**
* Checks if class constant is public
*
* @link https://php.net/manual/en/reflectionclassconstant.ispublic.php
* @return bool
* @since 7.1
*/
#[Pure]
#[TentativeType]
public function isPublic(): bool {}
/**
* Returns the string representation of the ReflectionClassConstant object.
*
* @link https://php.net/manual/en/reflectionclassconstant.tostring.php
* @return string
* @since 7.1
*/
public function __toString(): string {}
/**
* @template T
*
* Returns an array of constant attributes.
*
* @param class-string<T>|null $name Name of an attribute class
* @param int $flags Сriteria by which the attribute is searched.
* @return ReflectionAttribute<T>[]
* @since 8.0
*/
#[Pure]
public function getAttributes(?string $name = null, int $flags = 0): array {}
#[PhpStormStubsElementAvailable('8.1')]
public function isEnumCase(): bool {}
/**
* @return bool
* @since 8.1
*/
public function isFinal(): bool {}
/**
* ReflectionClassConstant cannot be cloned
*
* @return void
*/
#[PhpStormStubsElementAvailable(from: "5.4", to: "8.0")]
final private function __clone(): void {}
/**
* ReflectionClassConstant cannot be cloned
*
* @return void
*/
#[PhpStormStubsElementAvailable(from: "8.1")]
private function __clone(): void {}
}

View File

@ -1,40 +0,0 @@
<?php
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
/**
* @link https://php.net/manual/en/class.reflectionenum.php
* @since 8.1
*/
class ReflectionEnum extends ReflectionClass
{
public function __construct(object|string $objectOrClass) {}
/**
* @param string $name
* @return bool
*/
public function hasCase(string $name): bool {}
/**
* @return ReflectionEnumPureCase[]|ReflectionEnumBackedCase[]
*/
public function getCases(): array {}
/**
* @return ReflectionEnumPureCase|ReflectionEnumBackedCase
* @throws ReflectionException If no found single reflection object for the corresponding case
*/
public function getCase(string $name): ReflectionEnumUnitCase {}
/**
* @return bool
*/
public function isBacked(): bool {}
/**
* @return ReflectionType|null
*/
#[LanguageLevelTypeAware(['8.2' => 'null|ReflectionNamedType'], default: 'null|ReflectionType')]
public function getBackingType() {}
}

View File

@ -1,13 +0,0 @@
<?php
/**
* @link https://php.net/manual/en/class.reflectionenumbackedcase.php
* @since 8.1
*/
class ReflectionEnumBackedCase extends ReflectionEnumUnitCase
{
public function __construct(object|string $class, string $constant) {}
#[Pure]
public function getBackingValue(): int|string {}
}

View File

@ -1,7 +0,0 @@
<?php
/**
* @link https://php.net/manual/en/class.reflectionenumpurecase.php
* @since 8.1
*/
class ReflectionEnumPureCase extends ReflectionClassConstant {}

View File

@ -1,19 +0,0 @@
<?php
/**
* @link https://php.net/manual/en/class.reflectionenumunitcase.php
* @since 8.1
*/
class ReflectionEnumUnitCase extends ReflectionClassConstant
{
public function __construct(object|string $class, string $constant) {}
#[Pure]
public function getValue(): UnitEnum {}
/**
* @return ReflectionEnum
*/
#[Pure]
public function getEnum(): ReflectionEnum {}
}

View File

@ -1,5 +1,4 @@
<?php
/**
* The ReflectionException class.
*

View File

@ -2,8 +2,6 @@
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Immutable;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
@ -18,7 +16,6 @@ class ReflectionExtension implements Reflector
* @var string Name of the extension, same as calling the {@see ReflectionExtension::getName()} method
*/
#[Immutable]
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
public $name;
/**
@ -28,7 +25,7 @@ class ReflectionExtension implements Reflector
* @param string $name Name of the extension.
* @throws ReflectionException if the extension does not exist.
*/
public function __construct(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name) {}
public function __construct($name) {}
/**
* Exports a reflected extension.
@ -43,7 +40,7 @@ class ReflectionExtension implements Reflector
* the export is returned as a string, otherwise {@see null} is returned.
* @removed 8.0
*/
#[Deprecated(since: '7.4')]
#[Deprecated(since: "7.4")]
public static function export($name, $return = false) {}
/**
@ -151,44 +148,4 @@ class ReflectionExtension implements Reflector
*/
#[TentativeType]
public function info(): void {}
/**
* Returns whether this extension is persistent
*
* @link https://php.net/manual/en/reflectionextension.ispersistent.php
* @return bool Returns {@see true} for extensions loaded by extension, {@see false} otherwise.
* @since 5.4
*/
#[Pure]
#[TentativeType]
public function isPersistent(): bool {}
/**
* Returns whether this extension is temporary
*
* @link https://php.net/manual/en/reflectionextension.istemporary.php
* @return bool Returns {@see true} for extensions loaded by {@see dl()}, {@see false} otherwise.
* @since 5.4
*/
#[Pure]
#[TentativeType]
public function isTemporary(): bool {}
/**
* Clones
*
* @link https://php.net/manual/en/reflectionextension.clone.php
* @return void No value is returned, if called a fatal error will occur.
*/
#[PhpStormStubsElementAvailable(from: "5.4", to: "8.0")]
final private function __clone(): void {}
/**
* Clones
*
* @link https://php.net/manual/en/reflectionextension.clone.php
* @return void No value is returned, if called a fatal error will occur.
*/
#[PhpStormStubsElementAvailable(from: "8.1")]
private function __clone(): void {}
}

View File

@ -1,19 +0,0 @@
<?php
/**
* @since 8.1
*/
final class ReflectionFiber
{
public function __construct(Fiber $fiber) {}
public function getFiber(): Fiber {}
public function getExecutingFile(): string {}
public function getExecutingLine(): int {}
public function getCallable(): callable {}
public function getTrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT): array {}
}

View File

@ -2,8 +2,6 @@
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Immutable;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
@ -35,7 +33,7 @@ class ReflectionFunction extends ReflectionFunctionAbstract
* @param string|Closure $function The name of the function to reflect or a closure.
* @throws ReflectionException if the function does not exist.
*/
public function __construct(#[LanguageLevelTypeAware(['8.0' => 'Closure|string'], default: '')] $function) {}
public function __construct($function) {}
/**
* Exports function
@ -49,7 +47,7 @@ class ReflectionFunction extends ReflectionFunctionAbstract
* the export is returned as a string, otherwise {@see null} is returned.
* @removed 8.0
*/
#[Deprecated(since: '7.4')]
#[Deprecated(since: "7.4")]
public static function export($name, $return = false) {}
/**
@ -66,7 +64,7 @@ class ReflectionFunction extends ReflectionFunctionAbstract
* @link https://php.net/manual/en/reflectionfunction.isdisabled.php
* @return bool {@see true} if it's disable, otherwise {@see false}
*/
#[Deprecated(since: '8.0')]
#[Deprecated(since: "8.0")]
#[Pure]
#[TentativeType]
public function isDisabled(): bool {}
@ -81,7 +79,7 @@ class ReflectionFunction extends ReflectionFunctionAbstract
* @return mixed Returns the result of the invoked function call.
*/
#[TentativeType]
public function invoke(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] ...$args): mixed {}
public function invoke(...$args): mixed {}
/**
* Invokes function args
@ -103,7 +101,4 @@ class ReflectionFunction extends ReflectionFunctionAbstract
#[Pure]
#[TentativeType]
public function getClosure(): Closure {}
#[PhpStormStubsElementAvailable(from: '8.2')]
public function isAnonymous(): bool {}
}

View File

@ -1,8 +1,6 @@
<?php
use JetBrains\PhpStorm\Immutable;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
@ -18,7 +16,6 @@ abstract class ReflectionFunctionAbstract implements Reflector
* @var string Name of the function, same as calling the {@see ReflectionFunctionAbstract::getName()} method
*/
#[Immutable]
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
public $name;
/**
@ -70,28 +67,6 @@ abstract class ReflectionFunctionAbstract implements Reflector
#[TentativeType]
public function isUserDefined(): bool {}
/**
* Returns whether this function is a generator
*
* @link https://php.net/manual/en/reflectionfunctionabstract.isgenerator.php
* @return bool {@see true} if the function is generator, otherwise {@see false}
* @since 5.5
*/
#[Pure]
#[TentativeType]
public function isGenerator(): bool {}
/**
* Returns whether this function is variadic
*
* @link https://php.net/manual/en/reflectionfunctionabstract.isvariadic.php
* @return bool {@see true} if the function is variadic, otherwise {@see false}
* @since 5.6
*/
#[Pure]
#[TentativeType]
public function isVariadic(): bool {}
/**
* Returns this pointer bound to closure
*
@ -102,27 +77,6 @@ abstract class ReflectionFunctionAbstract implements Reflector
#[TentativeType]
public function getClosureThis(): ?object {}
/**
* Returns the scope associated to the closure
*
* @link https://php.net/manual/en/reflectionfunctionabstract.getclosurescopeclass.php
* @return ReflectionClass|null Returns the class on success or {@see null}
* on failure.
* @since 5.4
*/
#[Pure]
#[TentativeType]
public function getClosureScopeClass(): ?ReflectionClass {}
/**
* @return ReflectionClass|null Returns the class on success or {@see null}
* on failure.
* @since 8.0
*/
#[Pure]
#[TentativeType]
public function getClosureCalledClass(): ?ReflectionClass {}
/**
* Gets doc comment
*
@ -227,26 +181,6 @@ abstract class ReflectionFunctionAbstract implements Reflector
#[TentativeType]
public function getParameters(): array {}
/**
* Gets the specified return type of a function
*
* @link https://php.net/manual/en/reflectionfunctionabstract.getreturntype.php
* @return ReflectionType|null Returns a {@see ReflectionType} object if a
* return type is specified, {@see null} otherwise.
* @since 7.0
*/
#[Pure]
#[LanguageLevelTypeAware(
[
'7.1' => 'ReflectionNamedType|null',
'8.0' => 'ReflectionNamedType|ReflectionUnionType|null',
'8.1' => 'ReflectionNamedType|ReflectionUnionType|ReflectionIntersectionType|null'
],
default: 'ReflectionType|null'
)]
#[TentativeType]
public function getReturnType(): ?ReflectionType {}
/**
* Gets function short name
*
@ -286,65 +220,5 @@ abstract class ReflectionFunctionAbstract implements Reflector
#[TentativeType]
public function returnsReference(): bool {}
/**
* Checks if the function has a specified return type
*
* @link https://php.net/manual/en/reflectionfunctionabstract.hasreturntype.php
* @return bool Returns {@see true} if the function is a specified return
* type, otherwise {@see false}.
* @since 7.0
*/
#[TentativeType]
public function hasReturnType(): bool {}
/**
* @template T
*
* Returns an array of function attributes.
*
* @param class-string<T>|null $name Name of an attribute class
* @param int $flags Сriteria by which the attribute is searched.
* @return ReflectionAttribute<T>[]
* @since 8.0
*/
#[Pure]
public function getAttributes(?string $name = null, int $flags = 0): array {}
#[PhpStormStubsElementAvailable('8.1')]
#[Pure]
public function getClosureUsedVariables(): array {}
#[PhpStormStubsElementAvailable('8.1')]
#[Pure]
public function hasTentativeReturnType(): bool {}
#[PhpStormStubsElementAvailable('8.1')]
#[Pure]
public function getTentativeReturnType(): ?ReflectionType {}
#[PhpStormStubsElementAvailable('8.1')]
#[Pure]
#[TentativeType]
public function isStatic(): bool {}
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')]
public function __toString() {}
/**
* Clones function
*
* @link https://php.net/manual/en/reflectionfunctionabstract.clone.php
* @return void
*/
#[PhpStormStubsElementAvailable(from: "5.4", to: "8.0")]
final private function __clone(): void {}
/**
* Clones function
*
* @link https://php.net/manual/en/reflectionfunctionabstract.clone.php
* @return void
*/
#[PhpStormStubsElementAvailable(from: "8.1")]
private function __clone(): void {}
}

View File

@ -1,101 +0,0 @@
<?php
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
/**
* The ReflectionGenerator class reports information about a generator.
*
* @since 7.0
*/
class ReflectionGenerator
{
/**
* Constructs a ReflectionGenerator object
*
* @link https://php.net/manual/en/reflectiongenerator.construct.php
* @param Generator $generator A generator object.
* @since 7.0
*/
public function __construct(Generator $generator) {}
/**
* Gets the currently executing line of the generator
*
* @link https://php.net/manual/en/reflectiongenerator.getexecutingline.php
* @return int Returns the line number of the currently executing statement
* in the generator.
* @since 7.0
*/
#[Pure]
#[TentativeType]
public function getExecutingLine(): int {}
/**
* Gets the file name of the currently executing generator
*
* @link https://php.net/manual/en/reflectiongenerator.getexecutingfile.php
* @return string Returns the full path and file name of the currently
* executing generator.
* @since 7.0
*/
#[Pure]
#[TentativeType]
public function getExecutingFile(): string {}
/**
* Gets the trace of the executing generator
*
* @link https://php.net/manual/en/reflectiongenerator.gettrace.php
* @param int $options The value of <em>options</em> can be any of the following the following flags.
*
* Available options:
*
* {@see DEBUG_BACKTRACE_PROVIDE_OBJECT} - Default
*
* {@see DEBUG_BACKTRACE_IGNORE_ARGS} - Don't include the argument
* information for functions in the stack trace.
*
* @return array Returns the trace of the currently executing generator.
* @since 7.0
*/
#[Pure]
#[TentativeType]
public function getTrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT): array {}
/**
* Gets the function name of the generator
*
* @link https://php.net/manual/en/reflectiongenerator.getfunction.php
* @return ReflectionFunctionAbstract Returns a {@see ReflectionFunctionAbstract}
* class. This will be {@see ReflectionFunction} for functions,
* or {@see ReflectionMethod} for methods.
* @since 7.0
*/
#[Pure]
#[TentativeType]
public function getFunction(): ReflectionFunctionAbstract {}
/**
* Gets the function name of the generator
*
* @link https://php.net/manual/en/reflectiongenerator.getthis.php
* @return object|null Returns the $this value, or {@see null} if the
* generator was not created in a class context.
* @since 7.0
*/
#[Pure]
#[TentativeType]
public function getThis(): ?object {}
/**
* Gets the executing Generator object
*
* @link https://php.net/manual/en/reflectiongenerator.construct.php
* @return Generator Returns the currently executing Generator object.
* @since 7.0
*/
#[Pure]
#[TentativeType]
public function getExecutingGenerator(): Generator {}
}

View File

@ -1,13 +0,0 @@
<?php
use JetBrains\PhpStorm\Pure;
/**
* @since 8.1
*/
class ReflectionIntersectionType extends ReflectionType
{
/** @return ReflectionType[] */
#[Pure]
public function getTypes(): array {}
}

View File

@ -2,8 +2,6 @@
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Immutable;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
@ -55,7 +53,6 @@ class ReflectionMethod extends ReflectionFunctionAbstract
* @var string Fully qualified class name where this method was defined
*/
#[Immutable]
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
public $class;
/**
@ -75,10 +72,7 @@ class ReflectionMethod extends ReflectionFunctionAbstract
* classname or an object.
* @throws ReflectionException if the class or method does not exist.
*/
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'object|string'], default: '')] $objectOrMethod,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $method = null
) {}
public function __construct($objectOrMethod, $method = null) {}
/**
* Export a reflection method.
@ -93,7 +87,7 @@ class ReflectionMethod extends ReflectionFunctionAbstract
* the export is returned as a string, otherwise {@see null} is returned.
* @removed 8.0
*/
#[Deprecated(since: '7.4')]
#[Deprecated(since: "7.4")]
public static function export($class, $name, $return = false) {}
/**
@ -185,21 +179,6 @@ class ReflectionMethod extends ReflectionFunctionAbstract
#[TentativeType]
public function isDestructor(): bool {}
/**
* Returns a dynamically created closure for the method
*
* @link https://php.net/manual/en/reflectionmethod.getclosure.php
* @param object $object Forbidden for static methods, required for other methods or nothing.
* @return Closure|null Returns {@see Closure} or {@see null} in case of an error.
* @since 5.4
*/
#[Pure]
#[TentativeType]
public function getClosure(
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.3')] $object,
#[PhpStormStubsElementAvailable(from: '7.4')] #[LanguageLevelTypeAware(['8.0' => 'object|null'], default: '')] $object = null
): Closure {}
/**
* Gets the method modifiers
*
@ -250,10 +229,7 @@ class ReflectionMethod extends ReflectionFunctionAbstract
* invocation failed.
*/
#[TentativeType]
public function invokeArgs(
#[LanguageLevelTypeAware(['8.0' => 'object|null'], default: '')] $object,
array $args
): mixed {}
public function invokeArgs($object, array $args): mixed {}
/**
* Gets declaring class for the reflected method.
@ -285,23 +261,6 @@ class ReflectionMethod extends ReflectionFunctionAbstract
* @return void No value is returned.
* @since 5.3.2
*/
#[PhpStormStubsElementAvailable(to: "8.0")]
#[TentativeType]
public function setAccessible(#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $accessible): void {}
/**
* Set method accessibility
* This method is no-op starting from PHP 8.1
*
* @link https://php.net/manual/en/reflectionmethod.setaccessible.php
* @param bool $accessible {@see true} to allow accessibility, or {@see false}
* @return void No value is returned.
*/
#[Pure]
#[PhpStormStubsElementAvailable(from: "8.1")]
#[TentativeType]
public function setAccessible(bool $accessible): void {}
#[PhpStormStubsElementAvailable(from: '8.2')]
public function hasPrototype(): bool {}
public function setAccessible($accessible): void {}
}

View File

@ -1,33 +0,0 @@
<?php
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
/**
* @since 7.1
*/
class ReflectionNamedType extends ReflectionType
{
/**
* Get the text of the type hint.
*
* @link https://php.net/manual/en/reflectionnamedtype.getname.php
* @return string Returns the text of the type hint.
* @since 7.1
*/
#[Pure]
public function getName() {}
/**
* Checks if it is a built-in type
*
* @link https://php.net/manual/en/reflectionnamedtype.isbuiltin.php
* @return bool Returns {@see true} if it's a built-in type, otherwise {@see false}
*
* @since 7.1 overrides the parent {@see ReflectionType::isBuiltin()} method.
* @since 8.0 method was removed from the parent {@see ReflectionType} class.
*/
#[Pure]
#[TentativeType]
public function isBuiltin(): bool {}
}

View File

@ -1,7 +1,6 @@
<?php
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
/**
* The <b>ReflectionObject</b> class reports
@ -17,7 +16,7 @@ class ReflectionObject extends ReflectionClass
* @link https://php.net/manual/en/reflectionobject.construct.php
* @param object $object An object instance.
*/
public function __construct(#[LanguageLevelTypeAware(['8.0' => 'object'], default: '')] $object) {}
public function __construct($object) {}
/**
* Export
@ -31,6 +30,6 @@ class ReflectionObject extends ReflectionClass
* the export is returned as a string, otherwise {@see null} is returned.
* @removed 8.0
*/
#[Deprecated(since: '7.4')]
#[Deprecated(since: "7.4")]
public static function export($argument, $return = false) {}
}

View File

@ -2,8 +2,6 @@
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Immutable;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
@ -19,7 +17,6 @@ class ReflectionParameter implements Reflector
* @var string Name of the parameter, same as calling the {@see ReflectionParameter::getName()} method
*/
#[Immutable]
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
public $name;
/**
@ -31,7 +28,7 @@ class ReflectionParameter implements Reflector
* of the parameter (starting with zero), or a the parameter name as string.
* @throws ReflectionException if the function or parameter does not exist.
*/
public function __construct($function, #[LanguageLevelTypeAware(['8.0' => 'string|int'], default: '')] $param) {}
public function __construct($function, $param) {}
/**
* Exports
@ -45,7 +42,7 @@ class ReflectionParameter implements Reflector
* @return string|null The exported reflection.
* @removed 8.0
*/
#[Deprecated(since: '7.4')]
#[Deprecated(since: "7.4")]
public static function export($function, $parameter, $return = false) {}
/**
@ -77,17 +74,6 @@ class ReflectionParameter implements Reflector
#[TentativeType]
public function isPassedByReference(): bool {}
/**
* Returns whether this parameter can be passed by value
*
* @link https://php.net/manual/en/reflectionparameter.canbepassedbyvalue.php
* @return bool|null {@see true} if the parameter can be passed by value, {@see false} otherwise.
* Returns {@see null} in case of an error.
* @since 5.4
*/
#[TentativeType]
public function canBePassedByValue(): bool {}
/**
* Gets declaring function
*
@ -122,36 +108,6 @@ class ReflectionParameter implements Reflector
#[TentativeType]
public function getClass(): ?ReflectionClass {}
/**
* Checks if the parameter has a type associated with it.
*
* @link https://php.net/manual/en/reflectionparameter.hastype.php
* @return bool {@see true} if a type is specified, {@see false} otherwise.
* @since 7.0
*/
#[TentativeType]
public function hasType(): bool {}
/**
* Gets a parameter's type
*
* @link https://php.net/manual/en/reflectionparameter.gettype.php
* @return ReflectionType|null Returns a {@see ReflectionType} object if a
* parameter type is specified, {@see null} otherwise.
* @since 7.0
*/
#[Pure]
#[LanguageLevelTypeAware(
[
'7.1' => 'ReflectionNamedType|null',
'8.0' => 'ReflectionNamedType|ReflectionUnionType|null',
'8.1' => 'ReflectionNamedType|ReflectionUnionType|ReflectionIntersectionType|null'
],
default: 'ReflectionType|null'
)]
#[TentativeType]
public function getType(): ?ReflectionType {}
/**
* Checks if parameter expects an array
*
@ -164,20 +120,6 @@ class ReflectionParameter implements Reflector
#[TentativeType]
public function isArray(): bool {}
/**
* Returns whether parameter MUST be callable
*
* @link https://php.net/manual/en/reflectionparameter.iscallable.php
* @return bool|null Returns {@see true} if the parameter is callable, {@see false}
* if it is not or {@see null} on failure.
* @since 5.4
* @see ReflectionParameter::getType()
*/
#[Deprecated(reason: "Use ReflectionParameter::getType() and the ReflectionType APIs should be used instead.", since: "8.0")]
#[Pure]
#[TentativeType]
public function isCallable(): bool {}
/**
* Checks if null is allowed
*
@ -232,78 +174,4 @@ class ReflectionParameter implements Reflector
#[Pure]
#[TentativeType]
public function getDefaultValue(): mixed {}
/**
* Returns whether the default value of this parameter is constant
*
* @link https://php.net/manual/en/reflectionparameter.isdefaultvalueconstant.php
* @return bool Returns {@see true} if the default value is constant, and {@see false} otherwise.
* @since 5.4.6
*/
#[Pure]
#[TentativeType]
public function isDefaultValueConstant(): bool {}
/**
* Returns the default value's constant name if default value is constant or null
*
* @link https://php.net/manual/en/reflectionparameter.getdefaultvalueconstantname.php
* @return string|null Returns string on success or {@see null} on failure.
* @throws ReflectionException if the parameter is not optional
* @since 5.4.6
*/
#[Pure]
#[TentativeType]
public function getDefaultValueConstantName(): ?string {}
/**
* Returns whether this function is variadic
*
* @link https://php.net/manual/en/reflectionparameter.isvariadic.php
* @return bool Returns {@see true} if the function is variadic, otherwise {@see false}
* @since 5.6
*/
#[Pure]
#[TentativeType]
public function isVariadic(): bool {}
/**
* Returns information about whether the parameter is a promoted.
*
* @return bool Returns {@see true} if the parameter promoted or {@see false} instead
* @since 8.0
*/
#[Pure]
public function isPromoted(): bool {}
/**
* @template T
*
* Returns an array of parameter attributes.
*
* @param class-string<T>|null $name Name of an attribute class
* @param int $flags Сriteria by which the attribute is searched.
* @return ReflectionAttribute<T>[]
* @since 8.0
*/
#[Pure]
public function getAttributes(?string $name = null, int $flags = 0): array {}
/**
* Clone
*
* @link https://php.net/manual/en/reflectionparameter.clone.php
* @return void
*/
#[PhpStormStubsElementAvailable(from: "5.4", to: "8.0")]
final private function __clone(): void {}
/**
* Clone
*
* @link https://php.net/manual/en/reflectionparameter.clone.php
* @return void
*/
#[PhpStormStubsElementAvailable(from: "8.1")]
private function __clone(): void {}
}

View File

@ -2,8 +2,6 @@
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Immutable;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
@ -43,23 +41,16 @@ class ReflectionProperty implements Reflector
*/
public const IS_PRIVATE = 4;
/**
* @since 8.1
*/
public const IS_READONLY = 5;
/**
* @var string Name of the property, same as calling the {@see ReflectionProperty::getName()} method
*/
#[Immutable]
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
public $name;
/**
* @var string Fully qualified class name where this property was defined
*/
#[Immutable]
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
public $class;
/**
@ -70,10 +61,7 @@ class ReflectionProperty implements Reflector
* @param string $property The name of the property being reflected.
* @throws ReflectionException if the class or property does not exist.
*/
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'object|string'], default: '')] $class,
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $property
) {}
public function __construct($class, $property) {}
/**
* Export
@ -87,7 +75,7 @@ class ReflectionProperty implements Reflector
* @return string|null
* @removed 8.0
*/
#[Deprecated(since: '7.4')]
#[Deprecated(since: "7.4")]
public static function export($class, $name, $return = false) {}
/**
@ -121,7 +109,7 @@ class ReflectionProperty implements Reflector
*/
#[Pure]
#[TentativeType]
public function getValue(#[LanguageLevelTypeAware(['8.0' => 'object|null'], default: '')] $object = null): mixed {}
public function getValue($object = null): mixed {}
/**
* Set property value
@ -134,10 +122,7 @@ class ReflectionProperty implements Reflector
* @return void No value is returned.
*/
#[TentativeType]
public function setValue(
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $objectOrValue,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value = null
): void {}
public function setValue($objectOrValue, $value = null): void {}
/**
* Checks if property is public
@ -227,122 +212,6 @@ class ReflectionProperty implements Reflector
* @param bool $accessible A boolean {@see true} to allow accessibility, or {@see false}
* @return void No value is returned.
*/
#[PhpStormStubsElementAvailable(to: "8.0")]
#[TentativeType]
public function setAccessible(#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $accessible): void {}
/**
* Set property accessibility
* This method is no-op starting from PHP 8.1
*
* @link https://php.net/manual/en/reflectionproperty.setaccessible.php
* @param bool $accessible A boolean {@see true} to allow accessibility, or {@see false}
* @return void No value is returned.
*/
#[Pure]
#[PhpStormStubsElementAvailable(from: "8.1")]
#[TentativeType]
public function setAccessible(bool $accessible): void {}
/**
* Gets property type
*
* @link https://php.net/manual/en/reflectionproperty.gettype.php
* @return ReflectionNamedType|ReflectionUnionType|null Returns a {@see ReflectionType} if the
* property has a type, and {@see null} otherwise.
* @since 7.4
*/
#[Pure]
#[LanguageLevelTypeAware(
[
'8.0' => 'ReflectionNamedType|ReflectionUnionType|null',
'8.1' => 'ReflectionNamedType|ReflectionUnionType|ReflectionIntersectionType|null'
],
default: 'ReflectionNamedType|null'
)]
#[TentativeType]
public function getType(): ?ReflectionType {}
/**
* Checks if property has type
*
* @link https://php.net/manual/en/reflectionproperty.hastype.php
* @return bool Returns {@see true} if a type is specified, {@see false} otherwise.
* @since 7.4
*/
#[TentativeType]
public function hasType(): bool {}
/**
* Checks if property is initialized
*
* @link https://php.net/manual/en/reflectionproperty.isinitialized.php
* @param object|null $object If the property is non-static an object must be provided to fetch the property from.
* @return bool Returns {@see false} for typed properties prior to initialization, and for properties that have
* been explicitly {@see unset()}. For all other properties {@see true} will be returned.
* @since 7.4
*/
#[Pure]
#[TentativeType]
public function isInitialized(?object $object = null): bool {}
/**
* Returns information about whether the property was promoted.
*
* @return bool Returns {@see true} if the property was promoted or {@see false} instead.
* @since 8.0
*/
#[Pure]
public function isPromoted(): bool {}
/**
* @return bool
* @since 8.0
*/
public function hasDefaultValue(): bool {}
/**
* @return mixed
* @since 8.0
*/
#[Pure]
#[TentativeType]
public function getDefaultValue(): mixed {}
/**
* @template T
*
* Returns an array of property attributes.
*
* @param class-string<T>|null $name Name of an attribute class
* @param int $flags Сriteria by which the attribute is searched.
* @return ReflectionAttribute<T>[]
* @since 8.0
*/
#[Pure]
public function getAttributes(?string $name = null, int $flags = 0): array {}
/**
* @return bool
* @since 8.1
*/
public function isReadOnly(): bool {}
/**
* Clone
*
* @link https://php.net/manual/en/reflectionproperty.clone.php
* @return void
*/
#[PhpStormStubsElementAvailable(from: "5.4", to: "8.0")]
final private function __clone(): void {}
/**
* Clone
*
* @link https://php.net/manual/en/reflectionproperty.clone.php
* @return void
*/
#[PhpStormStubsElementAvailable(from: "8.1")]
private function __clone(): void {}
public function setAccessible($accessible): void {}
}

View File

@ -1,49 +0,0 @@
<?php
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Pure;
/**
* The ReflectionReference class provides information about a reference.
*
* Note: Unlike the description in the documentation, the class itself is not final.
*
* @link https://www.php.net/manual/en/class.reflectionreference.php
* @since 7.4
*/
class ReflectionReference
{
/**
* ReflectionReference cannot be created explicitly.
*/
private function __construct() {}
/**
* Returns ReflectionReference if array element is a reference, {@see null} otherwise
*
* @link https://php.net/manual/en/reflectionreference.fromarrayelement.php
* @param array $array The array which contains the potential reference.
* @param int|string $key The key; either an integer or a string.
* @return self|null
*/
public static function fromArrayElement(
array $array,
#[LanguageLevelTypeAware(['8.0' => 'string|int'], default: '')] $key
): ?ReflectionReference {}
/**
* Returns unique identifier for the reference. The return value format is unspecified
*
* @link https://php.net/manual/en/reflectionreference.getid.php
* @return int|string Returns an integer or string of unspecified format.
*/
#[Pure]
public function getId(): string {}
/**
* ReflectionReference cannot be cloned
*
* @return void
*/
private function __clone(): void {}
}

View File

@ -1,64 +0,0 @@
<?php
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
/**
* The ReflectionType class reports information about a function's parameters.
*
* @link https://www.php.net/manual/en/class.reflectiontype.php
* @since 7.0
*/
abstract class ReflectionType implements Stringable
{
/**
* Checks if null is allowed
*
* @link https://php.net/manual/en/reflectiontype.allowsnull.php
* @return bool Returns {@see true} if {@see null} is allowed, otherwise {@see false}
* @since 7.0
*/
#[TentativeType]
public function allowsNull(): bool {}
/**
* Checks if it is a built-in type
*
* @link https://php.net/manual/en/reflectionnamedtype.isbuiltin.php
* @return bool Returns {@see true} if it's a built-in type, otherwise {@see false}
* @since 7.0
* @removed 8.0 this method has been removed from the {@see ReflectionType}
* class and moved to the {@see ReflectionNamedType} child.
*/
#[Pure]
public function isBuiltin() {}
/**
* To string
*
* @link https://php.net/manual/en/reflectiontype.tostring.php
* @return string Returns the type of the parameter.
* @since 7.0
* @see ReflectionNamedType::getName()
*/
#[Deprecated(since: "7.1")]
public function __toString(): string {}
/**
* Cloning of this class is prohibited
*
* @return void
*/
#[PhpStormStubsElementAvailable(from: "5.4", to: "8.0")]
final private function __clone(): void {}
/**
* Cloning of this class is prohibited
*
* @return void
*/
#[PhpStormStubsElementAvailable(from: "8.1")]
private function __clone(): void {}
}

View File

@ -1,17 +0,0 @@
<?php
use JetBrains\PhpStorm\Pure;
/**
* @since 8.0
*/
class ReflectionUnionType extends ReflectionType
{
/**
* Get list of named types of union type
*
* @return ReflectionNamedType[]
*/
#[Pure]
public function getTypes(): array {}
}

View File

@ -1,129 +0,0 @@
<?php
use JetBrains\PhpStorm\Immutable;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
/**
* @link https://secure.php.net/manual/en/class.reflectionzendextension.php
* @since 5.4
*/
class ReflectionZendExtension implements Reflector
{
/**
* @var string Name of the extension, same as calling the {@see ReflectionZendExtension::getName()} method
*/
#[Immutable]
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
public $name;
/**
* Constructs a ReflectionZendExtension object
*
* @link https://php.net/manual/en/reflectionzendextension.construct.php
* @param string $name
* @throws ReflectionException if the extension does not exist.
* @since 5.4
*/
public function __construct(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name) {}
/**
* Exports a reflected zend extension.
*
* @link https://php.net/manual/en/reflectionzendextension.export.php
* @param string $name The reflection to export.
* @param bool $return Setting to {@see true} will return the
* export, as opposed to emitting it. Setting to {@see false} (the default)
* will do the opposite.
* @return string|null If the $return parameter is set to {@see true}, then
* the export is returned as a string, otherwise {@see null} is returned.
*/
public static function export($name, $return = false) {}
/**
* To string handler
*
* @link https://php.net/manual/en/reflectionzendextension.tostring.php
* @return string
* @since 5.4
*/
#[TentativeType]
public function __toString(): string {}
/**
* Gets name
*
* @link https://php.net/manual/en/reflectionzendextension.getname.php
* @return string
* @since 5.4
*/
#[Pure]
#[TentativeType]
public function getName(): string {}
/**
* Gets version
*
* @link https://php.net/manual/en/reflectionzendextension.getversion.php
* @return string
* @since 5.4
*/
#[Pure]
#[TentativeType]
public function getVersion(): string {}
/**
* Gets author
*
* @link https://php.net/manual/en/reflectionzendextension.getauthor.php
* @return string
* @since 5.4
*/
#[Pure]
#[TentativeType]
public function getAuthor(): string {}
/**
* Gets URL
*
* @link https://php.net/manual/en/reflectionzendextension.geturl.php
* @return string
* @since 5.4
*/
#[Pure]
#[TentativeType]
public function getURL(): string {}
/**
* Gets copyright
*
* @link https://php.net/manual/en/reflectionzendextension.getcopyright.php
* @return string
* @since 5.4
*/
#[Pure]
#[TentativeType]
public function getCopyright(): string {}
/**
* Clone handler
*
* @link https://php.net/manual/en/reflectionzendextension.clone.php
* @return void
* @since 5.4
*/
#[PhpStormStubsElementAvailable(from: "5.4", to: "8.0")]
final private function __clone(): void {}
/**
* Clone handler
*
* @link https://php.net/manual/en/reflectionzendextension.clone.php
* @return void
* @since 5.4
*/
#[PhpStormStubsElementAvailable(from: "8.1")]
private function __clone(): void {}
}

View File

@ -1,5 +1,4 @@
<?php
/**
* <b>Reflector</b> is an interface implemented by all
* exportable Reflection classes.

View File

@ -1,8 +1,5 @@
<?php
// Start of SPL v.0.2
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
/**
@ -60,7 +57,7 @@ interface SeekableIterator extends Iterator
* @return void
*/
#[TentativeType]
public function seek(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $offset): void;
public function seek($offset): void;
}
/**
@ -164,7 +161,7 @@ class EmptyIterator implements Iterator
* @return mixed Can return any type.
*/
#[TentativeType]
public function current(): never {}
public function current() {}
/**
* Move forward to next element
@ -180,7 +177,7 @@ class EmptyIterator implements Iterator
* @return mixed The key of the current element.
*/
#[TentativeType]
public function key(): never {}
public function key() {}
/**
* Checks if current position is valid
@ -189,8 +186,7 @@ class EmptyIterator implements Iterator
* Returns true on success or false on failure.
*/
#[TentativeType]
#[LanguageLevelTypeAware(['8.2' => 'false'], default: 'bool')]
public function valid() {}
public function valid(): bool {}
/**
* Rewind the Iterator to the first element
@ -201,71 +197,6 @@ class EmptyIterator implements Iterator
public function rewind(): void {}
}
/**
* Filtered iterator using the callback to determine which items are accepted or rejected.
* @link https://secure.php.net/manual/en/class.callbackfilteriterator.php
* @since 5.4
*/
class CallbackFilterIterator extends FilterIterator
{
/**
* Creates a filtered iterator using the callback to determine which items are accepted or rejected.
* @param Iterator $iterator The iterator to be filtered.
* @param callable $callback The callback, which should return TRUE to accept the current item or FALSE otherwise.
* May be any valid callable value.
* The callback should accept up to three arguments: the current item, the current key and the iterator, respectively.
* <code> function my_callback($current, $key, $iterator) </code>
* @link https://secure.php.net/manual/en/callbackfilteriterator.construct.php
*/
public function __construct(Iterator $iterator, callable $callback) {}
/**
* This method calls the callback with the current value, current key and the inner iterator.
* The callback is expected to return TRUE if the current item is to be accepted, or FALSE otherwise.
* @link https://secure.php.net/manual/en/callbackfilteriterator.accept.php
* @return bool true if the current element is acceptable, otherwise false.
*/
#[TentativeType]
public function accept(): bool {}
}
/**
* (PHP 5 >= 5.4.0)<br>
* RecursiveCallbackFilterIterator from a RecursiveIterator
* @link https://secure.php.net/manual/en/class.recursivecallbackfilteriterator.php
* @since 5.4
*/
class RecursiveCallbackFilterIterator extends CallbackFilterIterator implements RecursiveIterator
{
/**
* Create a RecursiveCallbackFilterIterator from a RecursiveIterator
* @param RecursiveIterator $iterator The recursive iterator to be filtered.
* @param callable $callback The callback, which should return TRUE to accept the current item or FALSE otherwise. See Examples.
* May be any valid callable value.
* @link https://www.php.net/manual/en/recursivecallbackfilteriterator.construct.php
*/
public function __construct(
RecursiveIterator $iterator,
#[LanguageLevelTypeAware(['8.0' => 'callable'], default: '')] $callback
) {}
/**
* Check whether the inner iterator's current element has children
* @link https://php.net/manual/en/recursiveiterator.haschildren.php
* @return bool Returns TRUE if the current element has children, FALSE otherwise.
*/
#[TentativeType]
public function hasChildren(): bool {}
/**
* Returns an iterator for the current entry.
* @link https://secure.php.net/manual/en/recursivecallbackfilteriterator.haschildren.php
* @return RecursiveCallbackFilterIterator containing the children.
*/
#[TentativeType]
public function getChildren(): RecursiveCallbackFilterIterator {}
}
/**
* Can be used to iterate through recursive iterators.
* @link https://php.net/manual/en/class.recursiveiteratoriterator.php
@ -300,11 +231,7 @@ class RecursiveIteratorIterator implements OuterIterator
* @param int $flags [optional] A bitmask of special flags. See class constants for details.
* @since 5.1.3
*/
public function __construct(
Traversable $iterator,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $mode = self::LEAVES_ONLY,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0
) {}
public function __construct(Traversable $iterator, $mode = RecursiveIteratorIterator::LEAVES_ONLY, $flags = 0) {}
/**
* Rewind the iterator to the first element of the top level inner iterator
@ -361,7 +288,7 @@ class RecursiveIteratorIterator implements OuterIterator
* @return RecursiveIterator|null The current active sub iterator.
*/
#[TentativeType]
public function getSubIterator(#[LanguageLevelTypeAware(['8.0' => 'int|null'], default: '')] $level): ?RecursiveIterator {}
public function getSubIterator($level): ?RecursiveIterator {}
/**
* Get inner iterator
@ -437,7 +364,7 @@ class RecursiveIteratorIterator implements OuterIterator
* @return void
*/
#[TentativeType]
public function setMaxDepth(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $maxDepth = -1): void {}
public function setMaxDepth($maxDepth = -1): void {}
/**
* Get max depth
@ -465,10 +392,7 @@ class IteratorIterator implements OuterIterator
* @param Traversable $iterator
* @param string|null $class [optional]
*/
public function __construct(
Traversable $iterator,
#[PhpStormStubsElementAvailable(from: '8.0')] ?string $class = ''
) {}
public function __construct(Traversable $iterator) {}
/**
* Get the inner iterator
@ -669,11 +593,7 @@ class LimitIterator extends IteratorIterator
* @param int $offset [optional] The offset to start at. Must be zero or greater.
* @param int $limit [optional] The number of items to iterate. Must be -1 or greater. -1, the default, means no limit.
*/
public function __construct(
Iterator $iterator,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $offset = 0,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $limit = -1
) {}
public function __construct(Iterator $iterator, $offset = 0, $limit = -1) {}
/**
* Rewind the iterator to the specified starting offset
@ -722,7 +642,7 @@ class LimitIterator extends IteratorIterator
* @return int the offset position after seeking.
*/
#[TentativeType]
public function seek(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $offset): int {}
public function seek($offset): int {}
/**
* Return the current position
@ -744,7 +664,7 @@ class LimitIterator extends IteratorIterator
* This object supports cached iteration over another iterator.
* @link https://php.net/manual/en/class.cachingiterator.php
*/
class CachingIterator extends IteratorIterator implements ArrayAccess, Countable, Stringable
class CachingIterator extends IteratorIterator implements ArrayAccess, Countable
{
/**
* String conversion flag (mutually exclusive): Uses the current element for the iterator's string conversion.
@ -785,10 +705,7 @@ class CachingIterator extends IteratorIterator implements ArrayAccess, Countable
* @param Iterator $iterator The iterator to cache.
* @param int $flags [optional] A bitmask of flags. See CachingIterator class constants for details.
*/
public function __construct(
Iterator $iterator,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = self::CALL_TOSTRING
) {}
public function __construct(Iterator $iterator, $flags = CachingIterator::CALL_TOSTRING) {}
/**
* Rewind the iterator
@ -866,7 +783,7 @@ class CachingIterator extends IteratorIterator implements ArrayAccess, Countable
* @return void
*/
#[TentativeType]
public function setFlags(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags): void {}
public function setFlags($flags): void {}
/**
* Internal cache array index to retrieve.
@ -887,7 +804,7 @@ class CachingIterator extends IteratorIterator implements ArrayAccess, Countable
* @throws BadMethodCallException when the {@see CachingIterator::FULL_CACHE} flag is not being used.
*/
#[TentativeType]
public function offsetSet($key, #[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value): void {}
public function offsetSet($key, $value): void {}
/**
* Remove an element from the internal cache array.
@ -941,10 +858,7 @@ class RecursiveCachingIterator extends CachingIterator implements RecursiveItera
* @param Iterator $iterator The iterator to cache.
* @param int $flags [optional] A bitmask of flags. See CachingIterator class constants for details.
*/
public function __construct(
Iterator $iterator,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = self::CALL_TOSTRING
) {}
public function __construct(Iterator $iterator, $flags = CachingIterator::CALL_TOSTRING) {}
/**
* Check whether the current element of the inner iterator has children
@ -1170,8 +1084,6 @@ class RegexIterator extends FilterIterator
*/
public const USE_KEY = 1;
public const INVERT_MATCH = 2;
#[LanguageLevelTypeAware(['8.1' => 'string|null'], default: '')]
public $replacement;
/**
@ -1183,13 +1095,7 @@ class RegexIterator extends FilterIterator
* @param int $flags [optional] Special flags, see RegexIterator::setFlags() for a list of available flags.
* @param int $pregFlags [optional] The regular expression flags. These flags depend on the operation mode parameter
*/
public function __construct(
Iterator $iterator,
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $pattern,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $mode = self::MATCH,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $pregFlags = 0
) {}
public function __construct(Iterator $iterator, $pattern, $mode = RegexIterator::MATCH, $flags = 0, $pregFlags = 0) {}
/**
* Get accept status
@ -1258,7 +1164,7 @@ class RegexIterator extends FilterIterator
* @return void
*/
#[TentativeType]
public function setMode(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $mode): void {}
public function setMode($mode): void {}
/**
* Get flags
@ -1295,16 +1201,7 @@ class RegexIterator extends FilterIterator
* @return void
*/
#[TentativeType]
public function setFlags(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags): void {}
/**
* Returns current regular expression
* @link https://secure.php.net/manual/en/regexiterator.getregex.php
* @return string
* @since 5.4
*/
#[TentativeType]
public function getRegex(): string {}
public function setFlags($flags): void {}
/**
* Returns the regular expression flags.
@ -1324,7 +1221,7 @@ class RegexIterator extends FilterIterator
* @return void
*/
#[TentativeType]
public function setPregFlags(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $pregFlags): void {}
public function setPregFlags($pregFlags): void {}
}
/**
@ -1342,13 +1239,7 @@ class RecursiveRegexIterator extends RegexIterator implements RecursiveIterator
* @param int $flags [optional] Special flags, see RegexIterator::setFlags() for a list of available flags.
* @param int $pregFlags [optional] The regular expression flags. These flags depend on the operation mode parameter
*/
public function __construct(
RecursiveIterator $iterator,
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $pattern,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $mode = self::MATCH,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $pregFlags = 0
) {}
public function __construct(RecursiveIterator $iterator, $pattern, $mode = RegexIterator::MATCH, $flags = 0, $pregFlags = 0) {}
/**
* Returns whether an iterator can be obtained for the current entry.
@ -1390,12 +1281,7 @@ class RecursiveTreeIterator extends RecursiveIteratorIterator
* @param int $cachingIteratorFlags [optional] Flags to affect the behavior of the {@see RecursiveCachingIterator} used internally.
* @param int $mode [optional] Flags to affect the behavior of the {@see RecursiveIteratorIterator} used internally.
*/
public function __construct(
$iterator,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = self::BYPASS_KEY,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $cachingIteratorFlags = CachingIterator::CATCH_GET_CHILD,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $mode = self::SELF_FIRST
) {}
public function __construct($iterator, $flags = self::BYPASS_KEY, $cachingIteratorFlags = CachingIterator::CATCH_GET_CHILD, $mode = RecursiveIteratorIterator::SELF_FIRST) {}
/**
* Rewind iterator
@ -1495,7 +1381,7 @@ class RecursiveTreeIterator extends RecursiveIteratorIterator
* @param string $postfix
*/
#[TentativeType]
public function setPostfix(#[PhpStormStubsElementAvailable(from: '7.3')] string $postfix): void {}
public function setPostfix(): void {}
/**
* Set a part of the prefix
@ -1509,10 +1395,7 @@ class RecursiveTreeIterator extends RecursiveIteratorIterator
* @return void
*/
#[TentativeType]
public function setPrefixPart(
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $part,
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $value
): void {}
public function setPrefixPart($part, $value): void {}
/**
* Get current entry
@ -1554,11 +1437,7 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count
* @param int $flags Flags to control the behaviour of the ArrayObject object.
* @param string $iteratorClass Specify the class that will be used for iteration of the ArrayObject object. ArrayIterator is the default class used.
*/
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'object|array'], default: '')] $array = [],
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0,
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $iteratorClass = "ArrayIterator"
) {}
public function __construct($array = []) {}
/**
* Returns whether the requested index exists
@ -1569,7 +1448,7 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count
* @return bool true if the requested index exists, otherwise false
*/
#[TentativeType]
public function offsetExists(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $key): bool {}
public function offsetExists($key): bool {}
/**
* Returns the value at the specified index
@ -1580,7 +1459,7 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count
* @return mixed|false The value at the specified index or false.
*/
#[TentativeType]
public function offsetGet(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $key): mixed {}
public function offsetGet($key): mixed {}
/**
* Sets the value at the specified index to newval
@ -1594,10 +1473,7 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count
* @return void
*/
#[TentativeType]
public function offsetSet(
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $key,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value
): void {}
public function offsetSet($key, $value): void {}
/**
* Unsets the value at the specified index
@ -1608,7 +1484,7 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count
* @return void
*/
#[TentativeType]
public function offsetUnset(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $key): void {}
public function offsetUnset($key): void {}
/**
* Appends the value
@ -1619,7 +1495,7 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count
* @return void
*/
#[TentativeType]
public function append(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value): void {}
public function append($value): void {}
/**
* Creates a copy of the ArrayObject.
@ -1683,7 +1559,7 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count
* @return void
*/
#[TentativeType]
public function setFlags(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags): void {}
public function setFlags($flags): void {}
/**
* Sort the entries by value
@ -1692,7 +1568,7 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count
* @return bool
*/
#[TentativeType]
public function asort(#[PhpStormStubsElementAvailable(from: '8.0')] int $flags = SORT_REGULAR): bool {}
public function asort(): bool {}
/**
* Sort the entries by key
@ -1701,7 +1577,7 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count
* @return bool
*/
#[TentativeType]
public function ksort(#[PhpStormStubsElementAvailable(from: '8.0')] int $flags = SORT_REGULAR): bool {}
public function ksort(): bool {}
/**
* Sort the entries with a user-defined comparison function and maintain key association
@ -1717,7 +1593,7 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count
* @return bool
*/
#[TentativeType]
public function uasort(#[LanguageLevelTypeAware(['8.0' => 'callable'], default: '')] $callback): bool {}
public function uasort($callback): bool {}
/**
* Sort the entries by keys using a user-defined comparison function
@ -1736,7 +1612,7 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count
* @return bool
*/
#[TentativeType]
public function uksort(#[LanguageLevelTypeAware(['8.0' => 'callable'], default: '')] $callback): bool {}
public function uksort($callback): bool {}
/**
* Sort entries using a "natural order" algorithm
@ -1763,7 +1639,7 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count
* @return void
*/
#[TentativeType]
public function unserialize(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $data): void {}
public function unserialize($data): void {}
/**
* Serialize an ArrayObject
@ -1773,27 +1649,6 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count
#[TentativeType]
public function serialize(): string {}
/**
* @return array
* @since 7.4
*/
#[TentativeType]
public function __debugInfo(): array {}
/**
* @return array
* @since 7.4
*/
#[TentativeType]
public function __serialize(): array {}
/**
* @param array $data
* @since 7.4
*/
#[TentativeType]
public function __unserialize(array $data): void {}
/**
* Create a new iterator from an ArrayObject instance
* @link https://php.net/manual/en/arrayobject.getiterator.php
@ -1811,7 +1666,7 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count
* @return array the old array.
*/
#[TentativeType]
public function exchangeArray(#[LanguageLevelTypeAware(['8.0' => 'object|array'], default: '')] $array): array {}
public function exchangeArray($array): array {}
/**
* Sets the iterator classname for the ArrayObject.
@ -1822,7 +1677,7 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count
* @return void
*/
#[TentativeType]
public function setIteratorClass(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $iteratorClass): void {}
public function setIteratorClass($iteratorClass): void {}
/**
* Gets the iterator classname for the ArrayObject.
@ -1850,11 +1705,7 @@ class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Coun
* @param int $flags Flags to control the behaviour of the ArrayObject object.
* @see ArrayObject::setFlags()
*/
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'object|array'], default: '')] $array = [],
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0,
#[PhpStormStubsElementAvailable(from: '7.0', to: '7.1')] $iterator_class = null
) {}
public function __construct($array = []) {}
/**
* Check if offset exists
@ -1865,7 +1716,7 @@ class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Coun
* @return bool true if the offset exists, otherwise false
*/
#[TentativeType]
public function offsetExists(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $key): bool {}
public function offsetExists($key): bool {}
/**
* Get value for an offset
@ -1876,7 +1727,7 @@ class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Coun
* @return mixed The value at offset <i>index</i>.
*/
#[TentativeType]
public function offsetGet(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $key): mixed {}
public function offsetGet($key): mixed {}
/**
* Set value for an offset
@ -1890,10 +1741,7 @@ class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Coun
* @return void
*/
#[TentativeType]
public function offsetSet(
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $key,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value
): void {}
public function offsetSet($key, $value): void {}
/**
* Unset value for an offset
@ -1904,7 +1752,7 @@ class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Coun
* @return void
*/
#[TentativeType]
public function offsetUnset(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $key): void {}
public function offsetUnset($key): void {}
/**
* Append an element
@ -1915,7 +1763,7 @@ class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Coun
* @return void
*/
#[TentativeType]
public function append(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value): void {}
public function append($value): void {}
/**
* Get array copy
@ -1955,7 +1803,7 @@ class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Coun
* @return void
*/
#[TentativeType]
public function setFlags(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags): void {}
public function setFlags($flags): void {}
/**
* Sort array by values
@ -1964,7 +1812,7 @@ class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Coun
* @return bool
*/
#[TentativeType]
public function asort(#[PhpStormStubsElementAvailable(from: '8.0')] int $flags = SORT_REGULAR): bool {}
public function asort(): bool {}
/**
* Sort array by keys
@ -1973,7 +1821,7 @@ class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Coun
* @return bool
*/
#[TentativeType]
public function ksort(#[PhpStormStubsElementAvailable(from: '8.0')] int $flags = SORT_REGULAR): bool {}
public function ksort(): bool {}
/**
* User defined sort
@ -1984,7 +1832,7 @@ class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Coun
* @return void
*/
#[TentativeType]
public function uasort(#[LanguageLevelTypeAware(['8.0' => 'callable'], default: '')] $callback): bool {}
public function uasort($callback): bool {}
/**
* User defined sort
@ -1995,7 +1843,7 @@ class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Coun
* @return void
*/
#[TentativeType]
public function uksort(#[LanguageLevelTypeAware(['8.0' => 'callable'], default: '')] $callback): bool {}
public function uksort($callback): bool {}
/**
* Sort an array naturally
@ -2022,7 +1870,7 @@ class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Coun
* @return void
*/
#[TentativeType]
public function unserialize(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $data): void {}
public function unserialize($data): void {}
/**
* Serialize
@ -2081,28 +1929,7 @@ class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Coun
* @return void
*/
#[TentativeType]
public function seek(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $offset): void {}
/**
* @return array
* @since 7.4
*/
#[TentativeType]
public function __debugInfo(): array {}
/**
* @return array
* @since 7.4
*/
#[TentativeType]
public function __serialize(): array {}
/**
* @param array $data
* @since 7.4
*/
#[TentativeType]
public function __unserialize(array $data): void {}
public function seek($offset): void {}
}
/**

View File

@ -1,9 +1,6 @@
<?php
// Start of SPL v.0.2
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
/**
@ -68,7 +65,7 @@ interface SplSubject
* information for an individual file.
* @link https://php.net/manual/en/class.splfileinfo.php
*/
class SplFileInfo implements Stringable
class SplFileInfo
{
/**
* Construct a new SplFileInfo object
@ -76,7 +73,7 @@ class SplFileInfo implements Stringable
* @param string $filename
* @since 5.1.2
*/
public function __construct(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $filename) {}
public function __construct($filename) {}
/**
* Gets the path without filename
@ -116,7 +113,7 @@ class SplFileInfo implements Stringable
* @since 5.2.2
*/
#[TentativeType]
public function getBasename(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $suffix = null): string {}
public function getBasename($suffix = null): string {}
/**
* Gets the path to the file
@ -292,7 +289,7 @@ class SplFileInfo implements Stringable
* @since 5.1.2
*/
#[TentativeType]
public function getFileInfo(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $class = null): SplFileInfo {}
public function getFileInfo($class = null): SplFileInfo {}
/**
* Gets an SplFileInfo object for the path
@ -304,7 +301,7 @@ class SplFileInfo implements Stringable
* @since 5.1.2
*/
#[TentativeType]
public function getPathInfo(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $class = null): ?SplFileInfo {}
public function getPathInfo($class = null): ?SplFileInfo {}
/**
* Gets an SplFileObject object for the file
@ -322,11 +319,7 @@ class SplFileInfo implements Stringable
* @since 5.1.2
*/
#[TentativeType]
public function openFile(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $mode = 'r',
#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $useIncludePath = false,
$context = null
): SplFileObject {}
public function openFile($mode = 'r', $useIncludePath = false, $context = null): SplFileObject {}
/**
* Sets the class name used with <b>SplFileInfo::openFile</b>
@ -338,7 +331,7 @@ class SplFileInfo implements Stringable
* @since 5.1.2
*/
#[TentativeType]
public function setFileClass(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $class = SplFileObject::class): void {}
public function setFileClass($class = SplFileObject::class): void {}
/**
* Sets the class used with getFileInfo and getPathInfo
@ -350,7 +343,7 @@ class SplFileInfo implements Stringable
* @since 5.1.2
*/
#[TentativeType]
public function setInfoClass(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $class = SplFileInfo::class): void {}
public function setInfoClass($class = SplFileInfo::class): void {}
/**
* Returns the path to the file as a string
@ -358,20 +351,12 @@ class SplFileInfo implements Stringable
* @return string the path to the file.
* @since 5.1.2
*/
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')]
public function __toString() {}
#[TentativeType]
final public function _bad_state_ex(): void {}
public function __wakeup() {}
/**
* @return array
* @since 7.4
*/
#[TentativeType]
public function __debugInfo(): array {}
}
/**
@ -388,7 +373,7 @@ class DirectoryIterator extends SplFileInfo implements SeekableIterator
* @throws UnexpectedValueException if the path cannot be opened.
* @throws RuntimeException if the path is an empty string.
*/
public function __construct(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $directory) {}
public function __construct($directory) {}
/**
* Determine if current DirectoryIterator item is '.' or '..'
@ -448,7 +433,7 @@ class DirectoryIterator extends SplFileInfo implements SeekableIterator
* @return void
*/
#[TentativeType]
public function seek(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $offset): void {}
public function seek($offset): void {}
}
/**
@ -477,10 +462,7 @@ class FilesystemIterator extends DirectoryIterator
* @param int $flags [optional]
* @throws UnexpectedValueException if the path cannot be found.
*/
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $directory,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO|FilesystemIterator::SKIP_DOTS
) {}
public function __construct($directory, $flags = FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO|FilesystemIterator::SKIP_DOTS) {}
/**
* Rewinds back to the beginning
@ -533,10 +515,7 @@ class FilesystemIterator extends DirectoryIterator
* @return void
*/
#[TentativeType]
public function setFlags(
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $flags = null,
#[PhpStormStubsElementAvailable(from: '8.0')] int $flags
): void {}
public function setFlags($flags = null): void {}
}
/**
@ -554,10 +533,7 @@ class RecursiveDirectoryIterator extends FilesystemIterator implements Recursive
* @throws UnexpectedValueException if the path cannot be found or is not a directory.
* @since 5.1.2
*/
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $directory,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO
) {}
public function __construct($directory, $flags = FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO) {}
/**
* Returns whether current entry is a directory and not '.' or '..'
@ -567,7 +543,7 @@ class RecursiveDirectoryIterator extends FilesystemIterator implements Recursive
* @return bool whether the current entry is a directory, but not '.' or '..'
*/
#[TentativeType]
public function hasChildren(#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $allowLinks = false): bool {}
public function hasChildren($allowLinks = false): bool {}
/**
* Returns an iterator for the current entry if it is a directory
@ -637,10 +613,7 @@ class GlobIterator extends FilesystemIterator implements Countable
* @param $pattern
* @param int $flags [optional]
*/
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $pattern,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO
) {}
public function __construct($pattern, $flags = FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO) {}
/**
* Get the number of directories and files
@ -691,12 +664,7 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
* @throws RuntimeException When the filename cannot be opened
* @throws LogicException When the filename is a directory
*/
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $filename,
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $mode = 'r',
#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $useIncludePath = false,
$context = null
) {}
public function __construct($filename, $mode = 'r', $useIncludePath = false, $context = null) {}
/**
* Rewind the file to the first line
@ -730,18 +698,6 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
#[TentativeType]
public function fgets(): string {}
/**
* Read from file
* @link https://php.net/manual/en/splfileobject.fread.php
* @param int $length <p>
* The number of bytes to read.
* </p>
* @return string|false returns the string read from the file or FALSE on failure.
* @since 5.5.11
*/
#[TentativeType]
public function fread(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $length): string|false {}
/**
* Gets line from file and parse as CSV fields
* @link https://php.net/manual/en/splfileobject.fgetcsv.php
@ -762,35 +718,7 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
* in which case empty lines are skipped.
*/
#[TentativeType]
#[LanguageLevelTypeAware(['8.1' => 'array|false'], default: 'array|false|null')]
public function fgetcsv(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $separator = ",",
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $enclosure = "\"",
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $escape = "\\"
) {}
/**
* Write a field array as a CSV line
* @link https://php.net/manual/en/splfileobject.fputcsv.php
* @param array $fields An array of values
* @param string $separator [optional] <p>
* The field delimiter (one character only). Defaults as a comma or the value set using <b>SplFileObject::setCsvControl</b>.
* </p>
* @param string $enclosure [optional] <p>
* The field enclosure character (one character only). Defaults as a double quotation mark or the value set using <b>SplFileObject::setCsvControl</b>.
* </p>
* @param string $escape The optional escape parameter sets the escape character (one character only).
* @return int|false Returns the length of the written string or FALSE on failure.
* @since 5.4
*/
#[TentativeType]
public function fputcsv(
array $fields,
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $separator = ',',
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $enclosure = '"',
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $escape = "\\",
#[PhpStormStubsElementAvailable('8.1')] string $eol = PHP_EOL
): int|false {}
public function fgetcsv($separator = ',', $enclosure = '"', $escape = "\\"): array|false|null {}
/**
* Set the delimiter and enclosure character for CSV
@ -807,11 +735,7 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
* @return void
*/
#[TentativeType]
public function setCsvControl(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $separator = ",",
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $enclosure = "\"",
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $escape = "\\"
): void {}
public function setCsvControl($separator = ',', $enclosure = '"', $escape = "\\"): void {}
/**
* Get the delimiter and enclosure character for CSV
@ -834,10 +758,7 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
* @return bool true on success or false on failure.
*/
#[TentativeType]
public function flock(
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $operation,
&$wouldBlock = null
): bool {}
public function flock($operation, &$wouldBlock = null): bool {}
/**
* Flushes the output to the file
@ -875,10 +796,7 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
* past EOF is not considered an error.
*/
#[TentativeType]
public function fseek(
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $offset,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $whence = SEEK_SET
): int {}
public function fseek($offset, $whence = SEEK_SET): int {}
/**
* Gets character from file
@ -908,7 +826,7 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
* code stripped, or false on error.
* @removed 8.0
*/
#[Deprecated(since: '7.3')]
#[Deprecated(since: "7.3")]
public function fgetss($allowable_tags = null) {}
/**
@ -926,10 +844,7 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
* parameters must be passed by reference.
*/
#[TentativeType]
public function fscanf(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $format,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] &...$vars
): array|int|null {}
public function fscanf($format, &...$vars): array|int|null {}
/**
* Write to file
@ -945,12 +860,8 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
* </p>
* @return int|false the number of bytes written, or 0 (false since 7.4) on error.
*/
#[LanguageLevelTypeAware(['7.4' => 'int|false'], default: 'int')]
#[TentativeType]
public function fwrite(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $data,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $length = null
): int|false {}
public function fwrite($data, $length = null): int {}
/**
* Gets information about the file
@ -976,7 +887,7 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
* @return bool true on success or false on failure.
*/
#[TentativeType]
public function ftruncate(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $size): bool {}
public function ftruncate($size): bool {}
/**
* Retrieve current line of file
@ -1013,7 +924,7 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
* @return void
*/
#[TentativeType]
public function setFlags(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags): void {}
public function setFlags($flags): void {}
/**
* Gets flags for the SplFileObject
@ -1032,7 +943,7 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
* @return void
*/
#[TentativeType]
public function setMaxLineLen(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $maxLength): void {}
public function setMaxLineLen($maxLength): void {}
/**
* Get maximum line length
@ -1050,8 +961,7 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
* @since 5.1.2
*/
#[TentativeType]
#[LanguageLevelTypeAware(['8.2' => 'false'], default: 'bool')]
public function hasChildren() {}
public function hasChildren(): bool {}
/**
* No purpose
@ -1059,8 +969,7 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
* @return null|RecursiveIterator An SplFileObject does not have children so this method returns NULL.
*/
#[TentativeType]
#[LanguageLevelTypeAware(['8.2' => 'null'], default: 'null|RecursiveIterator')]
public function getChildren() {}
public function getChildren(): null|RecursiveIterator {}
/**
* Seek to specified line
@ -1071,7 +980,7 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
* @return void
*/
#[TentativeType]
public function seek(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $line): void {}
public function seek($line): void {}
/**
* Alias of <b>SplFileObject::fgets</b>
@ -1086,7 +995,6 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
* Alias of <b>SplFileObject::current</b>
* @link https://php.net/manual/en/splfileobject.tostring.php
*/
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')]
public function __toString() {}
}
@ -1103,7 +1011,7 @@ class SplTempFileObject extends SplFileObject
* @throws RuntimeException if an error occurs.
* @since 5.1.2
*/
public function __construct(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $maxMemory = 2097152) {}
public function __construct($maxMemory = 2097152) {}
}
/**
@ -1120,20 +1028,6 @@ class SplDoublyLinkedList implements Iterator, Countable, ArrayAccess, Serializa
public const IT_MODE_DELETE = 1;
public const IT_MODE_KEEP = 0;
/**
* Add/insert a new value at the specified index
* @param mixed $index The index where the new value is to be inserted.
* @param mixed $value The new value for the index.
* @return void
* @link https://php.net/spldoublylinkedlist.add
* @since 5.5
*/
#[TentativeType]
public function add(
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $index,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value
): void {}
/**
* Pops a node from the end of the doubly linked list
* @link https://php.net/manual/en/spldoublylinkedlist.pop.php
@ -1159,7 +1053,7 @@ class SplDoublyLinkedList implements Iterator, Countable, ArrayAccess, Serializa
* @return void
*/
#[TentativeType]
public function push(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value): void {}
public function push($value): void {}
/**
* Prepends the doubly linked list with an element
@ -1170,7 +1064,7 @@ class SplDoublyLinkedList implements Iterator, Countable, ArrayAccess, Serializa
* @return void
*/
#[TentativeType]
public function unshift(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value): void {}
public function unshift($value): void {}
/**
* Peeks at the node from the end of the doubly linked list
@ -1215,7 +1109,7 @@ class SplDoublyLinkedList implements Iterator, Countable, ArrayAccess, Serializa
* @return int
*/
#[TentativeType]
public function setIteratorMode(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $mode): int {}
public function setIteratorMode($mode): int {}
/**
* Returns the mode of iteration
@ -1259,7 +1153,7 @@ class SplDoublyLinkedList implements Iterator, Countable, ArrayAccess, Serializa
* @return void
*/
#[TentativeType]
public function offsetSet($index, #[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value): void {}
public function offsetSet($index, $value): void {}
/**
* Unsets the value at the specified $index
@ -1319,46 +1213,6 @@ class SplDoublyLinkedList implements Iterator, Countable, ArrayAccess, Serializa
*/
#[TentativeType]
public function valid(): bool {}
/**
* Unserializes the storage
* @link https://php.net/manual/en/spldoublylinkedlist.serialize.php
* @param string $data The serialized string.
* @return void
* @since 5.4
*/
#[TentativeType]
public function unserialize(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $data): void {}
/**
* Serializes the storage
* @link https://php.net/manual/en/spldoublylinkedlist.unserialize.php
* @return string The serialized string.
* @since 5.4
*/
#[TentativeType]
public function serialize(): string {}
/**
* @return array
* @since 7.4
*/
#[TentativeType]
public function __debugInfo(): array {}
/**
* @return array
* @since 7.4
*/
#[TentativeType]
public function __serialize(): array {}
/**
* @param array $data
* @since 7.4
*/
#[TentativeType]
public function __unserialize(array $data): void {}
}
/**
@ -1377,7 +1231,7 @@ class SplQueue extends SplDoublyLinkedList
* @return void
*/
#[TentativeType]
public function enqueue(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value): void {}
public function enqueue($value): void {}
/**
* Dequeues a node from the queue
@ -1446,7 +1300,7 @@ abstract class SplHeap implements Iterator, Countable
* @return bool
*/
#[TentativeType]
public function insert(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value): bool {}
public function insert($value): bool {}
/**
* Peeks at the node from the top of the heap
@ -1526,13 +1380,6 @@ abstract class SplHeap implements Iterator, Countable
#[TentativeType]
public function isCorrupted(): bool {}
/**
* @return array
* @since 7.4
*/
#[TentativeType]
public function __debugInfo(): array {}
/**
* Compare elements in order to place them correctly in the heap while sifting up.
* @link https://php.net/manual/en/splheap.compare.php
@ -1653,10 +1500,7 @@ class SplMinHeap extends SplHeap
* Having multiple elements with the same value in a Heap is not recommended. They will end up in an arbitrary relative position.
*/
#[TentativeType]
protected function compare(
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value1,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value2
): int {}
protected function compare($value1, $value2): int {}
}
/**
@ -1682,10 +1526,7 @@ class SplMaxHeap extends SplHeap
* Having multiple elements with the same value in a Heap is not recommended. They will end up in an arbitrary relative position.
*/
#[TentativeType]
protected function compare(
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value1,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value2
): int {}
protected function compare($value1, $value2): int {}
}
/**
@ -1717,10 +1558,7 @@ class SplPriorityQueue implements Iterator, Countable
* Multiple elements with the same priority will get dequeued in no particular order.
*/
#[TentativeType]
public function compare(
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $priority1,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $priority2
): int {}
public function compare($priority1, $priority2): int {}
/**
* Inserts an element in the queue by sifting it up.
@ -1733,10 +1571,7 @@ class SplPriorityQueue implements Iterator, Countable
* </p>
* @return true
*/
public function insert(
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $priority
) {}
public function insert($value, $priority) {}
/**
* Sets the mode of extraction
@ -1750,7 +1585,7 @@ class SplPriorityQueue implements Iterator, Countable
* @return int
*/
#[TentativeType]
public function setExtractFlags(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags): int {}
public function setExtractFlags($flags): int {}
/**
* Peeks at the node from the top of the queue
@ -1842,13 +1677,6 @@ class SplPriorityQueue implements Iterator, Countable
*/
#[TentativeType]
public function getExtractFlags(): int {}
/**
* @return array
* @since 7.4
*/
#[TentativeType]
public function __debugInfo(): array {}
}
/**
@ -1863,14 +1691,14 @@ class SplPriorityQueue implements Iterator, Countable
* @template-implements ArrayAccess<int, TValue>
* @template-implements IteratorAggregate<int, TValue>
*/
class SplFixedArray implements Iterator, ArrayAccess, Countable, IteratorAggregate, JsonSerializable
class SplFixedArray implements Iterator, ArrayAccess, Countable, IteratorAggregate
{
/**
* Constructs a new fixed array
* @link https://php.net/manual/en/splfixedarray.construct.php
* @param int $size [optional]
*/
public function __construct(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $size = 0) {}
public function __construct($size = 0) {}
/**
* Import a PHP array in a <b>SplFixedArray</b> instance
@ -1885,10 +1713,7 @@ class SplFixedArray implements Iterator, ArrayAccess, Countable, IteratorAggrega
* containing the array content.
*/
#[TentativeType]
public static function fromArray(
#[LanguageLevelTypeAware(['8.0' => 'array'], default: '')] $array,
#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $preserveKeys = true
): SplFixedArray {}
public static function fromArray($array, $preserveKeys = true): SplFixedArray {}
/**
* Returns the size of the array
@ -1922,7 +1747,7 @@ class SplFixedArray implements Iterator, ArrayAccess, Countable, IteratorAggrega
* </p>
* @return bool
*/
public function setSize(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $size) {}
public function setSize($size) {}
/**
* Returns whether the requested index exists
@ -1958,7 +1783,7 @@ class SplFixedArray implements Iterator, ArrayAccess, Countable, IteratorAggrega
* @return void
*/
#[TentativeType]
public function offsetSet($index, #[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $value): void {}
public function offsetSet($index, $value): void {}
/**
* Unsets the value at the specified $index
@ -2010,15 +1835,6 @@ class SplFixedArray implements Iterator, ArrayAccess, Countable, IteratorAggrega
#[TentativeType]
public function __wakeup(): void {}
#[PhpStormStubsElementAvailable(from: '8.2')]
public function __serialize(): array {}
/**
* @param array $data
*/
#[PhpStormStubsElementAvailable(from: '8.2')]
public function __unserialize(array $data): void {}
/**
* @return Traversable<int, TValue>
*/
@ -2051,10 +1867,7 @@ class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess
* @return void
*/
#[TentativeType]
public function attach(
#[LanguageLevelTypeAware(['8.0' => 'object'], default: '')] $object,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $info = null
): void {}
public function attach($object, $info = null): void {}
/**
* Removes an object from the storage
@ -2065,7 +1878,7 @@ class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess
* @return void
*/
#[TentativeType]
public function detach(#[LanguageLevelTypeAware(['8.0' => 'object'], default: '')] $object): void {}
public function detach($object): void {}
/**
* Checks if the storage contains a specific object
@ -2076,7 +1889,7 @@ class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess
* @return bool true if the object is in the storage, false otherwise.
*/
#[TentativeType]
public function contains(#[LanguageLevelTypeAware(['8.0' => 'object'], default: '')] $object): bool {}
public function contains($object): bool {}
/**
* Adds all objects from another storage
@ -2087,7 +1900,7 @@ class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess
* @return int
*/
#[TentativeType]
public function addAll(#[LanguageLevelTypeAware(['8.0' => 'SplObjectStorage'], default: '')] $storage): int {}
public function addAll($storage): int {}
/**
* Removes objects contained in another storage from the current storage
@ -2098,7 +1911,7 @@ class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess
* @return int
*/
#[TentativeType]
public function removeAll(#[LanguageLevelTypeAware(['8.0' => 'SplObjectStorage'], default: '')] $storage): int {}
public function removeAll($storage): int {}
/**
* Removes all objects except for those contained in another storage from the current storage
@ -2110,7 +1923,7 @@ class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess
* @since 5.3.6
*/
#[TentativeType]
public function removeAllExcept(#[LanguageLevelTypeAware(['8.0' => 'SplObjectStorage'], default: '')] $storage): int {}
public function removeAllExcept($storage): int {}
/**
* Returns the data associated with the current iterator entry
@ -2129,7 +1942,7 @@ class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess
* @return void
*/
#[TentativeType]
public function setInfo(#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $info): void {}
public function setInfo($info): void {}
/**
* Returns the number of objects in the storage
@ -2138,7 +1951,7 @@ class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess
* @return int The number of objects in the storage.
*/
#[TentativeType]
public function count(#[PhpStormStubsElementAvailable(from: '8.0')] int $mode = COUNT_NORMAL): int {}
public function count(): int {}
/**
* Rewind the iterator to the first storage element
@ -2190,7 +2003,7 @@ class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess
* @since 5.2.2
*/
#[TentativeType]
public function unserialize(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $data): void {}
public function unserialize($data): void {}
/**
* Serializes the storage
@ -2225,10 +2038,7 @@ class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess
* @return void
*/
#[TentativeType]
public function offsetSet(
#[LanguageLevelTypeAware(['8.1' => 'mixed'], default: '')] $object,
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] $info = null
): void {}
public function offsetSet($object, $info = null): void {}
/**
* Removes an object from the storage
@ -2251,39 +2061,6 @@ class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess
*/
#[TentativeType]
public function offsetGet($object): mixed {}
/**
* Calculate a unique identifier for the contained objects
* @link https://php.net/manual/en/splobjectstorage.gethash.php
* @param TObject $object <p>
* object whose identifier is to be calculated.
* </p>
* @return string A string with the calculated identifier.
* @since 5.4
*/
#[TentativeType]
public function getHash(#[LanguageLevelTypeAware(['8.0' => 'object'], default: '')] $object): string {}
/**
* @return array
* @since 7.4
*/
#[TentativeType]
public function __serialize(): array {}
/**
* @param array $data
* @since 7.4
*/
#[TentativeType]
public function __unserialize(array $data): void {}
/**
* @return array
* @since 7.4
*/
#[TentativeType]
public function __debugInfo(): array {}
}
/**
@ -2302,10 +2079,7 @@ class MultipleIterator implements Iterator
* @link https://php.net/manual/en/multipleiterator.construct.php
* @param int $flags Defaults to MultipleIterator::MIT_NEED_ALL | MultipleIterator::MIT_KEYS_NUMERIC
*/
public function __construct(
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $flags,
#[PhpStormStubsElementAvailable(from: '8.0')] int $flags = MultipleIterator::MIT_NEED_ALL|MultipleIterator::MIT_KEYS_NUMERIC
) {}
public function __construct($flags) {}
/**
* Gets the flag information
@ -2325,7 +2099,7 @@ class MultipleIterator implements Iterator
* @return void
*/
#[TentativeType]
public function setFlags(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags): void {}
public function setFlags($flags): void {}
/**
* Attaches iterator information
@ -2340,10 +2114,7 @@ class MultipleIterator implements Iterator
* @return void Description...
*/
#[TentativeType]
public function attachIterator(
Iterator $iterator,
#[LanguageLevelTypeAware(['8.0' => 'int|string|null'], default: '')] $info = null
): void {}
public function attachIterator(Iterator $iterator, $info = null): void {}
/**
* Detaches an iterator
@ -2419,11 +2190,4 @@ class MultipleIterator implements Iterator
*/
#[TentativeType]
public function next(): void {}
/**
* @return array
* @since 7.4
*/
#[TentativeType]
public function __debugInfo(): array {}
}

View File

@ -1,7 +1,5 @@
<?php
// Start of SPL v.0.2
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Pure;
/**
@ -80,8 +78,7 @@ function spl_autoload_unregister(callable $callback): bool {}
* If no function is registered the return value will be an empty array.
* @since 5.1.2
*/
#[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")]
function spl_autoload_functions() {}
function spl_autoload_functions(): array|false {}
/**
* Try all registered __autoload() functions to load the requested class
@ -147,10 +144,7 @@ function spl_object_hash(object $object): string {}
* </p>
* @return array An array containing the elements of the iterator.
*/
function iterator_to_array(
#[LanguageLevelTypeAware(['8.2' => 'Traversable|array'], default: 'Traversable')] $iterator,
bool $preserve_keys = true
): array {}
function iterator_to_array(Traversable $iterator, bool $preserve_keys = true): array {}
/**
* Count the elements in an iterator
@ -161,7 +155,7 @@ function iterator_to_array(
* @return int The number of elements in iterator.
*/
#[Pure]
function iterator_count(#[LanguageLevelTypeAware(['8.2' => 'Traversable|array'], default: 'Traversable')] $iterator): int {}
function iterator_count(Traversable $iterator): int {}
/**
* Call a function for every element in an iterator
@ -180,25 +174,3 @@ function iterator_count(#[LanguageLevelTypeAware(['8.2' => 'Traversable|array'],
* @return int the iteration count.
*/
function iterator_apply(Traversable $iterator, callable $callback, ?array $args): int {}
// End of SPL v.0.2
/**
* Return the traits used by the given class
* @param object|string $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
* @see class_parents()
* @see get_declared_traits()
* @since 5.4
*/
function class_uses($object_or_class, bool $autoload = true): array|false {}
/**
* return the integer object handle for given object
* @param object $object
* @return int
* @since 7.2
*/
function spl_object_id(object $object): int {}

View File

@ -1,16 +1,93 @@
<?php
// Start of SimpleXML v.0.1
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
/**
* Interprets an XML file into an object
* @link https://php.net/manual/en/function.simplexml-load-file.php
* @param string $filename <p>
* Path to the XML file
* </p>
* <p>
* Libxml 2 unescapes the URI, so if you want to pass e.g.
* b&c as the URI parameter a,
* you have to call
* simplexml_load_file(rawurlencode('https://example.com/?a=' .
* urlencode('b&c'))). Since PHP 5.1.0 you don't need to do
* this because PHP will do it for you.
* </p>
* @param string|null $class_name [optional] <p>
* You may use this optional parameter so that
* <b>simplexml_load_file</b> will return an object of
* the specified class. That class should extend the
* SimpleXMLElement class.
* </p>
* @param int $options [optional] <p>
* 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 $namespace_or_prefix [optional] <p>
* Namespace prefix or URI.
* </p>
* @param bool $is_prefix [optional] <p>
* <b>TRUE</b> if <i>ns</i> is a prefix, <b>FALSE</b> if it's a URI;
* defaults to <b>FALSE</b>.
* </p>
* @return SimpleXMLElement|false 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(string $filename, ?string $class_name = 'SimpleXMLElement', int $options = 0, string $namespace_or_prefix = '', bool $is_prefix = false): SimpleXMLElement|false {}
/**
* Interprets a string of XML into an object
* @link https://php.net/manual/en/function.simplexml-load-string.php
* @param string $data <p>
* A well-formed XML string
* </p>
* @param string|null $class_name [optional] <p>
* You may use this optional parameter so that
* <b>simplexml_load_string</b> will return an object of
* the specified class. That class should extend the
* SimpleXMLElement class.
* </p>
* @param int $options [optional] <p>
* 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 $namespace_or_prefix [optional] <p>
* Namespace prefix or URI.
* </p>
* @param bool $is_prefix [optional] <p>
* <b>TRUE</b> if <i>ns</i> is a prefix, <b>FALSE</b> if it's a URI;
* defaults to <b>FALSE</b>.
* </p>
* @return SimpleXMLElement|false 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(string $data, ?string $class_name = 'SimpleXMLElement', int $options = 0, string $namespace_or_prefix = '', bool $is_prefix = false): SimpleXMLElement|false {}
/**
* Get a SimpleXMLElement object from a DOM node.
* @link https://php.net/manual/en/function.simplexml-import-dom.php
* @param SimpleXMLElement|DOMNode $node <p>
* A DOM Element node
* </p>
* @param string|null $class_name [optional] <p>
* You may use this optional parameter so that
* <b>simplexml_import_dom</b> will return an object of
* the specified class. That class should extend the
* SimpleXMLElement class.
* </p>
* @return SimpleXMLElement|null a SimpleXMLElement or <b>FALSE</b> on failure.
*/
function simplexml_import_dom(SimpleXMLElement|DOMNode $node, ?string $class_name = 'SimpleXMLElement'): ?SimpleXMLElement {}
/**
* Represents an element in an XML document.
* @link https://php.net/manual/en/class.simplexmlelement.php
*/
class SimpleXMLElement implements Traversable, ArrayAccess, Countable, Iterator, Stringable, RecursiveIterator
class SimpleXMLElement implements Traversable, ArrayAccess, Countable, Iterator, RecursiveIterator
{
/**
* Creates a new SimpleXMLElement object
@ -25,13 +102,7 @@ class SimpleXMLElement implements Traversable, ArrayAccess, Countable, Iterator,
* @since 5.0.1
*/
#[Pure]
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $data,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $options = 0,
#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $dataIsURL = false,
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $namespaceOrPrefix = "",
#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $isPrefix = false
) {}
public function __construct($data, $options = 0, $dataIsURL = false, $namespaceOrPrefix = '', $isPrefix = false) {}
/**
* Return a well-formed XML string based on SimpleXML element
@ -47,7 +118,7 @@ class SimpleXMLElement implements Traversable, ArrayAccess, Countable, Iterator,
* @since 5.0.1
*/
#[TentativeType]
public function asXML(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $filename = null): string|bool {}
public function asXML($filename = null): string|bool {}
/**
* Alias of <b>SimpleXMLElement::asXML</b>
@ -63,7 +134,7 @@ class SimpleXMLElement implements Traversable, ArrayAccess, Countable, Iterator,
* successfully and false otherwise.
*/
#[TentativeType]
public function saveXML(#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $filename = null): string|bool {}
public function saveXML($filename = null): string|bool {}
/**
* Runs XPath query on XML data
@ -75,7 +146,7 @@ class SimpleXMLElement implements Traversable, ArrayAccess, Countable, Iterator,
* case of an error.
*/
#[TentativeType]
public function xpath(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $expression): array|false|null {}
public function xpath($expression): array|false|null {}
/**
* Creates a prefix/ns context for the next XPath query
@ -92,10 +163,7 @@ class SimpleXMLElement implements Traversable, ArrayAccess, Countable, Iterator,
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function registerXPathNamespace(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $prefix,
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $namespace
): bool {}
public function registerXPathNamespace($prefix, $namespace): bool {}
/**
* Identifies an element's attributes
@ -115,10 +183,7 @@ class SimpleXMLElement implements Traversable, ArrayAccess, Countable, Iterator,
* @since 5.0.1
*/
#[TentativeType]
public function attributes(
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $namespaceOrPrefix = null,
#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $isPrefix = false
): ?static {}
public function attributes($namespaceOrPrefix = null, $isPrefix = false): ?static {}
/**
* Finds children of given node
@ -138,10 +203,7 @@ class SimpleXMLElement implements Traversable, ArrayAccess, Countable, Iterator,
*/
#[Pure]
#[TentativeType]
public function children(
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $namespaceOrPrefix = null,
#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $isPrefix = false
): ?static {}
public function children($namespaceOrPrefix = null, $isPrefix = false): ?static {}
/**
* Returns namespaces used in document
@ -156,7 +218,7 @@ class SimpleXMLElement implements Traversable, ArrayAccess, Countable, Iterator,
*/
#[Pure]
#[TentativeType]
public function getNamespaces(#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $recursive = false): array {}
public function getNamespaces($recursive = false): array {}
/**
* Returns namespaces declared in document
@ -175,10 +237,7 @@ class SimpleXMLElement implements Traversable, ArrayAccess, Countable, Iterator,
*/
#[Pure]
#[TentativeType]
public function getDocNamespaces(
#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $recursive = false,
#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $fromRoot = true
): array|false {}
public function getDocNamespaces($recursive = false, $fromRoot = true): array|false {}
/**
* Gets the name of the XML element
@ -208,11 +267,7 @@ class SimpleXMLElement implements Traversable, ArrayAccess, Countable, Iterator,
* @since 5.1.3
*/
#[TentativeType]
public function addChild(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $qualifiedName,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $value = null,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $namespace = null
): ?static {}
public function addChild($qualifiedName, $value = null, $namespace = null): ?static {}
/**
* Adds an attribute to the SimpleXML element
@ -230,12 +285,7 @@ class SimpleXMLElement implements Traversable, ArrayAccess, Countable, Iterator,
* @since 5.1.3
*/
#[TentativeType]
public function addAttribute(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $qualifiedName,
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $value = null,
#[PhpStormStubsElementAvailable(from: '8.0')] string $value,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $namespace = null
): void {}
public function addAttribute($qualifiedName, $value = null, $namespace = null): void {}
/**
* Returns the string content
@ -322,8 +372,7 @@ class SimpleXMLElement implements Traversable, ArrayAccess, Countable, Iterator,
* @return string|false the XML tag name of the element referenced by the current <b>SimpleXMLIterator</b> object
*/
#[TentativeType]
#[LanguageLevelTypeAware(['8.0' => 'string'], default: 'string|false')]
public function key() {}
public function key(): string|false {}
/**
* Move to next element
@ -333,21 +382,6 @@ class SimpleXMLElement implements Traversable, ArrayAccess, Countable, Iterator,
#[TentativeType]
public function next(): void {}
/**
* @return bool
* @since 8.0
*/
#[Pure]
#[TentativeType]
public function hasChildren(): bool {}
/**
* @since 8.0
*/
#[Pure]
#[TentativeType]
public function getChildren(): ?SimpleXMLElement {}
/**
* Provides access to element's children
* private Method not callable directly, stub exists for typehint only
@ -361,7 +395,7 @@ class SimpleXMLElement implements Traversable, ArrayAccess, Countable, Iterator,
* The SimpleXMLIterator provides recursive iteration over all nodes of a <b>SimpleXMLElement</b> object.
* @link https://php.net/manual/en/class.simplexmliterator.php
*/
class SimpleXMLIterator extends SimpleXMLElement implements RecursiveIterator, Countable, Stringable
class SimpleXMLIterator extends SimpleXMLElement implements RecursiveIterator, Countable
{
/**
* Rewind to the first element
@ -433,100 +467,3 @@ class SimpleXMLIterator extends SimpleXMLElement implements RecursiveIterator, C
#[Pure]
public function count() {}
}
/**
* Interprets an XML file into an object
* @link https://php.net/manual/en/function.simplexml-load-file.php
* @param string $filename <p>
* Path to the XML file
* </p>
* <p>
* Libxml 2 unescapes the URI, so if you want to pass e.g.
* b&c as the URI parameter a,
* you have to call
* simplexml_load_file(rawurlencode('https://example.com/?a=' .
* urlencode('b&c'))). Since PHP 5.1.0 you don't need to do
* this because PHP will do it for you.
* </p>
* @param string|null $class_name [optional] <p>
* You may use this optional parameter so that
* <b>simplexml_load_file</b> will return an object of
* the specified class. That class should extend the
* SimpleXMLElement class.
* </p>
* @param int $options [optional] <p>
* 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 $namespace_or_prefix [optional] <p>
* Namespace prefix or URI.
* </p>
* @param bool $is_prefix [optional] <p>
* <b>TRUE</b> if <i>ns</i> is a prefix, <b>FALSE</b> if it's a URI;
* defaults to <b>FALSE</b>.
* </p>
* @return SimpleXMLElement|false 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(
string $filename,
?string $class_name = "SimpleXMLElement",
int $options = 0,
string $namespace_or_prefix = "",
bool $is_prefix = false
): SimpleXMLElement|false {}
/**
* Interprets a string of XML into an object
* @link https://php.net/manual/en/function.simplexml-load-string.php
* @param string $data <p>
* A well-formed XML string
* </p>
* @param string|null $class_name [optional] <p>
* You may use this optional parameter so that
* <b>simplexml_load_string</b> will return an object of
* the specified class. That class should extend the
* SimpleXMLElement class.
* </p>
* @param int $options [optional] <p>
* 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 $namespace_or_prefix [optional] <p>
* Namespace prefix or URI.
* </p>
* @param bool $is_prefix [optional] <p>
* <b>TRUE</b> if <i>ns</i> is a prefix, <b>FALSE</b> if it's a URI;
* defaults to <b>FALSE</b>.
* </p>
* @return SimpleXMLElement|false 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(
string $data,
?string $class_name = "SimpleXMLElement",
int $options = 0,
string $namespace_or_prefix = "",
bool $is_prefix = false
): SimpleXMLElement|false {}
/**
* Get a SimpleXMLElement object from a DOM node.
* @link https://php.net/manual/en/function.simplexml-import-dom.php
* @param SimpleXMLElement|DOMNode $node <p>
* A DOM Element node
* </p>
* @param string|null $class_name [optional] <p>
* You may use this optional parameter so that
* <b>simplexml_import_dom</b> will return an object of
* the specified class. That class should extend the
* SimpleXMLElement class.
* </p>
* @return SimpleXMLElement|null a SimpleXMLElement or <b>FALSE</b> on failure.
*/
function simplexml_import_dom(
SimpleXMLElement|DOMNode $node,
?string $class_name = "SimpleXMLElement"
): ?SimpleXMLElement {}
// End of SimpleXML v.0.1

View File

@ -1,83 +0,0 @@
<?php
use JetBrains\PhpStorm\ArrayShape;
/**
* (PHP 5 &gt;= 5.5.5, PECL ZendOpcache &gt;= 7.0.2 )<br/>
* Compiles and caches a PHP script without executing it
* @link https://secure.php.net/manual/en/function.opcache-compile-file.php
* @param string $filename The path to the PHP script to be compiled.
* @return bool
* Returns <b>TRUE</b> if the opcode cache for <em>script</em> was
* invalidated or if there was nothing to invalidate, or <b>FALSE</b> if the opcode
* cache is disabled.
* @since 5.5
*/
function opcache_compile_file(string $filename): bool {}
/**
* (PHP 5 &gt;= 5.5.0, PECL ZendOpcache &gt;= 7.0.0 )<br/>
* Invalidates a cached script
* @link https://secure.php.net/manual/en/function.opcache-invalidate.php
* @param string $filename <p>The path to the script being invalidated.</p>
* @param bool $force [optional] <p> If set to <b>TRUE</b>, the script will be invalidated regardless of whether invalidation is necessary.</p>
* @return bool
* Returns <b>TRUE</b> if the opcode cache for <em>script</em> was
* invalidated or if there was nothing to invalidate, or <b>FALSE</b> if the opcode
* cache is disabled.
* @since 5.5
*/
function opcache_invalidate(string $filename, bool $force = false): bool {}
/**
* (PHP 5 &gt;= 5.5.0, PECL ZendOpcache &gt;= 7.0.0 )<br/>
* Resets the contents of the opcode cache
* @link https://secure.php.net/manual/en/function.opcache-reset.php
* @return bool Returns <b>TRUE</b> if the opcode cache was reset, or <b>FALSE</b> if the opcode cache is disabled.
* @since 5.5
*/
function opcache_reset(): bool {}
/**
* (PHP 5 &gt;= 5.5.5, PECL ZendOpcache &gt;= 7.0.2 )<br/>
* Get status information about the cache
* @link https://php.net/manual/en/function.opcache-get-status.php
* @param bool $include_scripts <p>Include script specific state information</p>
* @return array|false <p>Returns an array of information, optionally containing script specific state information</p>
* @since 5.5
*/
#[ArrayShape([
'opcache_enabled' => 'bool',
'file_cache' => 'string',
'file_cache_only' => 'bool',
'cache_full' => 'bool',
'restart_pending' => 'bool',
'restart_in_progress' => 'bool',
'memory_usage' => 'array',
'interned_strings_usage' => 'array',
'opcache_statistics' => 'array',
'preload_statistics' => 'array',
'scripts' => 'array',
])]
function opcache_get_status(bool $include_scripts = true): array|false {}
/**
* (PHP 5 &gt;= 5.5.5, PECL ZendOpcache &gt;= 7.0.2 )<br/>
* Get configuration information about the cache
* @link https://php.net/manual/en/function.opcache-get-configuration.php
* @return array|false <p>Returns an array of information, including ini, blacklist and version</p>
* @since 5.5
*/
#[ArrayShape(["directives" => "array", "version" => "string[]", "blacklist" => "array"])]
function opcache_get_configuration(): array|false {}
/**
* (PHP 5 &gt;= 5.6, PECL ZendOpcache &gt;= 7.0.4 )<br/>
* 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 $filename 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(string $filename): bool {}

View File

@ -52,10 +52,7 @@ class Bytes implements Serializable
*
* @param string $bin_str a PHP binary-string such as gzdeflate() produces.
*/
public function __construct($bin_str)
{
$this->s = $bin_str;
}
public function __construct($bin_str) {}
/**
* Unwraps an \Aerospike\Bytes object, returning the binary-string inside.
@ -63,10 +60,7 @@ class Bytes implements Serializable
* @param Bytes $bytes_wrap
* @return string
*/
public static function unwrap(Bytes $bytes_wrap)
{
return $bytes_wrap->s;
}
public static function unwrap(Bytes $bytes_wrap) {}
/**
* Returns a serialized representation of the binary-string.
@ -74,10 +68,7 @@ class Bytes implements Serializable
*
* @return string
*/
public function serialize()
{
return $this->s;
}
public function serialize() {}
/**
* Re-wraps the binary-string when called by unserialize().
@ -85,18 +76,12 @@ class Bytes implements Serializable
* @param string $bin_str a PHP binary-string. Called by unserialize().
* @return string
*/
public function unserialize($bin_str)
{
return $this->s = $bin_str;
}
public function unserialize($bin_str) {}
/**
* Returns the binary-string held in the \Aerospike\Bytes object.
*
* @return string
*/
public function __toString()
{
return $this->s;
}
public function __toString() {}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,5 @@
<?php
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Pure;
/**
@ -83,31 +81,8 @@ function bcmul(string $num1, string $num2, ?int $scale = null): string {}
* <i>divisor</i> is 0.
*/
#[Pure]
#[PhpStormStubsElementAvailable(to: '7.4')]
function bcdiv(string $num1, string $num2, ?int $scale = 0): ?string {}
/**
* Divide two arbitrary precision numbers
* @link https://php.net/manual/en/function.bcdiv.php
* @param string $num1 <p>
* The dividend, as a string.
* </p>
* @param string $num2 <p>
* The divisor, as a string.
* </p>
* @param int|null $scale [optional] <p>
* This optional parameter is used to set the number of digits after the
* decimal place in the result. If omitted, it will default to the scale
* set globally with the {@link bcscale()} function, or fallback to 0 if
* this has not been set.
* </p>
* @return string the result of the division as a string.
* @throws DivisionByZeroError if <i>divisor</i> is 0. Available since PHP 8.0.
*/
#[Pure]
#[PhpStormStubsElementAvailable('8.0')]
function bcdiv(string $num1, string $num2, ?int $scale = 0): string {}
/**
* Get modulus of an arbitrary precision number
* @link https://php.net/manual/en/function.bcmod.php
@ -127,31 +102,8 @@ function bcdiv(string $num1, string $num2, ?int $scale = 0): string {}
* <i>divisor</i> is 0.
*/
#[Pure]
#[PhpStormStubsElementAvailable(to: '7.4')]
function bcmod(string $num1, string $num2, ?int $scale = 0): ?string {}
/**
* Get modulus of an arbitrary precision number
* @link https://php.net/manual/en/function.bcmod.php
* @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 $num2 <p>
* The divisor, as a string. Since PHP 7.2, the divisor is no longer truncated to an integer.
* </p>
* @param int|null $scale [optional] <p>
* This optional parameter is used to set the number of digits after the
* decimal place in the result. If omitted, it will default to the scale
* set globally with the {@link bcscale()} function, or fallback to 0 if
* this has not been set. Available since PHP 7.2.
* </p>
* @return string the modulus as a string.
* @throws DivisionByZeroError if <i>divisor</i> is 0. Available since PHP 8.0.
*/
#[Pure]
#[PhpStormStubsElementAvailable('8.0')]
function bcmod(string $num1, string $num2, ?int $scale = 0): string {}
/**
* Raise an arbitrary precision number to another
* @link https://php.net/manual/en/function.bcpow.php
@ -185,8 +137,7 @@ function bcpow(string $num, string $exponent, ?int $scale = null): string {}
* <i>operand</i> is negative.
*/
#[Pure]
#[LanguageLevelTypeAware(["8.0" => "string"], default: "?string")]
function bcsqrt(string $num, ?int $scale) {}
function bcsqrt(string $num, ?int $scale): ?string {}
/**
* Set default scale parameter for all bc math functions
@ -194,11 +145,7 @@ function bcsqrt(string $num, ?int $scale) {}
* @param int $scale
* @return int|bool
*/
#[LanguageLevelTypeAware(['7.3' => 'int'], default: 'bool')]
function bcscale(
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] int $scale,
#[PhpStormStubsElementAvailable(from: '7.3')] #[LanguageLevelTypeAware(['8.0' => 'int|null'], default: 'int')] $scale = null
) {}
function bcscale(int $scale): bool {}
/**
* Compare two arbitrary precision numbers
@ -244,5 +191,4 @@ function bccomp(string $num1, string $num2, ?int $scale = null): int {}
* is 0 or <i>exponent</i> is negative.
*/
#[Pure]
#[LanguageLevelTypeAware(["8.0" => "string"], default: "?string")]
function bcpowmod(string $num, string $exponent, string $modulus, ?int $scale = null) {}
function bcpowmod(string $num, string $exponent, string $modulus, ?int $scale = null): ?string {}

View File

@ -1,8 +1,6 @@
<?php
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Pure;
/**
@ -89,8 +87,7 @@ function bzclose($bz): bool {}
* @return int the error number as an integer.
*/
#[Pure]
#[LanguageLevelTypeAware(['8.1' => 'int', '8.0' => 'int|false'], default: 'int')]
function bzerrno($bz) {}
function bzerrno($bz): int {}
/**
* Returns a bzip2 error string
@ -102,8 +99,7 @@ function bzerrno($bz) {}
* @return string a string containing the error message.
*/
#[Pure]
#[LanguageLevelTypeAware(['8.1' => 'string', '8.0' => 'string|false'], default: 'string')]
function bzerrstr($bz) {}
function bzerrstr($bz): string {}
/**
* Returns the bzip2 error number and error string in an array
@ -117,9 +113,8 @@ function bzerrstr($bz) {}
* errstr entry.
*/
#[Pure]
#[LanguageLevelTypeAware(['8.1' => 'array', '8.0' => 'array|false'], default: 'array')]
#[ArrayShape(["errno" => "int", "errstr" => "string"])]
function bzerror($bz) {}
function bzerror($bz): array {}
/**
* Compress a string into bzip2 encoded data
@ -144,12 +139,7 @@ function bzerror($bz) {}
* @return string|int The compressed string, or an error number if an error occurred.
*/
#[Pure]
function bzcompress(
string $data,
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.0')] int $blocksize,
#[PhpStormStubsElementAvailable(from: '7.1')] int $block_size = 4,
int $work_factor = 0
): string|int {}
function bzcompress(string $data, int $blocksize, int $work_factor = 0): string|int {}
/**
* Decompresses bzip2 encoded data

View File

@ -1,8 +1,48 @@
<?php
// Start of calendar v.
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
define('CAL_GREGORIAN', 0);
define('CAL_JULIAN', 1);
define('CAL_JEWISH', 2);
define('CAL_FRENCH', 3);
define('CAL_NUM_CALS', 4);
define('CAL_DOW_DAYNO', 0);
define('CAL_DOW_SHORT', 2);
define('CAL_DOW_LONG', 1);
define('CAL_MONTH_GREGORIAN_SHORT', 0);
define('CAL_MONTH_GREGORIAN_LONG', 1);
define('CAL_MONTH_JULIAN_SHORT', 2);
define('CAL_MONTH_JULIAN_LONG', 3);
define('CAL_MONTH_JEWISH', 4);
define('CAL_MONTH_FRENCH', 5);
define('CAL_EASTER_DEFAULT', 0);
define('CAL_EASTER_ROMAN', 1);
define('CAL_EASTER_ALWAYS_GREGORIAN', 2);
define('CAL_EASTER_ALWAYS_JULIAN', 3);
define('CAL_JEWISH_ADD_ALAFIM_GERESH', 2);
define('CAL_JEWISH_ADD_ALAFIM', 4);
define('CAL_JEWISH_ADD_GERESHAYIM', 8);
/**
* Converts Julian Day Count to Gregorian date
@ -170,7 +210,7 @@ function jdmonthname(int $julian_day, int $mode): string {}
* @param int $mode [optional] Allows Easter dates to be calculated based on the Julian calendar when set to CAL_EASTER_ALWAYS_JULIAN
* @return int The easter date as a unix timestamp.
*/
function easter_date(?int $year, #[PhpStormStubsElementAvailable(from: '8.0')] int $mode = CAL_EASTER_DEFAULT): int {}
function easter_date(?int $year): int {}
/**
* Get number of days after March 21 on which Easter falls for a given year
@ -248,17 +288,7 @@ function cal_to_jd(int $calendar, int $month, int $day, int $year): int {}
* day of week, abbreviated and full names of weekday and month and the
* date in string form "month/day/year".
*/
#[ArrayShape([
"date" => "string",
"month" => "int",
"day" => "int",
"year" => "int",
"dow" => "int",
"abbrevdayname" => "string",
"dayname" => "string",
"abbrevmonth" => "string",
"monthname" => "string"
])]
#[ArrayShape(["date" => "string", "month" => "int", "day" => "int", "year" => "int", "dow" => "int", "abbrevdayname" => "string", "dayname" => "string", "abbrevmonth" => "string", "monthname" => "string"])]
function cal_from_jd(int $julian_day, int $calendar): array {}
/**
@ -288,27 +318,3 @@ function cal_days_in_month(int $calendar, int $month, int $year): int {}
*/
#[ArrayShape(["months" => "array", "abbrevmonths" => "array", "maxdaysinmonth" => "int", "calname" => "string", "calsymbol" => "string"])]
function cal_info(int $calendar = -1): array {}
define('CAL_GREGORIAN', 0);
define('CAL_JULIAN', 1);
define('CAL_JEWISH', 2);
define('CAL_FRENCH', 3);
define('CAL_NUM_CALS', 4);
define('CAL_DOW_DAYNO', 0);
define('CAL_DOW_SHORT', 2);
define('CAL_DOW_LONG', 1);
define('CAL_MONTH_GREGORIAN_SHORT', 0);
define('CAL_MONTH_GREGORIAN_LONG', 1);
define('CAL_MONTH_JULIAN_SHORT', 2);
define('CAL_MONTH_JULIAN_LONG', 3);
define('CAL_MONTH_JEWISH', 4);
define('CAL_MONTH_FRENCH', 5);
define('CAL_EASTER_DEFAULT', 0);
define('CAL_EASTER_ROMAN', 1);
define('CAL_EASTER_ALWAYS_GREGORIAN', 2);
define('CAL_EASTER_ALWAYS_JULIAN', 3);
define('CAL_JEWISH_ADD_ALAFIM_GERESH', 2);
define('CAL_JEWISH_ADD_ALAFIM', 4);
define('CAL_JEWISH_ADD_GERESHAYIM', 8);
// End of calendar v.

View File

@ -1,6 +1,5 @@
<?php
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Pure;
/**
@ -13,7 +12,7 @@ use JetBrains\PhpStorm\Pure;
* a letter or a digit, <b>FALSE</b> otherwise.
*/
#[Pure]
function ctype_alnum(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mixed')] mixed $text): bool {}
function ctype_alnum(mixed $text): bool {}
/**
* Check for alphabetic character(s)
@ -25,7 +24,7 @@ function ctype_alnum(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mix
* a letter from the current locale, <b>FALSE</b> otherwise.
*/
#[Pure]
function ctype_alpha(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mixed')] mixed $text): bool {}
function ctype_alpha(mixed $text): bool {}
/**
* Check for control character(s)
@ -37,7 +36,7 @@ function ctype_alpha(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mix
* a control character from the current locale, <b>FALSE</b> otherwise.
*/
#[Pure]
function ctype_cntrl(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mixed')] mixed $text): bool {}
function ctype_cntrl(mixed $text): bool {}
/**
* Check for numeric character(s)
@ -49,7 +48,7 @@ function ctype_cntrl(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mix
* <i>text</i> is a decimal digit, <b>FALSE</b> otherwise.
*/
#[Pure]
function ctype_digit(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mixed')] mixed $text): bool {}
function ctype_digit(mixed $text): bool {}
/**
* Check for lowercase character(s)
@ -61,7 +60,7 @@ function ctype_digit(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mix
* a lowercase letter in the current locale.
*/
#[Pure]
function ctype_lower(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mixed')] mixed $text): bool {}
function ctype_lower(mixed $text): bool {}
/**
* Check for any printable character(s) except space
@ -74,7 +73,7 @@ function ctype_lower(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mix
* otherwise.
*/
#[Pure]
function ctype_graph(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mixed')] mixed $text): bool {}
function ctype_graph(mixed $text): bool {}
/**
* Check for printable character(s)
@ -88,7 +87,7 @@ function ctype_graph(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mix
* that do not have any output or control function at all.
*/
#[Pure]
function ctype_print(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mixed')] mixed $text): bool {}
function ctype_print(mixed $text): bool {}
/**
* Check for any printable character which is not whitespace or an
@ -101,7 +100,7 @@ function ctype_print(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mix
* is printable, but neither letter, digit or blank, <b>FALSE</b> otherwise.
*/
#[Pure]
function ctype_punct(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mixed')] mixed $text): bool {}
function ctype_punct(mixed $text): bool {}
/**
* Check for whitespace character(s)
@ -115,7 +114,7 @@ function ctype_punct(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mix
* carriage return and form feed characters.
*/
#[Pure]
function ctype_space(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mixed')] mixed $text): bool {}
function ctype_space(mixed $text): bool {}
/**
* Check for uppercase character(s)
@ -127,7 +126,7 @@ function ctype_space(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mix
* an uppercase letter in the current locale.
*/
#[Pure]
function ctype_upper(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mixed')] mixed $text): bool {}
function ctype_upper(mixed $text): bool {}
/**
* Check for character(s) representing a hexadecimal digit
@ -140,4 +139,4 @@ function ctype_upper(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mix
* [A-Fa-f] , <b>FALSE</b> otherwise.
*/
#[Pure]
function ctype_xdigit(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mixed')] mixed $text): bool {}
function ctype_xdigit(mixed $text): bool {}

View File

@ -1,13 +0,0 @@
<?php
/**
* @since 8.1
*/
class CURLStringFile
{
public string $data;
public string $mime;
public string $postname;
public function __construct(string $data, string $postname, string $mime = 'application/octet-stream') {}
}

View File

@ -1,92 +1,8 @@
<?php
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
class CURLFile
{
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
public $name;
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
public $mime;
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
public $postname;
/**
* 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 $mime_type [optional] <p>Mimetype of the file.</p>
* @param string $posted_filename [optional] <p>Name of the file.</p>
* @since 5.5
*/
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $filename,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $mime_type = '',
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $posted_filename = ''
) {}
/**
* Get file name
* @link https://secure.php.net/manual/en/curlfile.getfilename.php
* @return string Returns file name.
* @since 5.5
*/
#[Pure]
#[TentativeType]
public function getFilename(): string {}
/**
* Get MIME type
* @link https://secure.php.net/manual/en/curlfile.getmimetype.php
* @return string Returns MIME type.
* @since 5.5
*/
#[Pure]
#[TentativeType]
public function getMimeType(): string {}
/**
* Get file name for POST
* @link https://secure.php.net/manual/en/curlfile.getpostfilename.php
* @return string Returns file name for POST.
* @since 5.5
*/
#[Pure]
#[TentativeType]
public function getPostFilename(): string {}
/**
* Set MIME type
* @link https://secure.php.net/manual/en/curlfile.setmimetype.php
* @param string $mime_type
* @since 5.5
*/
#[TentativeType]
public function setMimeType(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $mime_type): void {}
/**
* Set file name for POST
* https://secure.php.net/manual/en/curlfile.setpostfilename.php
* @param string $posted_filename
* @since 5.5
*/
#[TentativeType]
public function setPostFilename(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $posted_filename): void {}
/**
* @link https://secure.php.net/manual/en/curlfile.wakeup.php
* Unserialization handler
* @since 5.5
*/
public function __wakeup() {}
}
/**
* Initialize a cURL session
* @link https://php.net/manual/en/function.curl-init.php
@ -95,20 +11,18 @@ class CURLFile
* to its value. You can manually set this using the
* curl_setopt function.
* </p>
* @return resource|false|CurlHandle a cURL handle on success, false on errors.
* @return resource|false a cURL handle on success, false on errors.
*/
#[LanguageLevelTypeAware(['8.0' => 'CurlHandle|false'], default: 'resource|false')]
function curl_init(?string $url) {}
/**
* Copy a cURL handle along with all of its preferences
* @link https://php.net/manual/en/function.curl-copy-handle.php
* @param CurlHandle|resource $handle
* @return CurlHandle|resource|false a new cURL handle.
* @param resource $handle
* @return resource|false a new cURL handle.
*/
#[Pure]
#[LanguageLevelTypeAware(['8.0' => 'CurlHandle|false'], default: 'resource|false')]
function curl_copy_handle(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle) {}
function curl_copy_handle($handle) {}
/**
* Gets cURL version information
@ -158,12 +72,12 @@ function curl_copy_handle(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], defa
*/
#[ArrayShape(["version_number" => "string", "version" => "string", "ssl_version_number" => "int", "ssl_version" => "string", "libz_version" => "string", "host" => "string", "age" => "int", "features" => "int", "protocols" => "array"])]
#[Pure]
function curl_version(#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $age = null): array|false {}
function curl_version($age = null): array|false {}
/**
* Set an option for a cURL transfer
* @link https://php.net/manual/en/function.curl-setopt.php
* @param CurlHandle|resource $handle
* @param resource $handle
* @param int $option <p>
* The CURLOPT_XXX option to set.
* </p>
@ -2116,16 +2030,12 @@ function curl_version(#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $
* </table>
* @return bool true on success or false on failure.
*/
function curl_setopt(
#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle,
int $option,
mixed $value
): bool {}
function curl_setopt($handle, int $option, mixed $value): bool {}
/**
* Set multiple options for a cURL transfer
* @link https://php.net/manual/en/function.curl-setopt-array.php
* @param CurlHandle|resource $handle
* @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
@ -2136,160 +2046,21 @@ function curl_setopt(
* future options in the options array.
* @since 5.1.3
*/
function curl_setopt_array(
#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle,
array $options
): bool {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Close a cURL share handle
* @link https://secure.php.net/manual/en/function.curl-share-close.php
* @param CurlShareHandle|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(#[LanguageLevelTypeAware(['8.0' => 'CurlShareHandle'], default: 'resource')] $share_handle): void {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Initialize a cURL share handle
* @link https://secure.php.net/manual/en/function.curl-share-init.php
* @return resource|CurlShareHandle Returns resource of type "cURL Share Handle".
* @since 5.5
*/
#[LanguageLevelTypeAware(['8.0' => 'CurlShareHandle'], default: 'resource')]
function curl_share_init() {}
/**
* (PHP 5 &gt;=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 CurlShareHandle|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>
*
* <thead>
* <tr>
* <th>Option</th>
* <th>Description</th>
* </tr>
* </thead>
*
* <tbody>
* <tr>
* <td style="vertical-align: top;"><b>CURLSHOPT_SHARE</b></td>
* <td style="vertical-align: top;">
* Specifies a type of data that should be shared.
* </td>
* </tr>
*
* <tr>
* <td style="vertical-align: top;"><b>CURLSHOPT_UNSHARE</b></td>
* <td style="vertical-align: top;">
* Specifies a type of data that will be no longer shared.
* </td>
* </tr>
*
* </tbody>
*
* </table>
* @param string $value <p><table>
*
* <thead>
* <tr>
* <th>Value</th>
* <th>Description</th>
* </tr>
* </thead>
*
* <tbody class="tbody">
* <tr>
* <td style="vertical-align: top;"><b>CURL_LOCK_DATA_COOKIE</b></td>
* <td style="vertical-align: top;">
* Shares cookie data.
* </td>
* </tr>
*
* <tr>
* <td style="vertical-align: top;"><b>CURL_LOCK_DATA_DNS</b></td>
* <td style="vertical-align: top;">
* Shares DNS cache. Note that when you use cURL multi handles,
* all handles added to the same multi handle will share DNS cache
* by default.
* </td>
* </tr>
*
* <tr>
* <td style="vertical-align: top;"><b>CURL_LOCK_DATA_SSL_SESSION</b></td>
* <td style="vertical-align: top;">
* Shares SSL session IDs, reducing the time spent on the SSL
* handshake when reconnecting to the same server. Note that SSL
* session IDs are reused within the same handle by default.
* </td>
* </tr>
*
* </tbody>
*
* </table>
* </p>
* @return bool
* Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
* @since 5.5
*/
function curl_share_setopt(
#[LanguageLevelTypeAware(['8.0' => 'CurlShareHandle'], default: 'resource')] $share_handle,
int $option,
mixed $value
): bool {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Return string describing the given error code
* @link https://secure.php.net/manual/en/function.curl-strerror.php
* @param int $error_code <p>
* One of the {@link https://curl.haxx.se/libcurl/c/libcurl-errors.html &nbsp;cURL error codes} constants.
* </p>
* @return string|null Returns error description or <b>NULL</b> for invalid error code.
* @since 5.5
*/
#[Pure]
function curl_strerror(int $error_code): ?string {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Decodes the given URL encoded string
* @link https://secure.php.net/manual/en/function.curl-unescape.php
* @param CurlHandle|resource $handle <p>A cURL handle returned by
* {@link https://secure.php.net/manual/en/function.curl-init.php curl_init()}.</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
*/
#[Pure]
function curl_unescape(
#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle,
string $string
): string|false {}
function curl_setopt_array($handle, array $options): bool {}
/**
* Perform a cURL session
* @link https://php.net/manual/en/function.curl-exec.php
* @param CurlHandle|resource $handle
* @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(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle): string|bool {}
function curl_exec($handle): string|bool {}
/**
* Get information regarding a specific transfer
* @link https://php.net/manual/en/function.curl-getinfo.php
* @param CurlHandle|resource $handle
* @param resource $handle
* @param int|null $option [optional] <p>
* This may be one of the following constants:
* <ul>
@ -2547,214 +2318,78 @@ function curl_exec(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'r
* </ul>
*/
#[Pure(true)]
function curl_getinfo(
#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle,
?int $option
): mixed {}
function curl_getinfo($handle, ?int $option): mixed {}
/**
* Return a string containing the last error for the current session
* @link https://php.net/manual/en/function.curl-error.php
* @param CurlHandle|resource $handle
* @param resource $handle
* @return string the error message or '' (the empty string) if no
* error occurred.
*/
#[Pure(true)]
function curl_error(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle): string {}
function curl_error($handle): string {}
/**
* Return the last error number
* @link https://php.net/manual/en/function.curl-errno.php
* @param CurlHandle|resource $handle
* @param resource $handle
* @return int the error number or 0 (zero) if no error
* occurred.
*/
#[Pure(true)]
function curl_errno(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle): int {}
/**
* URL encodes the given string
* @link https://secure.php.net/manual/en/function.curl-escape.php
* @param CurlHandle|resource $handle <p>
* A cURL handle returned by
* {@link https://secure.php.net/manual/en/function.curl-init.php curl_init()}.</p>
* @param string $string <p>
* The string to be encoded.</p>
* @return string|false Returns escaped string or FALSE on failure.
* @since 5.5
*/
#[Pure]
function curl_escape(
#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle,
string $string
): string|false {}
/**
* (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|null $mime_type <p>Mimetype of the file.</p>
* @param string|null $posted_filename <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
*/
#[Pure]
function curl_file_create(string $filename, ?string $mime_type = null, ?string $posted_filename = null): CURLFile {}
function curl_errno($handle): int {}
/**
* Close a cURL session
* @link https://php.net/manual/en/function.curl-close.php
* @param CurlHandle|resource $handle
* @param resource $handle
* @return void
*/
function curl_close(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle): void {}
function curl_close($handle): void {}
/**
* Returns a new cURL multi handle
* @link https://php.net/manual/en/function.curl-multi-init.php
* @return resource|CurlMultiHandle|false a cURL multi handle resource on success, false on failure.
* @return resource|false a cURL multi handle resource on success, false on failure.
*/
#[LanguageLevelTypeAware(['8.0' => 'CurlMultiHandle'], default: 'resource')]
function curl_multi_init(): CurlMultiHandle {}
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 CurlMultiHandle|resource $multi_handle
* @param CurlHandle|resource $handle
* @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(
#[LanguageLevelTypeAware(['8.0' => 'CurlMultiHandle'], default: 'resource')] $multi_handle,
#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle
): int {}
function curl_multi_add_handle($multi_handle, $handle): int {}
/**
* Remove a multi handle from a set of cURL handles
* @link https://php.net/manual/en/function.curl-multi-remove-handle.php
* @param CurlMultiHandle|resource $multi_handle
* @param CurlHandle|resource $handle
* @param resource $multi_handle
* @param resource $handle
* @return int|false On success, returns one of the CURLM_XXX error codes, false on failure.
*/
#[LanguageLevelTypeAware(['8.0' => 'int'], default: 'int|false')]
function curl_multi_remove_handle(
#[LanguageLevelTypeAware(['8.0' => 'CurlMultiHandle'], default: 'resource')] $multi_handle,
#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle
) {}
function curl_multi_remove_handle($multi_handle, $handle): int|false {}
/**
* Wait for activity on any curl_multi connection
* @link https://php.net/manual/en/function.curl-multi-select.php
* @param CurlMultiHandle|resource $multi_handle
* @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(
#[LanguageLevelTypeAware(['8.0' => 'CurlMultiHandle'], default: 'resource')] $multi_handle,
float $timeout = 1.0
): int {}
/**
* (PHP 5 &gt;=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 CurlMultiHandle|resource $multi_handle
* @param int $option <p>
* One of the <b>CURLMOPT_*</b> constants.
* </p>
* @param mixed $value <p>
* The value to be set on <em>option</em>.
* </p>
* <p>
* <em>value</em> should be an {@link https://php.net/manual/en/language.types.integer.php int} for the
* following values of the <em>option</em> parameter:
* </p><table>
*
* <thead>
* <tr>
* <th>Option</th>
* <th>Set <em><code class="parameter">value</code></em> to</th>
* </tr>
* </thead>
*
* <tbody>
* <tr>
* <td><b>CURLMOPT_PIPELINING</b></td>
* <td style="vertical-align: top;">
* Pass 1 to enable or 0 to disable. Enabling pipelining on a multi
* handle will make it attempt to perform HTTP Pipelining as far as
* possible for transfers using this handle. This means that if you add
* a second request that can use an already existing connection, the
* second request will be "piped" on the same connection rather than
* being executed in parallel.
* </td>
* </tr>
*
* <tr>
* <td style="vertical-align: top;"><b>CURLMOPT_MAXCONNECTS</b></td>
* <td style="vertical-align: top;">
* Pass a number that will be used as the maximum amount of
* simultaneously open connections that libcurl may cache. Default is
* 10. When the cache is full, curl closes the oldest one in the cache
* to prevent the number of open connections from increasing.
* </td>
* </tr>
* </tbody>
* </table>
* @return bool Returns TRUE on success or FALSE on failure.
* @since 5.5
*/
function curl_multi_setopt(
#[LanguageLevelTypeAware(['8.0' => 'CurlMultiHandle'], default: 'resource')] $multi_handle,
int $option,
mixed $value
): bool {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Return string describing error code
* @link https://secure.php.net/manual/en/function.curl-multi-strerror.php
* @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(int $error_code): ?string {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Pause and unpause a connection
* @link https://secure.php.net/manual/en/function.curl-pause.php
* @param CurlHandle|resource $handle
* <p>A cURL handle returned by {@link https://secure.php.net/manual/en/function.curl-init.php curl_init()}.</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(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle, int $flags): int {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Reset all options of a libcurl session handle
* @link https://secure.php.net/manual/en/function.curl-reset.php
* @param CurlHandle|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(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle): void {}
function curl_multi_select($multi_handle, float $timeout = 1.0): int {}
/**
* Run the sub-connections of the current cURL handle
* @link https://php.net/manual/en/function.curl-multi-exec.php
* @param CurlMultiHandle|resource $multi_handle
* @param resource $multi_handle
* @param int &$still_running <p>
* A reference to a flag to tell whether the operations are still running.
* </p>
@ -2765,108 +2400,41 @@ function curl_reset(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: '
* CURLM_OK.
* </p>
*/
function curl_multi_exec(
#[LanguageLevelTypeAware(['8.0' => 'CurlMultiHandle'], default: 'resource')] $multi_handle,
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] &$still_running = 0,
#[PhpStormStubsElementAvailable(from: '8.0')] &$still_running
): int {}
function curl_multi_exec($multi_handle, &$still_running = 0): int {}
/**
* 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 CurlHandle|resource $handle
* @param resource $handle
* @return null|string Return the content of a cURL handle if CURLOPT_RETURNTRANSFER is set.
*/
#[Pure]
function curl_multi_getcontent(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle): ?string {}
function curl_multi_getcontent($handle): ?string {}
/**
* Get information about the current transfers
* @link https://php.net/manual/en/function.curl-multi-info-read.php
* @param CurlMultiHandle|resource $multi_handle
* @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.
*/
#[Pure]
function curl_multi_info_read(
#[LanguageLevelTypeAware(['8.0' => 'CurlMultiHandle'], default: 'resource')] $multi_handle,
&$queued_messages
): array|false {}
#[ArrayShape(["msg" => "int", "result" => "int", "handle" => "resource"])]
function curl_multi_info_read($multi_handle, &$queued_messages): array|false {}
/**
* Close a set of cURL handles
* @link https://php.net/manual/en/function.curl-multi-close.php
* @param CurlMultiHandle|resource $multi_handle
* @param resource $multi_handle
* @return void
*/
function curl_multi_close(#[LanguageLevelTypeAware(['8.0' => 'CurlMultiHandle'], default: 'resource')] $multi_handle): void {}
function curl_multi_close($multi_handle): void {}
/**
* Return the last multi curl error number
* @param CurlMultiHandle|resource $multi_handle
* @return int
* @since 7.1
*/
#[Pure(true)]
function curl_multi_errno(#[LanguageLevelTypeAware(['8.0' => 'CurlMultiHandle'], default: 'resource')] $multi_handle): int {}
/**
* Return the last share curl error number
* @param CurlMultiHandle|resource $share_handle
* @return int
* @since 7.1
*/
#[Pure(true)]
function curl_share_errno(#[LanguageLevelTypeAware(['8.0' => 'CurlShareHandle'], default: 'resource')] $share_handle): int {}
/**
* Return string describing the given error code
* @param int $error_code
* @return string|null
* @since 7.1
*/
#[Pure]
function curl_share_strerror(int $error_code): ?string {}
/**
* @since 8.2
*/
function curl_upkeep(CurlHandle $handle): bool {}
/**
* @since 8.0
*/
final class CurlHandle
class CURLFile
{
/**
* Cannot directly construct CurlHandle, use curl_init() instead
* @see curl_init()
*/
private function __construct() {}
}
/**
* @since 8.0
*/
final class CurlMultiHandle
{
/**
* Cannot directly construct CurlMultiHandle, use curl_multi_init() instead
* @see curl_multi_init()
*/
private function __construct() {}
}
/**
* @since 8.0
*/
final class CurlShareHandle
{
/**
* Cannot directly construct CurlShareHandle, use curl_share_init() instead
* @see curl_share_init()
*/
private function __construct() {}
public $name;
public $mime;
public $postname;
}

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,7 @@
<?php
// Start of date v.5.3.2-0.dotdeb.1
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Pure;
/**
@ -294,8 +291,7 @@ function strtotime(string $datetime, ?int $baseTimestamp): int|false {}
* E_WARNING level error is emitted.
*/
#[Pure(true)]
#[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")]
function date(string $format, ?int $timestamp) {}
function date(string $format, ?int $timestamp): string|false {}
/**
* Format a local time/date as integer
@ -406,8 +402,7 @@ function idate(string $format, ?int $timestamp): int|false {}
* E_WARNING level error is emitted.
*/
#[Pure(true)]
#[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")]
function gmdate(string $format, ?int $timestamp) {}
function gmdate(string $format, ?int $timestamp): string|false {}
/**
* Get Unix timestamp for a date
@ -460,17 +455,7 @@ function gmdate(string $format, ?int $timestamp) {}
* it returned -1).
*/
#[Pure(true)]
function mktime(
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] int $hour = null,
#[PhpStormStubsElementAvailable(from: '8.0')] int $hour,
?int $minute = null,
?int $second = null,
?int $month = null,
?int $day = null,
?int $year = null,
#[Deprecated('Use the new timezone handling functions instead', since: '5.3')]
#[PhpStormStubsElementAvailable(from: '5.5', to: '5.6')] $is_dst = -1
): int|false {}
function mktime(int $hour = null, ?int $minute = null, ?int $second = null, ?int $month = null, ?int $day = null, ?int $year = null): int|false {}
/**
* Get Unix timestamp for a GMT date
@ -500,16 +485,7 @@ function mktime(
* @return int|false a integer Unix timestamp.
*/
#[Pure(true)]
function gmmktime(
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] int $hour = null,
#[PhpStormStubsElementAvailable(from: '8.0')] int $hour,
?int $minute = null,
?int $second = null,
?int $month = null,
?int $day = null,
?int $year = null,
#[PhpStormStubsElementAvailable(from: '5.5', to: '5.6')] $is_dst = null
): int|false {}
function gmmktime(int $hour = null, ?int $minute = null, ?int $second = null, ?int $month = null, ?int $day = null, ?int $year = null): int|false {}
/**
* Validate a Gregorian date
@ -787,7 +763,7 @@ function checkdate(int $month, int $day, int $year): bool {}
* with setlocale.
* @deprecated 8.1
*/
#[Deprecated(since: '8.1')]
#[Deprecated(since: "8.1")]
function strftime(string $format, ?int $timestamp): string|false {}
/**
@ -804,7 +780,7 @@ function strftime(string $format, ?int $timestamp): string|false {}
* with setlocale.
* @deprecated 8.1
*/
#[Deprecated(since: '8.1')]
#[Deprecated(since: "8.1")]
function gmstrftime(string $format, ?int $timestamp): string|false {}
/**
@ -830,17 +806,7 @@ function time(): int {}
* @return array
*/
#[Pure(true)]
#[ArrayShape([
'tm_sec' => 'int',
'tm_min' => 'int',
'tm_hour' => 'int',
'tm_mday' => 'int',
'tm_mon' => 'int',
'tm_year' => 'int',
'tm_wday' => 'int',
'tm_yday' => 'int',
'tm_isdst' => 'int',
])]
#[ArrayShape(["tm_sec" => "int", "tm_min" => "int", "tm_hour" => "int", "tm_mday" => "int", "tm_mon" => "int", "tm_year" => "int", "tm_wday" => "int", "tm_yday" => "int", "tm_isdst" => "int"])]
function localtime(?int $timestamp, bool $associative = false): array {}
/**
@ -923,19 +889,7 @@ function localtime(?int $timestamp, bool $associative = false): array {}
* </table>
*/
#[Pure(true)]
#[ArrayShape([
'seconds' => 'int',
'minutes' => 'int',
'hours' => 'int',
'mday' => 'int',
'wday' => 'int',
'mon' => 'int',
'year' => 'int',
'yday' => 'int',
'weekday' => 'int',
'month' => 'string',
0 => 'int',
])]
#[ArrayShape(["seconds" => "int", "minutes" => "int", "hours" => "int", "mday" => "int", "wday" => "int", "mon" => "int", "year" => "int", "yday" => "int", "weekday" => "int", "month" => "string", 0 => "int"])]
function getdate(?int $timestamp): array {}
/**
@ -952,38 +906,16 @@ function getdate(?int $timestamp): array {}
#[Pure(true)]
function date_create(string $datetime = 'now', ?DateTimeZone $timezone): DateTime|false {}
/**
* (PHP 5.5)<br/>
* Alias:
* {@see DateTimeImmutable::__construct}
* Returns new DateTimeImmutable object
* @link https://php.net/manual/en/function.date-create-immutable.php
* @see DateTimeImmutable::__construct()
* @param string $datetime [optional] <p>
* String in a format accepted by strtotime.
* </p>
* @param DateTimeZone|null $timezone [optional] <p>
* Time zone of the time.
* </p>
* @return DateTimeImmutable|false DateTime object on success or false on failure.
*/
#[Pure(true)]
function date_create_immutable(string $datetime = 'now', ?DateTimeZone $timezone): DateTimeImmutable|false {}
/**
* 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 $datetime
* @param DateTimeZone|null $timezone [optional]
* @return DateTimeImmutable|false
* @return DateTime|false
*/
#[Pure(true)]
function date_create_immutable_from_format(
string $format,
string $datetime,
?DateTimeZone $timezone
): DateTimeImmutable|false {}
function date_create_immutable_from_format(string $format, string $datetime, ?DateTimeZone $timezone) {}
/**
* Alias:
@ -1011,28 +943,8 @@ function date_create_from_format(string $format, string $datetime, ?DateTimeZone
* on success or false on failure.
*/
#[Pure(true)]
#[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")]
#[ArrayShape([
"year" => "int",
"month" => "int",
"day" => "int",
"hour" => "int",
"minute" => "int",
"second" => "int",
"fraction" => "double",
"is_localtime" => "bool",
"zone_type" => "int",
"zone" => "int",
"is_dst" => "bool",
"tz_abbr" => "string",
"tz_id" => "string",
"relative" => "array",
"warning_count" => "int",
"warnings" => "array",
"error_count" => "int",
"errors" => "array"
])]
function date_parse(string $datetime): false|array {}
#[ArrayShape(["year" => "int", "month" => "int", "day" => "int", "hour" => "int", "minute" => "int", "second" => "int", "fraction" => "double", "is_localtime" => "bool", "zone_type" => "int", "zone" => "int", "is_dst" => "bool", "tz_abbr" => "string", "tz_id" => "string", "relative" => "array", "warning_count" => "int", "warnings" => "array", "error_count" => "int", "errors" => "array"])]
function date_parse(string $datetime): array|false {}
/**
* Get info about given date formatted according to the specified format
@ -1046,26 +958,7 @@ function date_parse(string $datetime): false|array {}
* @return array associative array with detailed info about given date.
*/
#[Pure(true)]
#[ArrayShape([
'year' => 'int',
'month' => 'int',
'day' => 'int',
'hour' => 'int',
'minute' => 'int',
'second' => 'int',
'fraction' => 'double',
'is_localtime' => 'bool',
'zone_type' => 'int',
'zone' => 'int',
'is_dst' => 'bool',
'tz_abbr' => 'string',
'tz_id' => 'string',
'relative' => 'array',
'warning_count' => 'int',
'warnings' => 'array',
'error_count' => 'int',
'errors' => 'array'
])]
#[ArrayShape(["year" => "int", "month" => "int", "day" => "int", "hour" => "int", "minute" => "int", "second" => "int", "fraction" => "double", "is_localtime" => "bool", "zone_type" => "int", "zone" => "int", "is_dst" => "bool", "tz_abbr" => "string", "tz_id" => "string", "relative" => "array", "warning_count" => "int", "warnings" => "array", "error_count" => "int", "errors" => "array"])]
function date_parse_from_format(string $format, string $datetime): array {}
/**
@ -1083,13 +976,12 @@ function date_get_last_errors(): array|false {}
* Alias:
* {@see DateTime::format}
* @link https://php.net/manual/en/function.date-format.php
* @param DateTimeInterface $object
* @param DateTime $object
* @param string $format
* @return string|false formatted date string on success or <b>FALSE</b> on failure.
*/
#[Pure(true)]
#[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")]
function date_format(DateTimeInterface $object, string $format) {}
function date_format($object, string $format): string|false {}
/**
* Alter the timestamp of a DateTime object by incrementing or decrementing
@ -1115,8 +1007,7 @@ function date_modify(DateTime $object, string $modifier): DateTime|false {}
* @return DateTime|false <p>Returns the
* {@see DateTime} object for method chaining or <b>FALSE</b> on failure.</p>
*/
#[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTime|false")]
function date_add(DateTime $object, DateInterval $interval) {}
function date_add(DateTime $object, DateInterval $interval): DateTime|false {}
/**
* Subtracts an amount of days, months, years, hours, minutes and seconds from a datetime object
@ -1131,14 +1022,13 @@ function date_add(DateTime $object, DateInterval $interval) {}
* @return DateTime|false <p>Returns the
* {@see DateTime} object for method chaining or <b>FALSE</b> on failure.</p>
*/
#[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTime|false")]
function date_sub(DateTime $object, DateInterval $interval) {}
function date_sub(DateTime $object, DateInterval $interval): DateTime|false {}
/**
* Alias:
* {@see DateTime::getTimezone}
* @link https://php.net/manual/en/function.date-timezone-get.php
* @param DateTimeInterface $object <p>Procedural style only: A
* @param DateTime $object <p>Procedural style only: A
* {@see DateTime} object
* returned by
* {@see date_create()}</p>
@ -1150,14 +1040,14 @@ function date_sub(DateTime $object, DateInterval $interval) {}
* </p>
*/
#[Pure(true)]
function date_timezone_get(DateTimeInterface $object): DateTimeZone|false {}
function date_timezone_get($object): DateTimeZone|false {}
/**
* Sets the time zone for the datetime object
* Alias:
* {@see DateTime::setTimezone}
* @link https://php.net/manual/en/function.date-timezone-set.php
* @param DateTime|DateTimeInterface $object <p>A
* @param DateTime $object <p>A
* {@see DateTime} object returned by
* {@see date_create()}. The function modifies this object.</p>
* @param DateTimeZone $timezone <p>A
@ -1165,37 +1055,31 @@ function date_timezone_get(DateTimeInterface $object): DateTimeZone|false {}
* @return DateTime|false <p>Returns the
* {@see DateTime} object for method chaining or <b>FALSE</b> on failure.</p>
*/
#[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTime|false")]
function date_timezone_set(
#[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTimeInterface")] $object,
DateTimeZone $timezone
) {}
function date_timezone_set($object, DateTimeZone $timezone): DateTime|false {}
/**
* Alias:
* {@see DateTime::getOffset}
* @link https://php.net/manual/en/function.date-offset-get.php
* @param DateTimeInterface $object <p>Procedural style only: A {@see DateTime} object
* @param DateTime $object <p>Procedural style only: A {@see DateTime} object
* returned by {@see date_create()}</p>
* @return int|false <p>Returns the timezone offset in seconds from UTC on success or <b>FALSE</b> on failure.</p>
*/
#[Pure(true)]
#[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")]
function date_offset_get(DateTimeInterface $object) {}
function date_offset_get($object): int|false {}
/**
* Returns the difference between two datetime objects
* Alias:
* {@see DateTime::diff}
* @link https://php.net/manual/en/function.date-diff.php
* @param DateTimeInterface $baseObject
* @param DateTimeInterface $targetObject 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.
*/
#[Pure(true)]
#[LanguageLevelTypeAware(["8.0" => "DateInterval"], default: "DateInterval|false")]
function date_diff(DateTimeInterface $baseObject, DateTimeInterface $targetObject, bool $absolute = false) {}
function date_diff($baseObject, $targetObject, bool $absolute = false): DateInterval|false {}
/**
* Alias:
@ -1209,13 +1093,7 @@ function date_diff(DateTimeInterface $baseObject, DateTimeInterface $targetObjec
* @return DateTime <p>Returns the
* {@see DateTime} object for method chaining or <b>FALSE</b> on failure.</p>
*/
function date_time_set(
DateTime $object,
int $hour,
int $minute,
int $second = 0,
#[PhpStormStubsElementAvailable(from: '7.1')] int $microsecond = 0
): DateTime {}
function date_time_set(DateTime $object, int $hour, int $minute, int $second = 0): DateTime {}
/**
* Alias:
@ -1233,7 +1111,6 @@ function date_time_set(
* {@see DateTime} object for method chaining or <b>FALSE</b> on failure.
* </p>
*/
#[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTime|false")]
function date_date_set(DateTime $object, int $year, int $month, int $day): DateTime|false {}
/**
@ -1248,8 +1125,7 @@ function date_date_set(DateTime $object, int $year, int $month, int $day): DateT
* Returns the {@see DateTime} object for method chaining or <strong><code>FALSE</code></strong> on failure.
* </p>
*/
#[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTime|false")]
function date_isodate_set(DateTime $object, int $year, int $week, int $dayOfWeek = 1) {}
function date_isodate_set(DateTime $object, int $year, int $week, int $dayOfWeek = 1): DateTime|false {}
/**
* Sets the date and time based on an unix timestamp
@ -1263,7 +1139,6 @@ function date_isodate_set(DateTime $object, int $year, int $week, int $dayOfWeek
* @return DateTime|false
* {@see DateTime} object for call chaining or <b>FALSE</b> on failure
*/
#[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTime|false")]
function date_timestamp_set(DateTime $object, int $timestamp): DateTime|false {}
/**
@ -1271,11 +1146,11 @@ function date_timestamp_set(DateTime $object, int $timestamp): DateTime|false {}
* Alias:
* {@see DateTime::getTimestamp}
* @link https://php.net/manual/en/function.date-timestamp-get.php
* @param DateTimeInterface $object
* @param DateTime $object
* @return int <p>Returns the Unix timestamp representing the date.</p>
*/
#[Pure(true)]
function date_timestamp_get(DateTimeInterface $object): int {}
function date_timestamp_get($object): int {}
/**
* Returns new DateTimeZone object
@ -1331,12 +1206,11 @@ function timezone_name_from_abbr(string $abbr, int $utcOffset = -1, int $isDST =
* {@see DateTimeZone} object
* returned by
* {@see timezone_open()}</p>
* @param DateTimeInterface $datetime <p>DateTime that contains the date/time to compute the offset from.</p>
* @param DateTime $datetime <p>DateTime that contains the date/time to compute the offset from.</p>
* @return int|false <p>Returns time zone offset in seconds on success or <b>FALSE</b> on failure.</p>
*/
#[Pure(true)]
#[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")]
function timezone_offset_get(DateTimeZone $object, DateTimeInterface $datetime) {}
function timezone_offset_get(DateTimeZone $object, $datetime): int|false {}
/**
* Returns all transitions for the timezone
@ -1361,12 +1235,7 @@ function timezone_transitions_get(DateTimeZone $object, int $timestampBegin, int
* @return array|false <p>Array containing location information about timezone.</p>
*/
#[Pure(true)]
#[ArrayShape([
'country_code' => 'string',
'latitude' => 'double',
'longitude' => 'double',
'comments' => 'string',
])]
#[ArrayShape(["country_code" => "string", "latitude" => "double", "longitude" => "double", "comments" => "string"])]
function timezone_location_get(DateTimeZone $object): array|false {}
/**
@ -1380,8 +1249,7 @@ function timezone_location_get(DateTimeZone $object): array|false {}
* @return array|false Returns array on success or FALSE on failure.
*/
#[Pure(true)]
#[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")]
function timezone_identifiers_list(int $timezoneGroup = DateTimeZone::ALL, ?string $countryCode) {}
function timezone_identifiers_list(int $timezoneGroup = DateTimeZone::ALL, ?string $countryCode): array|false {}
/**
* Returns associative array containing dst, offset and the timezone name
@ -1391,8 +1259,7 @@ function timezone_identifiers_list(int $timezoneGroup = DateTimeZone::ALL, ?stri
* @return array|false Array on success or <b>FALSE</b> on failure.
*/
#[Pure]
#[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")]
function timezone_abbreviations_list() {}
function timezone_abbreviations_list(): array|false {}
/**
* Gets the version of the timezonedb
@ -1498,15 +1365,8 @@ function date_default_timezone_get(): string {}
* @deprecated in 8.1. Use {@link date_sun_info} instead
*/
#[Pure(true)]
#[Deprecated(reason: 'in 8.1. Use date_sun_info instead', since: '8.1')]
function date_sunrise(
int $timestamp,
int $returnFormat = SUNFUNCS_RET_STRING,
?float $latitude,
?float $longitude,
?float $zenith,
?float $utcOffset
): string|int|float|false {}
#[Deprecated(reason: "in 8.1. Use date_sun_info instead", since: "8.1")]
function date_sunrise(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, ?float $latitude, ?float $longitude, ?float $zenith, ?float $utcOffset): string|int|float|false {}
/**
* Returns time of sunset for a given day and location
@ -1557,15 +1417,8 @@ function date_sunrise(
* @deprecated in 8.1. Use {@link date_sun_info} instead
*/
#[Pure(true)]
#[Deprecated(reason: 'in 8.1. Use date_sun_info instead', since: '8.1')]
function date_sunset(
int $timestamp,
int $returnFormat = SUNFUNCS_RET_STRING,
?float $latitude,
?float $longitude,
?float $zenith,
?float $utcOffset
): string|int|float|false {}
#[Deprecated(reason: "in 8.1. Use date_sun_info instead", since: "8.1")]
function date_sunset(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, ?float $latitude, ?float $longitude, ?float $zenith, ?float $utcOffset): string|int|float|false {}
/**
* Returns an array with information about sunset/sunrise and twilight begin/end
@ -1608,18 +1461,5 @@ function date_sunset(
* @since 5.1.2
*/
#[Pure(true)]
#[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")]
#[ArrayShape([
"sunrise" => "int",
"sunset" => "int",
"transit" => "int",
"civil_twilight_begin" => "int",
"civil_twilight_end" => "int",
"nautical_twilight_begin" => "int",
"nautical_twilight_end" => "int",
"astronomical_twilight_begin" => "int",
"astronomical_twilight_end" => "int"
])]
#[ArrayShape(["sunrise" => "int", "sunset" => "int", "transit" => "int", "civil_twilight_begin" => "int", "civil_twilight_end" => "int", "nautical_twilight_begin" => "int", "nautical_twilight_end" => "int", "astronomical_twilight_begin" => "int", "astronomical_twilight_end" => "int"])]
function date_sun_info(int $timestamp, float $latitude, float $longitude): array|false {}
// End of date v.5.3.2-0.dotdeb.1

View File

@ -2,442 +2,13 @@
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\Immutable;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
/**
* @since 5.5
*/
interface DateTimeInterface
{
/**
* @since 7.2
*/
public const ATOM = 'Y-m-d\TH:i:sP';
/**
* @since 7.2
*/
public const COOKIE = 'l, d-M-Y H:i:s T';
/**
* This format is not compatible with ISO-8601, but is left this way for backward compatibility reasons.
* Use DateTime::ATOM or DATE_ATOM for compatibility with ISO-8601 instead.
* @since 7.2
* @deprecated
*/
public const ISO8601 = 'Y-m-d\TH:i:sO';
/**
* @since 8.2
*/
public const ISO8601_EXPANDED = DATE_ISO8601_EXPANDED;
/**
* @since 7.2
*/
public const RFC822 = 'D, d M y H:i:s O';
/**
* @since 7.2
*/
public const RFC850 = 'l, d-M-y H:i:s T';
/**
* @since 7.2
*/
public const RFC1036 = 'D, d M y H:i:s O';
/**
* @since 7.2
*/
public const RFC1123 = 'D, d M Y H:i:s O';
/**
* @since 7.2
*/
public const RFC2822 = 'D, d M Y H:i:s O';
/**
* @since 7.2
*/
public const RFC3339 = 'Y-m-d\TH:i:sP';
/**
* @since 7.2
*/
public const RFC3339_EXTENDED = 'Y-m-d\TH:i:s.vP';
/**
* @since 7.2
*/
public const RFC7231 = 'D, d M Y H:i:s \G\M\T';
/**
* @since 7.2
*/
public const RSS = 'D, d M Y H:i:s O';
/**
* @since 7.2
*/
public const W3C = 'Y-m-d\TH:i:sP';
/* Methods */
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Returns the difference between two DateTime objects
* @link https://secure.php.net/manual/en/datetime.diff.php
* @param DateTimeInterface $targetObject <p>The date to compare to.</p>
* @param bool $absolute <p>Should the interval be forced to be positive?</p>
* @return DateInterval
* The https://secure.php.net/manual/en/class.dateinterval.php DateInterval} object representing the
* difference between the two dates.
*/
#[TentativeType]
public function diff(
DateTimeInterface $targetObject,
#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $absolute = false
): DateInterval;
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Returns date formatted according to given format
* @link https://secure.php.net/manual/en/datetime.format.php
* @param string $format <p>
* Format accepted by {@link https://secure.php.net/manual/en/function.date.php date()}.
* </p>
* @return string
* Returns the formatted date string on success or <b>FALSE</b> on failure.
* Since PHP8, it always returns <b>STRING</b>.
*/
#[TentativeType]
public function format(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $format): string;
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Returns the timezone offset
* @return int|false
* Returns the timezone offset in seconds from UTC on success
* or <b>FALSE</b> on failure. Since PHP8, it always returns <b>INT</b>.
*/
#[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")]
#[TentativeType]
public function getOffset(): int;
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Gets the Unix timestamp
* @return int
* Returns the Unix timestamp representing the date.
*/
#[TentativeType]
#[LanguageLevelTypeAware(['8.1' => 'int'], default: 'int|false')]
public function getTimestamp();
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Return time zone relative to given DateTime
* @link https://secure.php.net/manual/en/datetime.gettimezone.php
* @return DateTimeZone|false
* Returns a {@link https://secure.php.net/manual/en/class.datetimezone.php DateTimeZone} object on success
* or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function getTimezone(): DateTimeZone|false;
/**
* (PHP 5 &gt;=5.5.0)<br/>
* The __wakeup handler
* @link https://secure.php.net/manual/en/datetime.wakeup.php
* @return void Initializes a DateTime object.
*/
#[TentativeType]
public function __wakeup(): void;
#[PhpStormStubsElementAvailable(from: '8.2')]
public function __serialize(): array;
#[PhpStormStubsElementAvailable(from: '8.2')]
public function __unserialize(array $data): void;
}
/**
* @since 5.5
*/
class DateTimeImmutable implements DateTimeInterface
{
/* Methods */
/**
* (PHP 5 &gt;=5.5.0)<br/>
* @link https://secure.php.net/manual/en/datetimeimmutable.construct.php
* @param string $datetime [optional]
* <p>A date/time string. Valid formats are explained in {@link https://secure.php.net/manual/en/datetime.formats.php Date and Time Formats}.</p>
* <p>Enter <b>NULL</b> here to obtain the current time when using the <em>$timezone</em> parameter.</p>
* @param null|DateTimeZone $timezone [optional] <p>
* A {@link https://secure.php.net/manual/en/class.datetimezone.php DateTimeZone} object representing the timezone of <em>$datetime</em>.
* </p>
* <p>If <em>$timezone</em> is omitted, the current timezone will be used.</p>
* <blockquote><p><b>Note</b>:</p><p>
* The <em>$timezone</em> parameter and the current timezone are ignored when the <em>$datetime</em> parameter either
* is a UNIX timestamp (e.g. <em>@946684800</em>) or specifies a timezone (e.g. <em>2010-01-28T15:00:00+02:00</em>).
* </p></blockquote>
* @throws Exception Emits Exception in case of an error.
*/
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $datetime = "now",
#[LanguageLevelTypeAware(['8.0' => 'DateTimeZone|null'], default: 'DateTimeZone')] $timezone = null
) {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Returns new DateTimeImmutable object formatted according to the specified format
* @link https://secure.php.net/manual/en/datetimeimmutable.createfromformat.php
* @param string $format
* @param string $datetime
* @param null|DateTimeZone $timezone [optional]
* @return DateTimeImmutable|false
*/
#[TentativeType]
public static function createFromFormat(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $format,
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $datetime,
#[LanguageLevelTypeAware(['8.0' => 'DateTimeZone|null'], default: 'DateTimeZone')] $timezone = null
): DateTimeImmutable|false {}
/**
* (PHP 5 &gt;=5.6.0)<br/>
* Returns new DateTimeImmutable object encapsulating the given DateTime object
* @link https://secure.php.net/manual/en/datetimeimmutable.createfrommutable.php
* @param DateTime $object The mutable DateTime object that you want to convert to an immutable version. This object is not modified, but instead a new DateTimeImmutable object is created containing the same date time and timezone information.
* @return DateTimeImmutable returns a new DateTimeImmutable instance.
*/
#[TentativeType]
#[LanguageLevelTypeAware(['8.2' => 'static'], default: 'DateTimeImmutable')]
public static function createFromMutable(DateTime $object) {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Returns the warnings and errors
* @link https://secure.php.net/manual/en/datetimeimmutable.getlasterrors.php
* @return array|false Returns array containing info about warnings and errors.
*/
#[ArrayShape(["warning_count" => "int", "warnings" => "string[]", "error_count" => "int", "errors" => "string[]"])]
#[TentativeType]
public static function getLastErrors(): array|false {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* The __set_state handler
* @link https://secure.php.net/manual/en/datetimeimmutable.set-state.php
* @param array $array <p>Initialization array.</p>
* @return DateTimeImmutable
* Returns a new instance of a {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object.
*/
public static function __set_state(array $array) {}
/**
* @param DateTimeInterface $object
* @return DateTimeImmutable
* @since 8.0
*/
public static function createFromInterface(DateTimeInterface $object): DateTimeImmutable {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Adds an amount of days, months, years, hours, minutes and seconds
* @param DateInterval $interval
* @return static
*/
#[TentativeType]
public function add(DateInterval $interval): DateTimeImmutable {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Alters the timestamp
* @link https://secure.php.net/manual/en/datetimeimmutable.modify.php
* @param string $modifier <p>A date/time string. Valid formats are explained in
* {@link https://secure.php.net/manual/en/datetime.formats.php Date and Time Formats}.</p>
* @return static|false Returns the newly created object or false on failure.
* Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
*/
#[Pure]
#[TentativeType]
public function modify(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $modifier): DateTimeImmutable|false {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Sets the date
* @link https://secure.php.net/manual/en/datetimeimmutable.setdate.php
* @param int $year <p>Year of the date.</p>
* @param int $month <p>Month of the date.</p>
* @param int $day <p>Day of the date.</p>
* @return static|false
* Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function setDate(
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $year,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $month,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $day
): DateTimeImmutable {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Sets the ISO date
* @link https://php.net/manual/en/class.datetimeimmutable.php
* @param int $year <p>Year of the date.</p>
* @param int $week <p>Week of the date.</p>
* @param int $dayOfWeek [optional] <p>Offset from the first day of the week.</p>
* @return static|false
* Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function setISODate(
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $year,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $week,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $dayOfWeek = 1
): DateTimeImmutable {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Sets the time
* @link https://secure.php.net/manual/en/datetimeimmutable.settime.php
* @param int $hour <p> Hour of the time. </p>
* @param int $minute <p> Minute of the time. </p>
* @param int $second [optional] <p> Second of the time. </p>
* @param int $microsecond [optional] <p> Microseconds of the time. Added since 7.1</p>
* @return static|false
* Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function setTime(
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $hour,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $minute,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $second = 0,
#[PhpStormStubsElementAvailable(from: '7.1')] #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $microsecond = 0
): DateTimeImmutable {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Sets the date and time based on an Unix timestamp
* @link https://secure.php.net/manual/en/datetimeimmutable.settimestamp.php
* @param int $timestamp <p>Unix timestamp representing the date.</p>
* @return static
* Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function setTimestamp(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $timestamp): DateTimeImmutable {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Sets the time zone
* @link https://secure.php.net/manual/en/datetimeimmutable.settimezone.php
* @param DateTimeZone $timezone <p>
* A {@link https://secure.php.net/manual/en/class.datetimezone.php DateTimeZone} object representing the
* desired time zone.
* </p>
* @return static
* Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function setTimezone(DateTimeZone $timezone): DateTimeImmutable {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Subtracts an amount of days, months, years, hours, minutes and seconds
* @link https://secure.php.net/manual/en/datetimeimmutable.sub.php
* @param DateInterval $interval <p>
* A {@link https://secure.php.net/manual/en/class.dateinterval.php DateInterval} object
* </p>
* @return static
* Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function sub(DateInterval $interval): DateTimeImmutable {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Returns the difference between two DateTime objects
* @link https://secure.php.net/manual/en/datetime.diff.php
* @param DateTimeInterface $targetObject <p>The date to compare to.</p>
* @param bool $absolute [optional] <p>Should the interval be forced to be positive?</p>
* @return DateInterval|false
* The {@link https://secure.php.net/manual/en/class.dateinterval.php DateInterval} object representing the
* difference between the two dates or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function diff(
#[LanguageLevelTypeAware(['8.0' => 'DateTimeInterface'], default: '')] $targetObject,
#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $absolute = false
): DateInterval {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Returns date formatted according to given format
* @link https://secure.php.net/manual/en/datetime.format.php
* @param string $format <p>
* Format accepted by {@link https://secure.php.net/manual/en/function.date.php date()}.
* </p>
* @return string
* Returns the formatted date string on success or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function format(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $format): string {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Returns the timezone offset
* @return int
* Returns the timezone offset in seconds from UTC on success
* or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function getOffset(): int {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Gets the Unix timestamp
* @return int
* Returns the Unix timestamp representing the date.
*/
#[TentativeType]
public function getTimestamp(): int {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Return time zone relative to given DateTime
* @link https://secure.php.net/manual/en/datetime.gettimezone.php
* @return DateTimeZone|false
* Returns a {@link https://secure.php.net/manual/en/class.datetimezone.php DateTimeZone} object on success
* or <b>FALSE</b> on failure.
*/
#[TentativeType]
public function getTimezone(): DateTimeZone|false {}
/**
* (PHP 5 &gt;=5.5.0)<br/>
* The __wakeup handler
* @link https://secure.php.net/manual/en/datetime.wakeup.php
* @return void Initializes a DateTime object.
*/
#[TentativeType]
public function __wakeup(): void {}
#[PhpStormStubsElementAvailable(from: '8.2')]
public function __serialize(): array {}
#[PhpStormStubsElementAvailable(from: '8.2')]
public function __unserialize(array $data): void {}
}
/**
* Representation of date and time.
* @link https://php.net/manual/en/class.datetime.php
*/
class DateTime implements DateTimeInterface
class DateTime
{
/**
* @removed 7.2
@ -505,7 +76,7 @@ class DateTime implements DateTimeInterface
public const W3C = 'Y-m-d\TH:i:sP';
/**
* (PHP 5 &gt;=5.2.0)<br/>
* (PHP 5 >=5.2.0)<br/>
* @link https://php.net/manual/en/datetime.construct.php
* @param string $datetime [optional]
* <p>A date/time string. Valid formats are explained in {@link https://php.net/manual/en/datetime.formats.php Date and Time Formats}.</p>
@ -531,20 +102,9 @@ class DateTime implements DateTimeInterface
* (e.g. <em>2010-01-28T15:00:00+02:00</em>).
* </p> <p></p></blockquote>
* @throws Exception Emits Exception in case of an error.
* @since 5.2
*/
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $datetime = 'now',
#[LanguageLevelTypeAware(['8.0' => 'DateTimeZone|null'], default: 'DateTimeZone')] $timezone = null
) {}
/**
* @param DateTimeImmutable $object
* @return DateTime
* @since 7.3
*/
#[TentativeType]
#[LanguageLevelTypeAware(['8.2' => 'static'], default: 'DateTime')]
public static function createFromImmutable(DateTimeImmutable $object) {}
public function __construct($datetime = 'now', DateTimeZone $timezone = null) {}
/**
* Parse a string into a new DateTime object according to the specified format
@ -555,11 +115,7 @@ class DateTime implements DateTimeInterface
* @link https://php.net/manual/en/datetime.createfromformat.php
*/
#[TentativeType]
public static function createFromFormat(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $format,
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $datetime,
#[LanguageLevelTypeAware(['8.0' => 'DateTimeZone|null'], default: 'DateTimeZone')] $timezone = null
): DateTime|false {}
public static function createFromFormat($format, $datetime, DateTimeZone $timezone = null): DateTime|false {}
/**
* Returns an array of warnings and errors found while parsing a date/time string
@ -578,13 +134,6 @@ class DateTime implements DateTimeInterface
*/
public static function __set_state($array) {}
/**
* @param DateTimeInterface $object
* @return DateTime
* @since 8.0
*/
public static function createFromInterface(DateTimeInterface $object): DateTime {}
/**
* @return void
* @link https://php.net/manual/en/datetime.wakeup.php
@ -599,7 +148,7 @@ class DateTime implements DateTimeInterface
* @link https://php.net/manual/en/datetime.format.php
*/
#[TentativeType]
public function format(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $format): string {}
public function format($format): string {}
/**
* Alter the timestamp of a DateTime object by incrementing or decrementing
@ -609,7 +158,7 @@ class DateTime implements DateTimeInterface
* @link https://php.net/manual/en/datetime.modify.php
*/
#[TentativeType]
public function modify(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $modifier): DateTime|false {}
public function modify($modifier): DateTime|false {}
/**
* Adds an amount of days, months, years, hours, minutes and seconds to a DateTime object
@ -644,7 +193,7 @@ class DateTime implements DateTimeInterface
* @link https://php.net/manual/en/datetime.settimezone.php
*/
#[TentativeType]
public function setTimezone(#[LanguageLevelTypeAware(['8.0' => 'DateTimeZone'], default: '')] $timezone): DateTime {}
public function setTimezone($timezone): DateTime {}
/**
* Returns the timezone offset
@ -664,12 +213,7 @@ class DateTime implements DateTimeInterface
* @link https://php.net/manual/en/datetime.settime.php
*/
#[TentativeType]
public function setTime(
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $hour,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $minute,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $second = 0,
#[PhpStormStubsElementAvailable(from: '7.1')] #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $microsecond = 0
): DateTime {}
public function setTime($hour, $minute, $second = 0): DateTime {}
/**
* Sets the current date of the DateTime object to a different date.
@ -680,11 +224,7 @@ class DateTime implements DateTimeInterface
* @link https://php.net/manual/en/datetime.setdate.php
*/
#[TentativeType]
public function setDate(
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $year,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $month,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $day
): DateTime {}
public function setDate($year, $month, $day): DateTime {}
/**
* Set a date according to the ISO 8601 standard - using weeks and day offsets rather than specific dates.
@ -695,11 +235,7 @@ class DateTime implements DateTimeInterface
* @link https://php.net/manual/en/datetime.setisodate.php
*/
#[TentativeType]
public function setISODate(
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $year,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $week,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $dayOfWeek = 1
): DateTime {}
public function setISODate($year, $week, $dayOfWeek = 1): DateTime {}
/**
* Sets the date and time based on a Unix timestamp.
@ -708,7 +244,7 @@ class DateTime implements DateTimeInterface
* @link https://php.net/manual/en/datetime.settimestamp.php
*/
#[TentativeType]
public function setTimestamp(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $timestamp): DateTime {}
public function setTimestamp($timestamp): DateTime {}
/**
* Gets the Unix timestamp.
@ -720,22 +256,13 @@ class DateTime implements DateTimeInterface
/**
* Returns the difference between two DateTime objects represented as a DateInterval.
* @param DateTimeInterface $targetObject The date to compare to.
* @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.
* @link https://php.net/manual/en/datetime.diff.php
*/
#[TentativeType]
public function diff(
#[LanguageLevelTypeAware(['8.0' => 'DateTimeInterface'], default: '')] $targetObject,
#[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $absolute = false
): DateInterval {}
#[PhpStormStubsElementAvailable(from: '8.2')]
public function __serialize(): array {}
#[PhpStormStubsElementAvailable(from: '8.2')]
public function __unserialize(array $data): void {}
public function diff($targetObject, $absolute = false): DateInterval {}
}
/**
@ -763,7 +290,7 @@ class DateTimeZone
* @param string $timezone
* @link https://php.net/manual/en/datetimezone.construct.php
*/
public function __construct(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $timezone) {}
public function __construct($timezone) {}
/**
* Returns associative array containing dst, offset and the timezone name
@ -780,12 +307,8 @@ class DateTimeZone
* @return array|false Returns the array of timezone identifiers, or <b>FALSE</b> on failure. Since PHP8, always returns <b>array</b>.
* @link https://php.net/manual/en/datetimezone.listidentifiers.php
*/
#[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")]
#[TentativeType]
public static function listIdentifiers(
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $timezoneGroup = DateTimeZone::ALL,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $countryCode = null
): array {}
public static function listIdentifiers($timezoneGroup = DateTimeZone::ALL, $countryCode = null): array|false {}
public static function __set_state($an_array) {}
@ -803,22 +326,17 @@ class DateTimeZone
* @link https://php.net/manual/en/datetimezone.getlocation.php
*/
#[TentativeType]
#[ArrayShape([
'country_code' => 'string',
'latitude' => 'double',
'longitude' => 'double',
'comments' => 'string',
])]
#[ArrayShape(["country_code" => "string", "latitude" => "double", "longitude" => "double", "comments" => "string"])]
public function getLocation(): array|false {}
/**
* Returns the timezone offset from GMT
* @param DateTimeInterface $datetime
* @param DateTime $datetime
* @return int
* @link https://php.net/manual/en/datetimezone.getoffset.php
*/
#[TentativeType]
public function getOffset(DateTimeInterface $datetime): int {}
public function getOffset($datetime): int {}
/**
* Returns all transitions for the timezone
@ -828,24 +346,13 @@ class DateTimeZone
* @link https://php.net/manual/en/datetimezone.gettransitions.php
*/
#[TentativeType]
public function getTransitions(
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] $timestampBegin,
#[PhpStormStubsElementAvailable(from: '5.3', to: '5.6')] $timestampEnd,
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $timestampBegin = null,
#[PhpStormStubsElementAvailable(from: '7.0')] #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $timestampEnd = null
): array|false {}
public function getTransitions($timestampBegin, $timestampEnd): array|false {}
/**
* @link https://php.net/manual/en/datetime.wakeup.php
*/
#[TentativeType]
public function __wakeup(): void {}
#[PhpStormStubsElementAvailable(from: '8.2')]
public function __serialize(): array {}
#[PhpStormStubsElementAvailable(from: '8.2')]
public function __unserialize(array $data): void {}
}
/**
@ -916,7 +423,7 @@ class DateInterval
* @throws Exception when the $duration cannot be parsed as an interval.
* @link https://php.net/manual/en/dateinterval.construct.php
*/
public function __construct(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $duration) {}
public function __construct($duration) {}
/**
* Sets up a DateInterval from the relative parts of the string
@ -926,7 +433,7 @@ class DateInterval
* @link https://php.net/manual/en/dateinterval.createfromdatestring.php
*/
#[TentativeType]
public static function createFromDateString(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $datetime): DateInterval|false {}
public static function createFromDateString($datetime): DateInterval|false {}
public static function __set_state($an_array) {}
@ -937,54 +444,40 @@ class DateInterval
* @link https://php.net/manual/en/dateinterval.format.php
*/
#[TentativeType]
public function format(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $format): string {}
public function format($format): string {}
#[TentativeType]
public function __wakeup(): void {}
#[PhpStormStubsElementAvailable(from: '8.2')]
public function __serialize(): array {}
#[PhpStormStubsElementAvailable(from: '8.2')]
public function __unserialize(array $data): void {}
}
/**
* Representation of date period.
* @link https://php.net/manual/en/class.dateperiod.php
* @template TDate of DateTimeInterface
* @template TEnd of ?DateTimeInterface
* @implements \IteratorAggregate<int, TDate>
* @template TDate of DateTime
* @template TEnd of ?DateTime
* @implements IteratorAggregate<int, TDate>
*/
class DatePeriod implements IteratorAggregate
{
public const EXCLUDE_START_DATE = 1;
/**
* @since 8.2
*/
public const INCLUDE_END_DATE = 2;
/**
* Start date
* @var DateTimeInterface
* @var DateTime
*/
#[LanguageLevelTypeAware(['8.2' => 'DateTimeInterface|null'], default: '')]
#[Immutable]
public $start;
/**
* Current iterator value.
* @var DateTimeInterface|null
* @var DateTime|null
*/
#[LanguageLevelTypeAware(['8.2' => 'DateTimeInterface|null'], default: '')]
public $current;
/**
* End date.
* @var DateTimeInterface|null
* @var DateTime|null
*/
#[LanguageLevelTypeAware(['8.2' => 'DateTimeInterface|null'], default: '')]
#[Immutable]
public $end;
@ -992,7 +485,6 @@ class DatePeriod implements IteratorAggregate
* The interval
* @var DateInterval
*/
#[LanguageLevelTypeAware(['8.2' => 'DateInterval|null'], default: '')]
#[Immutable]
public $interval;
@ -1000,7 +492,6 @@ class DatePeriod implements IteratorAggregate
* Number of recurrences.
* @var int
*/
#[LanguageLevelTypeAware(['8.2' => 'int'], default: '')]
#[Immutable]
public $recurrences;
@ -1008,7 +499,6 @@ class DatePeriod implements IteratorAggregate
* Start of period.
* @var bool
*/
#[LanguageLevelTypeAware(['8.2' => 'bool'], default: '')]
#[Immutable]
public $include_start_date;
@ -1025,12 +515,7 @@ class DatePeriod implements IteratorAggregate
* @param int $options Can be set to DatePeriod::EXCLUDE_START_DATE.
* @link https://php.net/manual/en/dateperiod.construct.php
*/
public function __construct(
DateTimeInterface $start,
DateInterval $interval,
DateTimeInterface $end,
$options = 0
) {}
public function __construct($start, DateInterval $interval, $end, $options = 0) {}
/**
* @param TDate $start
@ -1039,7 +524,7 @@ class DatePeriod implements IteratorAggregate
* @param int $options Can be set to DatePeriod::EXCLUDE_START_DATE.
* @link https://php.net/manual/en/dateperiod.construct.php
*/
public function __construct(DateTimeInterface $start, DateInterval $interval, $recurrences, $options = 0) {}
public function __construct($start, DateInterval $interval, $recurrences, $options = 0) {}
/**
* @param string $isostr String containing the ISO interval.
@ -1049,58 +534,8 @@ class DatePeriod implements IteratorAggregate
public function __construct($isostr, $options = 0) {}
#[TentativeType]
public static function __set_state(#[PhpStormStubsElementAvailable(from: '7.3')] array $array): DatePeriod {}
/**
* Gets the interval
* @return DateInterval
* @link https://php.net/manual/en/dateperiod.getdateinterval.php
* @since 5.6.5
*/
#[TentativeType]
public function getDateInterval(): DateInterval {}
/**
* Gets the end date
* @return DateTimeInterface|null
* @link https://php.net/manual/en/dateperiod.getenddate.php
* @since 5.6.5
* @return TEnd
*/
#[TentativeType]
public function getEndDate(): ?DateTimeInterface {}
/**
* Gets the start date
* @return DateTimeInterface
* @link https://php.net/manual/en/dateperiod.getstartdate.php
* @since 5.6.5
* @return TDate
*/
#[TentativeType]
public function getStartDate(): DateTimeInterface {}
public static function __set_state(): DatePeriod {}
#[TentativeType]
public function __wakeup(): void {}
/**
* Get the number of recurrences
* @return int|null
* @link https://php.net/manual/en/dateperiod.getrecurrences.php
* @since 7.2.17
*/
#[TentativeType]
public function getRecurrences(): ?int {}
/**
* @return \Iterator<int, TDate>
* @since 8.0
*/
public function getIterator(): Iterator {}
#[PhpStormStubsElementAvailable(from: '8.2')]
public function __serialize(): array {}
#[PhpStormStubsElementAvailable(from: '8.2')]
public function __unserialize(array $data): void {}
}

View File

@ -1,8 +1,7 @@
<?php
// Start of date v.5.3.2-0.dotdeb.1
define('DATE_ATOM', "Y-m-d\TH:i:sP");
define('DATE_COOKIE', "l, d-M-Y H:i:s T");
/**
@ -11,17 +10,25 @@ define('DATE_COOKIE', "l, d-M-Y H:i:s T");
* @deprecated
*/
define('DATE_ISO8601', "Y-m-d\TH:i:sO");
/** @since 8.2 */
define('DATE_ISO8601_EXPANDED', "X-m-d\\TH:i:sP");
define('DATE_RFC822', "D, d M y H:i:s O");
define('DATE_RFC850', "l, d-M-y H:i:s T");
define('DATE_RFC1036', "D, d M y H:i:s O");
define('DATE_RFC1123', "D, d M Y H:i:s O");
define('DATE_RFC2822', "D, d M Y H:i:s O");
define('DATE_RFC3339', "Y-m-d\TH:i:sP");
define('DATE_RFC3339_EXTENDED', "Y-m-d\TH:i:s.vP");
define('DATE_RFC7231', "D, d M Y H:i:s \G\M\T");
define('DATE_RSS', "D, d M Y H:i:s O");
define('DATE_W3C', "Y-m-d\TH:i:sP");
/**
@ -41,5 +48,3 @@ define('SUNFUNCS_RET_STRING', 1);
* @link https://php.net/manual/en/datetime.constants.php
*/
define('SUNFUNCS_RET_DOUBLE', 2);
// End of date v.5.3.2-0.dotdeb.1

View File

@ -1,15 +1,5 @@
<?php
// Start of dba v.
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
/** @since 8.2 */
const DBA_LMDB_USE_SUB_DIR = 0;
/** @since 8.2 */
const DBA_LMDB_NO_SUB_DIR = 0;
/**
* Open database
* @link https://php.net/manual/en/function.dba-open.php
@ -127,19 +117,8 @@ const DBA_LMDB_NO_SUB_DIR = 0;
* @param mixed ...$handler_params [optional]
* @return resource|false a positive handle on success or <b>FALSE</b> on failure.
*/
#[PhpStormStubsElementAvailable(from: '5.3', to: '8.1')]
function dba_open($path, $mode, $handler, ...$handler_params) {}
#[PhpStormStubsElementAvailable(from: '8.2')]
function dba_open(
string $path,
string $mode,
?string $handler = null,
int $permission = 0o644,
int $map_size = 0,
?int $flags = null
) {}
/**
* Open database persistently
* @link https://php.net/manual/en/function.dba-popen.php
@ -161,19 +140,8 @@ function dba_open(
* @param mixed ...$handler_params [optional]
* @return resource|false a positive handle on success or <b>FALSE</b> on failure.
*/
#[PhpStormStubsElementAvailable(from: '5.3', to: '8.1')]
function dba_popen($path, $mode, $handler, ...$handler_params) {}
#[PhpStormStubsElementAvailable(from: '8.2')]
function dba_popen(
string $path,
string $mode,
?string $handler = null,
int $permission = 0o644,
int $map_size = 0,
?int $flags = null
) {}
/**
* Close a DBA database
* @link https://php.net/manual/en/function.dba-close.php
@ -197,7 +165,7 @@ function dba_close($dba): void {}
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function dba_delete(#[LanguageLevelTypeAware(['8.2' => 'array|string'], default: '')] $key, $dba): bool {}
function dba_delete($key, $dba): bool {}
/**
* Check whether key exists
@ -211,7 +179,7 @@ function dba_delete(#[LanguageLevelTypeAware(['8.2' => 'array|string'], default:
* </p>
* @return bool <b>TRUE</b> if the key exists, <b>FALSE</b> otherwise.
*/
function dba_exists(#[LanguageLevelTypeAware(['8.2' => 'array|string'], default: '')] $key, $dba): bool {}
function dba_exists($key, $dba): bool {}
/**
* Fetch data specified by key
@ -271,11 +239,7 @@ function dba_fetch($key, $skip, $dba): string|false {}
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function dba_insert(
#[LanguageLevelTypeAware(['8.2' => 'array|string'], default: '')] $key,
string $value,
$dba
): bool {}
function dba_insert($key, string $value, $dba): bool {}
/**
* Replace or insert entry
@ -292,11 +256,7 @@ function dba_insert(
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function dba_replace(
#[LanguageLevelTypeAware(['8.2' => 'array|string'], default: '')] $key,
string $value,
$dba
): bool {}
function dba_replace($key, string $value, $dba): bool {}
/**
* Fetch first key
@ -377,5 +337,3 @@ function dba_list(): array {}
* <i>key</i> is <b>NULL</b> or <b>FALSE</b>.
*/
function dba_key_split(string|false|null $key): array|false {}
// End of dba v.

View File

@ -1,19 +1,5 @@
<?php
// Start of dom v.20031129
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
/**
* Gets a <b>DOMElement</b> object from a <b>SimpleXMLElement</b> object
* @link https://php.net/manual/en/function.dom-import-simplexml.php
* @param SimpleXMLElement $node <p>
* The <b>SimpleXMLElement</b> node.
* </p>
* @return DOMElement|null The <b>DOMElement</b> node added or <b>NULL</b> if any errors occur.
*/
#[LanguageLevelTypeAware(['8.0' => 'DOMElement'], default: 'DOMElement|null')]
function dom_import_simplexml(object $node) {}
/**
* Node is a <b>DOMElement</b>
* @link https://php.net/manual/en/dom.constants.php
@ -85,21 +71,37 @@ define('XML_DOCUMENT_FRAG_NODE', 11);
* @link https://php.net/manual/en/dom.constants.php
*/
define('XML_NOTATION_NODE', 12);
define('XML_HTML_DOCUMENT_NODE', 13);
define('XML_DTD_NODE', 14);
define('XML_ELEMENT_DECL_NODE', 15);
define('XML_ATTRIBUTE_DECL_NODE', 16);
define('XML_ENTITY_DECL_NODE', 17);
define('XML_NAMESPACE_DECL_NODE', 18);
define('XML_LOCAL_NAMESPACE', 18);
define('XML_ATTRIBUTE_CDATA', 1);
define('XML_ATTRIBUTE_ID', 2);
define('XML_ATTRIBUTE_IDREF', 3);
define('XML_ATTRIBUTE_IDREFS', 4);
define('XML_ATTRIBUTE_ENTITY', 6);
define('XML_ATTRIBUTE_NMTOKEN', 7);
define('XML_ATTRIBUTE_NMTOKENS', 8);
define('XML_ATTRIBUTE_ENUMERATION', 9);
define('XML_ATTRIBUTE_NOTATION', 10);
/**
@ -208,4 +210,12 @@ define('DOM_INVALID_ACCESS_ERR', 15);
*/
define('DOM_VALIDATION_ERR', 16);
// End of dom v.20031129
/**
* Gets a <b>DOMElement</b> object from a <b>SimpleXMLElement</b> object
* @link https://php.net/manual/en/function.dom-import-simplexml.php
* @param SimpleXMLElement $node <p>
* The <b>SimpleXMLElement</b> node.
* </p>
* @return DOMElement|null The <b>DOMElement</b> node added or <b>NULL</b> if any errors occur.
*/
function dom_import_simplexml(object $node): DOMElement|null {}

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,19 @@
<?php
// Start of enchant v.1.1.0
use JetBrains\PhpStorm\Deprecated;
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* @deprecated 8.0
*/
define('ENCHANT_MYSPELL', 1);
/**
* @deprecated 8.0
*/
define('ENCHANT_ISPELL', 2);
/**
* (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )<br/>
* create a new broker object capable of requesting
* @link https://php.net/manual/en/function.enchant-broker-init.php
* @return resource|false|EnchantBroker a broker resource on success or <b>FALSE</b>.
@ -20,11 +29,11 @@ function enchant_broker_init() {}
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
* @since 5.3
*/
#[Deprecated(reason: "Unset the object instead", since: '8.0')]
#[Deprecated(reason: "Unset the object instead", since: "8.0")]
function enchant_broker_free($broker) {}
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )<br/>
* Returns the last error of the broker
* @link https://php.net/manual/en/function.enchant-broker-get-error.php
* @param resource|EnchantBroker $broker <p>
@ -42,7 +51,7 @@ function enchant_broker_get_error($broker) {}
* @param string $value
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
#[Deprecated(since: '8.0', reason: 'Relying on this function is highly discouraged.')]
#[Deprecated(since: "8.0", reason: "Relying on this function is highly discouraged.")]
function enchant_broker_set_dict_path($broker, int $dict_type, string $value) {}
/**
@ -52,11 +61,11 @@ function enchant_broker_set_dict_path($broker, int $dict_type, string $value) {}
* @param int $dict_type
* @return string|false
*/
#[Deprecated(since: '8.0', reason: 'Relying on this function is highly discouraged.')]
#[Deprecated(since: "8.0", reason: "Relying on this function is highly discouraged.")]
function enchant_broker_get_dict_path($broker, $dict_type) {}
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 1.0.1)<br/>
* (PHP 5 >= 5.3.0, PECL enchant >= 1.0.1)<br/>
* Returns a list of available dictionaries
* @link https://php.net/manual/en/function.enchant-broker-list-dicts.php
* @param resource|EnchantBroker $broker <p>
@ -67,7 +76,7 @@ function enchant_broker_get_dict_path($broker, $dict_type) {}
function enchant_broker_list_dicts($broker) {}
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )<br/>
* create a new dictionary using a tag
* @link https://php.net/manual/en/function.enchant-broker-request-dict.php
* @param resource|EnchantBroker $broker <p>
@ -81,7 +90,7 @@ function enchant_broker_list_dicts($broker) {}
function enchant_broker_request_dict($broker, $tag) {}
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )<br/>
* creates a dictionary using a PWL file
* @link https://php.net/manual/en/function.enchant-broker-request-pwl-dict.php
* @param resource|EnchantBroker $broker <p>
@ -95,7 +104,7 @@ function enchant_broker_request_dict($broker, $tag) {}
function enchant_broker_request_pwl_dict($broker, $filename) {}
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )<br/>
* Free a dictionary resource
* @link https://php.net/manual/en/function.enchant-broker-free-dict.php
* @param resource|EnchantDictionary $dict <p>
@ -103,11 +112,11 @@ function enchant_broker_request_pwl_dict($broker, $filename) {}
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
#[Deprecated("Unset the object instead", since: '8.0')]
#[Deprecated("Unset the object instead", since: "8.0")]
function enchant_broker_free_dict($dict) {}
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )<br/>
* Whether a dictionary exists or not. Using non-empty tag
* @link https://php.net/manual/en/function.enchant-broker-dict-exists.php
* @param resource|EnchantBroker $broker <p>
@ -121,7 +130,7 @@ function enchant_broker_free_dict($dict) {}
function enchant_broker_dict_exists($broker, $tag) {}
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )<br/>
* Declares a preference of dictionaries to use for the language
* @link https://php.net/manual/en/function.enchant-broker-set-ordering.php
* @param resource|EnchantBroker $broker <p>
@ -140,7 +149,7 @@ function enchant_broker_dict_exists($broker, $tag) {}
function enchant_broker_set_ordering($broker, $tag, $ordering) {}
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0)<br/>
* (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0)<br/>
* Enumerates the Enchant providers
* @link https://php.net/manual/en/function.enchant-broker-describe.php
* @param resource|EnchantBroker $broker <p>
@ -151,7 +160,7 @@ function enchant_broker_set_ordering($broker, $tag, $ordering) {}
function enchant_broker_describe($broker) {}
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )<br/>
* Check whether a word is correctly spelled or not
* @link https://php.net/manual/en/function.enchant-dict-check.php
* @param resource|EnchantDictionary $dict <p>
@ -165,7 +174,7 @@ function enchant_broker_describe($broker) {}
function enchant_dict_check($dict, $word) {}
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )<br/>
* Will return a list of values if any of those pre-conditions are not met
* @link https://php.net/manual/en/function.enchant-dict-suggest.php
* @param resource|EnchantDictionary $dict <p>
@ -179,7 +188,7 @@ function enchant_dict_check($dict, $word) {}
function enchant_dict_suggest($dict, $word) {}
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )<br/>
* add a word to personal word list
* @link https://php.net/manual/en/function.enchant-dict-add-to-personal.php
* @param resource $dict <p>
@ -191,15 +200,11 @@ function enchant_dict_suggest($dict, $word) {}
* @return void
* @see enchant_dict_add()
*/
#[Deprecated(
reason: 'Use enchant_dict_add instead',
replacement: 'enchant_dict_add(%parameter0%, %parameter1%)',
since: '8.0'
)]
#[Deprecated(reason: "Use enchant_dict_add instead", replacement: "enchant_dict_add(%parameter0%, %parameter1%)", since: "8.0")]
function enchant_dict_add_to_personal($dict, $word) {}
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )<br/>
* add 'word' to this spell-checking session
* @link https://php.net/manual/en/function.enchant-dict-add-to-session.php
* @param resource|EnchantDictionary $dict <p>
@ -213,22 +218,7 @@ function enchant_dict_add_to_personal($dict, $word) {}
function enchant_dict_add_to_session($dict, $word) {}
/**
* (PHP 8)<br/>
* Add a word to personal word list
* @link https://php.net/manual/en/function.enchant-dict-add.php
* @param EnchantDictionary $dictionary <p>
* An Enchant dictionary returned by enchant_broker_request_dict() or enchant_broker_request_pwl_dict().
* </p>
* @param string $word <p>
* The word to add
* </p>
* @return void
* @since 8.0
*/
function enchant_dict_add($dictionary, $word) {}
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )<br/>
* whether or not 'word' exists in this spelling-session
* @link https://php.net/manual/en/function.enchant-dict-is-in-session.php
* @param resource $dict <p>
@ -240,15 +230,11 @@ function enchant_dict_add($dictionary, $word) {}
* @return bool <b>TRUE</b> if the word exists or <b>FALSE</b>
* @see enchant_dict_is_added
*/
#[Deprecated(
reason: 'Use enchant_dict_is_added instead',
replacement: 'enchant_dict_is_added(%parameter0%, %parameter1%)',
since: '8.0'
)]
#[Deprecated(reason: "Use enchant_dict_is_added instead", replacement: "enchant_dict_is_added(%parameter0%, %parameter1%)", since: "8.0")]
function enchant_dict_is_in_session($dict, $word) {}
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )<br/>
* Add a correction for a word
* @link https://php.net/manual/en/function.enchant-dict-store-replacement.php
* @param resource|EnchantDictionary $dict <p>
@ -265,7 +251,7 @@ function enchant_dict_is_in_session($dict, $word) {}
function enchant_dict_store_replacement($dict, $mis, $cor) {}
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )<br/>
* Returns the last error of the current spelling-session
* @link https://php.net/manual/en/function.enchant-dict-get-error.php
* @param resource|EnchantDictionary $dict <p>
@ -276,22 +262,7 @@ function enchant_dict_store_replacement($dict, $mis, $cor) {}
function enchant_dict_get_error($dict) {}
/**
* (PHP 8)<br/>
* Whether or not 'word' exists in this spelling-session
* @link https://php.net/manual/en/function.enchant-dict-is-added.php
* @param EnchantDictionary $dictionary <p>
* An Enchant dictionary returned by enchant_broker_request_dict() or enchant_broker_request_pwl_dict().
* </p>
* @param string $word <p>
* The word to lookup
* </p>
* @return bool <b>TRUE</b> if the word exists or <b>FALSE</b>
* @since 8.0
*/
function enchant_dict_is_added($dictionary, $word) {}
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* (PHP 5 >= 5.3.0, PECL enchant >= 0.1.0 )<br/>
* Describes an individual dictionary
* @link https://php.net/manual/en/function.enchant-dict-describe.php
* @param resource|EnchantDictionary $dict <p>
@ -302,7 +273,7 @@ function enchant_dict_is_added($dictionary, $word) {}
function enchant_dict_describe($dict) {}
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant:0.2.0-1.0.1)<br/>
* (PHP 5 >= 5.3.0, PECL enchant:0.2.0-1.0.1)<br/>
* Check the word is correctly spelled and provide suggestions
* @link https://php.net/manual/en/function.enchant-dict-quick-check.php
* @param resource|EnchantDictionary $dict <p>
@ -319,16 +290,6 @@ function enchant_dict_describe($dict) {}
*/
function enchant_dict_quick_check($dict, $word, ?array &$suggestions = null) {}
/**
* @deprecated 8.0
*/
define('ENCHANT_MYSPELL', 1);
/**
* @deprecated 8.0
*/
define('ENCHANT_ISPELL', 2);
final class EnchantBroker {}
final class EnchantDictionary {}
// End of enchant v.1.1.0

View File

@ -1,8 +1,9 @@
<?php
// Start of exif v.1.4 $Id$
use JetBrains\PhpStorm\Deprecated;
define('EXIF_USE_MBSTRING', 1);
/**
* Reads the EXIF headers from JPEG or TIFF
* @link https://php.net/manual/en/function.exif-read-data.php
@ -77,12 +78,7 @@ use JetBrains\PhpStorm\Deprecated;
* those headers. If no data can be returned,
* <b>exif_read_data</b> will return <b>FALSE</b>.
*/
function exif_read_data(
$file,
?string $required_sections,
bool $as_arrays = false,
bool $read_thumbnail = false
): array|false {}
function exif_read_data($file, ?string $required_sections, bool $as_arrays = false, bool $read_thumbnail = false): array|false {}
/**
* Alias of <b>exif_read_data</b>
@ -145,7 +141,3 @@ function exif_thumbnail($file, &$width, &$height, &$image_type): string|false {}
* determine the image type.
*/
function exif_imagetype(string $filename): int|false {}
define('EXIF_USE_MBSTRING', 1);
// End of exif v.1.4 $Id$

View File

@ -1,203 +1,13 @@
<?php
// Start of fileinfo v.1.0.5
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
class finfo
{
/**
* @param int $flags [optional]
* @param string $magic_database [optional]
*/
public function __construct(
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $magic_database
) {}
/**
* @param $options [optional]
* @param $arg [optional]
*/
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')]
public function finfo($options, $arg) {}
/**
* (PHP &gt;= 5.3.0, PECL fileinfo &gt;= 0.1.0)<br/>
* Set libmagic configuration options
* @link https://php.net/manual/en/function.finfo-set-flags.php
* @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.
*/
public function set_flags(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags) {}
/**
* (PHP &gt;= 5.3.0, PECL fileinfo &gt;= 0.1.0)<br/>
* Return information about a file
* @link https://php.net/manual/en/function.finfo-file.php
* @param string $filename <p>
* Name of a file to be checked.
* </p>
* @param int $flags [optional] <p>
* One or disjunction of more Fileinfo
* constants.
* </p>
* @param resource $context [optional] <p>
* For a description of contexts, refer to .
* </p>
* @return string a textual description of the contents of the
* <i>filename</i> argument, or <b>FALSE</b> if an error occurred.
*/
#[Pure]
#[TentativeType]
public function file(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $filename,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = FILEINFO_NONE,
$context = null
): string|false {}
/**
* (PHP 5 &gt;= 5.3.0, PECL fileinfo &gt;= 0.1.0)<br/>
* Return information about a string buffer
* @link https://php.net/manual/en/function.finfo-buffer.php
* @param string $string <p>
* Content of a file to be checked.
* </p>
* @param int $flags [optional] <p>
* One or disjunction of more Fileinfo
* constants.
* </p>
* @param resource $context [optional]
* @return string a textual description of the <i>string</i>
* argument, or <b>FALSE</b> if an error occurred.
*/
#[Pure]
#[TentativeType]
public function buffer(
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $string,
#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = FILEINFO_NONE,
$context = null
): string|false {}
}
/**
* (PHP &gt;= 5.3.0, PECL fileinfo &gt;= 0.1.0)<br/>
* Create a new fileinfo resource
* @link https://php.net/manual/en/function.finfo-open.php
* @param int $flags <p>
* One or disjunction of more Fileinfo
* constants.
* </p>
* @param string|null $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
* is not set either, /usr/share/misc/magic is used by default.
* A .mime and/or .mgc suffix is added if
* needed.
* </p>
* @return resource|false a magic database resource on success or <b>FALSE</b> on failure.
*/
#[LanguageLevelTypeAware(['8.1' => 'finfo|false'], default: 'resource|false')]
function finfo_open(int $flags = 0, ?string $magic_database = null) {}
/**
* (PHP &gt;= 5.3.0, PECL fileinfo &gt;= 0.1.0)<br/>
* Close fileinfo resource
* @link https://php.net/manual/en/function.finfo-close.php
* @param resource $finfo <p>
* Fileinfo resource returned by finfo_open.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function finfo_close(#[LanguageLevelTypeAware(['8.1' => 'finfo'], default: 'resource')] $finfo): bool {}
/**
* (PHP &gt;= 5.3.0, PECL fileinfo &gt;= 0.1.0)<br/>
* Set libmagic configuration options
* @link https://php.net/manual/en/function.finfo-set-flags.php
* @param resource $finfo <p>
* Fileinfo resource returned by finfo_open.
* </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(#[LanguageLevelTypeAware(['8.1' => 'finfo'], default: 'resource')] $finfo, int $flags): bool {}
/**
* (PHP &gt;= 5.3.0, PECL fileinfo &gt;= 0.1.0)<br/>
* Return information about a file
* @link https://php.net/manual/en/function.finfo-file.php
* @param resource $finfo <p>
* Fileinfo resource returned by finfo_open.
* </p>
* @param string $filename <p>
* Name of a file to be checked.
* </p>
* @param int $flags <p>
* One or disjunction of more Fileinfo
* constants.
* </p>
* @param resource $context [optional] <p>
* For a description of contexts, refer to .
* </p>
* @return string|false a textual description of the contents of the
* <i>filename</i> argument, or <b>FALSE</b> if an error occurred.
*/
function finfo_file(
#[LanguageLevelTypeAware(['8.1' => 'finfo'], default: 'resource')] $finfo,
string $filename,
int $flags = 0,
$context
): string|false {}
/**
* (PHP 5 &gt;= 5.3.0, PECL fileinfo &gt;= 0.1.0)<br/>
* Return information about a string buffer
* @link https://php.net/manual/en/function.finfo-buffer.php
* @param resource $finfo <p>
* Fileinfo resource returned by finfo_open.
* </p>
* @param string $string <p>
* Content of a file to be checked.
* </p>
* @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(
#[LanguageLevelTypeAware(['8.1' => 'finfo'], default: 'resource')] $finfo,
string $string,
int $flags = FILEINFO_NONE,
$context
): string|false {}
/**
* Detect MIME Content-type for a file
* @link https://php.net/manual/en/function.mime-content-type.php
* @param string $filename <p>
* Path to the tested file.
* </p>
* @return string|false the content type in MIME format, like
* text/plain or application/octet-stream.
*/
function mime_content_type($filename): string|false {}
/**
* No special handling.
* @link https://php.net/manual/en/fileinfo.constants.php
*/
use JetBrains\PhpStorm\Internal\TentativeType;
use JetBrains\PhpStorm\Pure;
define('FILEINFO_NONE', 0);
/**
@ -250,16 +60,165 @@ define('FILEINFO_PRESERVE_ATIME', 128);
define('FILEINFO_RAW', 256);
/**
* Returns the file extension appropriate for a the MIME type detected in the file.
* For types that commonly have multiple file extensions, such as JPEG images, then the return value is multiple extensions speparated by a forward slash e.g.: "jpeg/jpg/jpe/jfif".
* For unknown types not available in the magic.mime database, then return value is "???". Available since PHP 7.2.0.
* @since 7.2
* (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 $flags <p>
* One or disjunction of more Fileinfo
* constants.
* </p>
* @param string|null $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
* is not set either, /usr/share/misc/magic is used by default.
* A .mime and/or .mgc suffix is added if
* needed.
* </p>
* @return resource|false a magic database resource on success or <b>FALSE</b> on failure.
*/
define('FILEINFO_EXTENSION', 2097152);
function finfo_open(int $flags = 0, ?string $magic_database = null) {}
/**
* @since 8.2
* (PHP >= 5.3.0, PECL fileinfo >= 0.1.0)<br/>
* Close fileinfo resource
* @link https://php.net/manual/en/function.finfo-close.php
* @param resource $finfo <p>
* Fileinfo resource returned by finfo_open.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
define('FILEINFO_APPLE', 2048);
function finfo_close($finfo): bool {}
// End of fileinfo v.1.0.5
/**
* (PHP >= 5.3.0, PECL fileinfo >= 0.1.0)<br/>
* Set libmagic configuration options
* @link https://php.net/manual/en/function.finfo-set-flags.php
* @param resource $finfo <p>
* Fileinfo resource returned by finfo_open.
* </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, int $flags): bool {}
/**
* (PHP >= 5.3.0, PECL fileinfo >= 0.1.0)<br/>
* Return information about a file
* @link https://php.net/manual/en/function.finfo-file.php
* @param resource $finfo <p>
* Fileinfo resource returned by finfo_open.
* </p>
* @param string $filename <p>
* Name of a file to be checked.
* </p>
* @param int $flags <p>
* One or disjunction of more Fileinfo
* constants.
* </p>
* @param resource $context [optional] <p>
* For a description of contexts, refer to .
* </p>
* @return string|false a textual description of the contents of the
* <i>filename</i> argument, or <b>FALSE</b> if an error occurred.
*/
function finfo_file($finfo, string $filename, int $flags = 0, $context): string|false {}
/**
* (PHP 5 >= 5.3.0, PECL fileinfo >= 0.1.0)<br/>
* Return information about a string buffer
* @link https://php.net/manual/en/function.finfo-buffer.php
* @param resource $finfo <p>
* Fileinfo resource returned by finfo_open.
* </p>
* @param string $string <p>
* Content of a file to be checked.
* </p>
* @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 $string, int $flags = FILEINFO_NONE, $context): string|false {}
/**
* Detect MIME Content-type for a file
* @link https://php.net/manual/en/function.mime-content-type.php
* @param string $filename <p>
* Path to the tested file.
* </p>
* @return string|false the content type in MIME format, like
* text/plain or application/octet-stream.
*/
function mime_content_type($filename): string|false {}
class finfo
{
/**
* @param int $flags [optional]
* @param string $magic_database [optional]
*/
public function __construct($flags, $magic_database) {}
/**
* @param $options [optional]
* @param $arg [optional]
*/
public function finfo($options, $arg) {}
/**
* (PHP >= 5.3.0, PECL fileinfo >= 0.1.0)<br/>
* Set libmagic configuration options
* @link https://php.net/manual/en/function.finfo-set-flags.php
* @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.
*/
public function set_flags($flags) {}
/**
* (PHP >= 5.3.0, PECL fileinfo >= 0.1.0)<br/>
* Return information about a file
* @link https://php.net/manual/en/function.finfo-file.php
* @param string $filename <p>
* Name of a file to be checked.
* </p>
* @param int $flags [optional] <p>
* One or disjunction of more Fileinfo
* constants.
* </p>
* @param resource $context [optional] <p>
* For a description of contexts, refer to .
* </p>
* @return string a textual description of the contents of the
* <i>filename</i> argument, or <b>FALSE</b> if an error occurred.
*/
#[Pure]
#[TentativeType]
public function file($filename, $flags = FILEINFO_NONE, $context = null): string|false {}
/**
* (PHP 5 >= 5.3.0, PECL fileinfo >= 0.1.0)<br/>
* Return information about a string buffer
* @link https://php.net/manual/en/function.finfo-buffer.php
* @param string $string <p>
* Content of a file to be checked.
* </p>
* @param int $flags [optional] <p>
* One or disjunction of more Fileinfo
* constants.
* </p>
* @param resource $context [optional]
* @return string a textual description of the <i>string</i>
* argument, or <b>FALSE</b> if an error occurred.
*/
#[Pure]
#[TentativeType]
public function buffer($string, $flags = FILEINFO_NONE, $context = null): string|false {}
}

View File

@ -1,8 +1,339 @@
<?php
// Start of filter v.0.11.0
/**
* POST variables.
* @link https://php.net/manual/en/filter.constants.php
*/
use JetBrains\PhpStorm\Pure;
define('INPUT_POST', 0);
/**
* GET variables.
* @link https://php.net/manual/en/filter.constants.php
*/
define('INPUT_GET', 1);
/**
* COOKIE variables.
* @link https://php.net/manual/en/filter.constants.php
*/
define('INPUT_COOKIE', 2);
/**
* ENV variables.
* @link https://php.net/manual/en/filter.constants.php
*/
define('INPUT_ENV', 4);
/**
* SERVER variables.
* @link https://php.net/manual/en/filter.constants.php
*/
define('INPUT_SERVER', 5);
/**
* SESSION variables.
* (not implemented yet)
* @link https://php.net/manual/en/filter.constants.php
* @removed 8.0
*/
define('INPUT_SESSION', 6);
/**
* REQUEST variables.
* (not implemented yet)
* @link https://php.net/manual/en/filter.constants.php
* @removed 8.0
*/
define('INPUT_REQUEST', 99);
/**
* No flags.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_NONE', 0);
/**
* Flag used to require scalar as input
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_REQUIRE_SCALAR', 33554432);
/**
* Require an array as input.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_REQUIRE_ARRAY', 16777216);
/**
* Always returns an array.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FORCE_ARRAY', 67108864);
/**
* Use NULL instead of FALSE on failure.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_NULL_ON_FAILURE', 134217728);
/**
* ID of "int" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_VALIDATE_INT', 257);
/**
* ID of "boolean" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_VALIDATE_BOOLEAN', 258);
/**
* ID of "float" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_VALIDATE_FLOAT', 259);
/**
* ID of "validate_regexp" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_VALIDATE_REGEXP', 272);
define('FILTER_VALIDATE_DOMAIN', 277);
/**
* ID of "validate_url" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_VALIDATE_URL', 273);
/**
* ID of "validate_email" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_VALIDATE_EMAIL', 274);
/**
* ID of "validate_ip" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_VALIDATE_IP', 275);
define('FILTER_VALIDATE_MAC', 276);
/**
* ID of default ("string") filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_DEFAULT', 516);
/**
* ID of "unsafe_raw" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_UNSAFE_RAW', 516);
/**
* ID of "string" filter.
* @link https://php.net/manual/en/filter.constants.php
* @deprecated 8.1
*/
define('FILTER_SANITIZE_STRING', 513);
/**
* ID of "stripped" filter.
* @link https://php.net/manual/en/filter.constants.php
* @deprecated 8.1
*/
define('FILTER_SANITIZE_STRIPPED', 513);
/**
* ID of "encoded" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_SANITIZE_ENCODED', 514);
/**
* ID of "special_chars" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_SANITIZE_SPECIAL_CHARS', 515);
define('FILTER_SANITIZE_FULL_SPECIAL_CHARS', 522);
/**
* ID of "email" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_SANITIZE_EMAIL', 517);
/**
* ID of "url" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_SANITIZE_URL', 518);
/**
* ID of "number_int" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_SANITIZE_NUMBER_INT', 519);
/**
* ID of "number_float" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_SANITIZE_NUMBER_FLOAT', 520);
/**
* ID of "magic_quotes" filter.
* @link https://php.net/manual/en/filter.constants.php
* @deprecated 7.4
* @removed 8.0
*/
define('FILTER_SANITIZE_MAGIC_QUOTES', 521);
/**
* ID of "callback" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_CALLBACK', 1024);
/**
* Allow octal notation (0[0-7]+) in "int" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_ALLOW_OCTAL', 1);
/**
* Allow hex notation (0x[0-9a-fA-F]+) in "int" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_ALLOW_HEX', 2);
/**
* Strip characters with ASCII value less than 32.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_STRIP_LOW', 4);
/**
* Strip characters with ASCII value greater than 127.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_STRIP_HIGH', 8);
define('FILTER_FLAG_STRIP_BACKTICK', 512);
/**
* Encode characters with ASCII value less than 32.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_ENCODE_LOW', 16);
/**
* Encode characters with ASCII value greater than 127.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_ENCODE_HIGH', 32);
/**
* Encode &.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_ENCODE_AMP', 64);
/**
* Don't encode ' and ".
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_NO_ENCODE_QUOTES', 128);
/**
* (No use for now.)
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_EMPTY_STRING_NULL', 256);
/**
* Allow fractional part in "number_float" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_ALLOW_FRACTION', 4096);
/**
* Allow thousand separator (,) in "number_float" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_ALLOW_THOUSAND', 8192);
/**
* Allow scientific notation (e, E) in
* "number_float" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_ALLOW_SCIENTIFIC', 16384);
/**
* Require scheme in "validate_url" filter.
* @link https://php.net/manual/en/filter.constants.php
* @deprecated 7.3
* @removed 8.0
*/
define('FILTER_FLAG_SCHEME_REQUIRED', 65536);
/**
* Require host in "validate_url" filter.
* @link https://php.net/manual/en/filter.constants.php
* @deprecated 7.3
* @removed 8.0
*/
define('FILTER_FLAG_HOST_REQUIRED', 131072);
/**
* Require path in "validate_url" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_PATH_REQUIRED', 262144);
/**
* Require query in "validate_url" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_QUERY_REQUIRED', 524288);
/**
* Allow only IPv4 address in "validate_ip" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_IPV4', 1048576);
/**
* Allow only IPv6 address in "validate_ip" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_IPV6', 2097152);
/**
* Deny reserved addresses in "validate_ip" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_NO_RES_RANGE', 4194304);
/**
* Deny private addresses in "validate_ip" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_NO_PRIV_RANGE', 8388608);
define('FILTER_FLAG_HOSTNAME', 1048576);
define('FILTER_FLAG_EMAIL_UNICODE', 1048576);
/**
* Gets a specific external variable by name and optionally filters it
* @link https://php.net/manual/en/function.filter-input.php
@ -149,11 +480,7 @@ function filter_input_array(int $type, array|int $options = FILTER_DEFAULT, bool
* the variable is not set.
*/
#[Pure]
function filter_var_array(
array $array,
array|int $options = FILTER_DEFAULT,
bool $add_empty = true
): array|false|null {}
function filter_var_array(array $array, array|int $options = FILTER_DEFAULT, bool $add_empty = true): array|false|null {}
/**
* Returns a list of all supported filters
@ -191,350 +518,3 @@ function filter_has_var(int $input_type, string $var_name): bool {}
*/
#[Pure]
function filter_id(string $name): int|false {}
/**
* POST variables.
* @link https://php.net/manual/en/filter.constants.php
*/
define('INPUT_POST', 0);
/**
* GET variables.
* @link https://php.net/manual/en/filter.constants.php
*/
define('INPUT_GET', 1);
/**
* COOKIE variables.
* @link https://php.net/manual/en/filter.constants.php
*/
define('INPUT_COOKIE', 2);
/**
* ENV variables.
* @link https://php.net/manual/en/filter.constants.php
*/
define('INPUT_ENV', 4);
/**
* SERVER variables.
* @link https://php.net/manual/en/filter.constants.php
*/
define('INPUT_SERVER', 5);
/**
* SESSION variables.
* (not implemented yet)
* @link https://php.net/manual/en/filter.constants.php
* @removed 8.0
*/
define('INPUT_SESSION', 6);
/**
* REQUEST variables.
* (not implemented yet)
* @link https://php.net/manual/en/filter.constants.php
* @removed 8.0
*/
define('INPUT_REQUEST', 99);
/**
* No flags.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_NONE', 0);
/**
* Flag used to require scalar as input
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_REQUIRE_SCALAR', 33554432);
/**
* Require an array as input.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_REQUIRE_ARRAY', 16777216);
/**
* Always returns an array.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FORCE_ARRAY', 67108864);
/**
* Use NULL instead of FALSE on failure.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_NULL_ON_FAILURE', 134217728);
/**
* ID of "int" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_VALIDATE_INT', 257);
/**
* ID of "boolean" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_VALIDATE_BOOLEAN', 258);
/**
* ID of "boolean" filter.
* @link https://php.net/manual/en/filter.constants.php
* @link https://php.net/manual/en/filter.filters.validate.php
* @since 8.0 Using `FILTER_VALIDATE_BOOL` is preferred.
*/
define('FILTER_VALIDATE_BOOL', 258);
/**
* ID of "float" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_VALIDATE_FLOAT', 259);
/**
* ID of "validate_regexp" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_VALIDATE_REGEXP', 272);
define('FILTER_VALIDATE_DOMAIN', 277);
/**
* ID of "validate_url" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_VALIDATE_URL', 273);
/**
* ID of "validate_email" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_VALIDATE_EMAIL', 274);
/**
* ID of "validate_ip" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_VALIDATE_IP', 275);
define('FILTER_VALIDATE_MAC', 276);
/**
* ID of default ("string") filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_DEFAULT', 516);
/**
* @since 7.3
*/
define('FILTER_SANITIZE_ADD_SLASHES', 523);
/**
* ID of "unsafe_raw" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_UNSAFE_RAW', 516);
/**
* ID of "string" filter.
* @link https://php.net/manual/en/filter.constants.php
* @deprecated 8.1
*/
define('FILTER_SANITIZE_STRING', 513);
/**
* ID of "stripped" filter.
* @link https://php.net/manual/en/filter.constants.php
* @deprecated 8.1
*/
define('FILTER_SANITIZE_STRIPPED', 513);
/**
* ID of "encoded" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_SANITIZE_ENCODED', 514);
/**
* ID of "special_chars" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_SANITIZE_SPECIAL_CHARS', 515);
define('FILTER_SANITIZE_FULL_SPECIAL_CHARS', 522);
/**
* ID of "email" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_SANITIZE_EMAIL', 517);
/**
* ID of "url" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_SANITIZE_URL', 518);
/**
* ID of "number_int" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_SANITIZE_NUMBER_INT', 519);
/**
* ID of "number_float" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_SANITIZE_NUMBER_FLOAT', 520);
/**
* ID of "magic_quotes" filter.
* @link https://php.net/manual/en/filter.constants.php
* @deprecated 7.4
* @removed 8.0
*/
define('FILTER_SANITIZE_MAGIC_QUOTES', 521);
/**
* ID of "callback" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_CALLBACK', 1024);
/**
* Allow octal notation (0[0-7]+) in "int" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_ALLOW_OCTAL', 1);
/**
* Allow hex notation (0x[0-9a-fA-F]+) in "int" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_ALLOW_HEX', 2);
/**
* Strip characters with ASCII value less than 32.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_STRIP_LOW', 4);
/**
* Strip characters with ASCII value greater than 127.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_STRIP_HIGH', 8);
define('FILTER_FLAG_STRIP_BACKTICK', 512);
/**
* Encode characters with ASCII value less than 32.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_ENCODE_LOW', 16);
/**
* Encode characters with ASCII value greater than 127.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_ENCODE_HIGH', 32);
/**
* Encode &.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_ENCODE_AMP', 64);
/**
* Don't encode ' and ".
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_NO_ENCODE_QUOTES', 128);
/**
* (No use for now.)
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_EMPTY_STRING_NULL', 256);
/**
* Allow fractional part in "number_float" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_ALLOW_FRACTION', 4096);
/**
* Allow thousand separator (,) in "number_float" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_ALLOW_THOUSAND', 8192);
/**
* Allow scientific notation (e, E) in
* "number_float" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_ALLOW_SCIENTIFIC', 16384);
/**
* Require scheme in "validate_url" filter.
* @link https://php.net/manual/en/filter.constants.php
* @deprecated 7.3
* @removed 8.0
*/
define('FILTER_FLAG_SCHEME_REQUIRED', 65536);
/**
* Require host in "validate_url" filter.
* @link https://php.net/manual/en/filter.constants.php
* @deprecated 7.3
* @removed 8.0
*/
define('FILTER_FLAG_HOST_REQUIRED', 131072);
/**
* Require path in "validate_url" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_PATH_REQUIRED', 262144);
/**
* Require query in "validate_url" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_QUERY_REQUIRED', 524288);
/**
* Allow only IPv4 address in "validate_ip" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_IPV4', 1048576);
/**
* Allow only IPv6 address in "validate_ip" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_IPV6', 2097152);
/**
* Deny reserved addresses in "validate_ip" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_NO_RES_RANGE', 4194304);
/**
* Deny private addresses in "validate_ip" filter.
* @link https://php.net/manual/en/filter.constants.php
*/
define('FILTER_FLAG_NO_PRIV_RANGE', 8388608);
define('FILTER_FLAG_HOSTNAME', 1048576);
define('FILTER_FLAG_EMAIL_UNICODE', 1048576);
/**
* filters Global IPs per RFC 6890
* @since 8.2
*/
define('FILTER_FLAG_GLOBAL_RANGE', 268435456);
// End of filter v.0.11.0

View File

@ -1,10 +1,4 @@
<?php
/**
* Returns FPM status info array
* @return array|false
* @since 7.3
*/
function fpm_get_status(): array|false {}
/**
* This function flushes all response data to the client and finishes the request.

View File

@ -1,8 +0,0 @@
<?php
namespace FTP;
/**
* @since 8.1
*/
final class Connection {}

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +0,0 @@
<?php
/**
* @since 8.1
*/
final class GdFont {}

1789
gd/gd.php

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,5 @@
<?php
// Start of gettext v.
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Pure;
/**
@ -80,10 +78,7 @@ function dcgettext(string $domain, string $message, int $category): string {}
* </p>
* @return string|false The full pathname for the <i>domain</i> currently being set.
*/
function bindtextdomain(
string $domain,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $directory
): string|false {}
function bindtextdomain(string $domain, string $directory): string|false {}
/**
* Plural version of gettext
@ -138,9 +133,4 @@ function dcngettext(string $domain, string $singular, string $plural, int $count
* </p>
* @return string|false A string on success.
*/
function bind_textdomain_codeset(
string $domain,
#[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $codeset
): string|false {}
// End of gettext v.
function bind_textdomain_codeset(string $domain, string $codeset): string|false {}

View File

@ -1,10 +1,33 @@
<?php
// Start of gmp v.
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Pure;
define('GMP_ROUND_ZERO', 0);
define('GMP_ROUND_PLUSINF', 1);
define('GMP_ROUND_MINUSINF', 2);
define('GMP_MSW_FIRST', 1);
define('GMP_LSW_FIRST', 2);
define('GMP_LITTLE_ENDIAN', 4);
define('GMP_BIG_ENDIAN', 8);
define('GMP_NATIVE_ENDIAN', 16);
/**
* The GMP library version
* @link https://php.net/manual/en/gmp.constants.php
*/
define('GMP_VERSION', "6.2.1");
define('GMP_MPIR_VERSION', "3.0.0");
/**
* Create GMP number
* @link https://php.net/manual/en/function.gmp-init.php
@ -38,17 +61,6 @@ function gmp_init(string|int $num, int $base = 0): GMP {}
#[Pure]
function gmp_intval(GMP|string|int $num): int {}
/**
* Sets the RNG seed
* @param resource|string|int|GMP $seed <p>
* The seed to be set for the {@see gmp_random()}, {@see gmp_random_bits()}, and {@see gmp_random_range()} functions.
* </p>
* Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number.
* @return void|null|false Returns NULL on success.
* @since 7.0
*/
function gmp_random_seed(GMP|string|int $seed): void {}
/**
* Convert GMP number to string
* @link https://php.net/manual/en/function.gmp-strval.php
@ -665,57 +677,6 @@ function gmp_popcount(GMP|string|int $num): int {}
#[Pure]
function gmp_hamdist(GMP|string|int $num1, GMP|string|int $num2): int {}
/**
* Import from a binary string
* @link https://php.net/manual/en/function.gmp-import.php
* @param string $data The binary string being imported
* @param int $word_size <p>Default value is 1. The number of bytes in each chunk of binary
* data. This is mainly used in conjunction with the options parameter.</p>
* @param int $flags Default value is GMP_MSW_FIRST | GMP_NATIVE_ENDIAN.
* @return GMP|false Returns a GMP number or FALSE on failure.
* @since 5.6.1
*/
#[Pure]
function gmp_import(string $data, int $word_size = 1, int $flags = GMP_MSW_FIRST|GMP_NATIVE_ENDIAN): GMP {}
/**
* Export to a binary string
* @link https://php.net/manual/en/function.gmp-export.php
* @param GMP|string|int $num The GMP number being exported
* @param int $word_size <p>Default value is 1. The number of bytes in each chunk of binary
* data. This is mainly used in conjunction with the options parameter.</p>
* @param int $flags Default value is GMP_MSW_FIRST | GMP_NATIVE_ENDIAN.
* @return string|false Returns a string or FALSE on failure.
* @since 5.6.1
*/
#[Pure]
function gmp_export(GMP|string|int $num, int $word_size = 1, int $flags = GMP_MSW_FIRST|GMP_NATIVE_ENDIAN): string {}
/**
* Takes the nth root of a and returns the integer component of the result.
* @link https://php.net/manual/en/function.gmp-root.php
* @param GMP|string|int $num <p>Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6
* and later, or a numeric string provided that it is possible to convert the latter to a number.</p>
* @param positive-int $nth The positive root to take of a <b>num</b>.
* @return GMP The integer component of the resultant root, as a GMP number.
* @since 5.6
*/
#[Pure]
function gmp_root(GMP|string|int $num, int $nth): GMP {}
/**
* Takes the nth root of a and returns the integer component and remainder of the result.
* @link https://php.net/manual/en/function.gmp-rootrem.php
* @param GMP|string|int $num <p>Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6
* and later, or a numeric string provided that it is possible to convert the latter to a number.</p>
* @param positive-int $nth The positive root to take of a <b>num</b>.
* @return array|GMP[] <p>A two element array, where the first element is the integer component of
* the root, and the second element is the remainder, both represented as GMP numbers.</p>
* @since 5.6
*/
#[Pure]
function gmp_rootrem(GMP|string|int $num, int $nth): array {}
/**
* Find next prime number
* @link https://php.net/manual/en/function.gmp-nextprime.php
@ -727,78 +688,6 @@ function gmp_rootrem(GMP|string|int $num, int $nth): array {}
#[Pure]
function gmp_nextprime(GMP|string|int $num): GMP {}
/**
* Calculates binomial coefficient
*
* @link https://www.php.net/manual/en/function.gmp-binomial.php
*
* @param GMP|string|float|int $n
* @param int $k
* @return GMP|false
*
* @since 7.3
*/
#[Pure]
function gmp_binomial(GMP|string|int $n, int $k): GMP {}
/**
* Computes the Kronecker symbol
*
* @link https://www.php.net/manual/en/function.gmp-kronecker.php
*
* @param GMP|string|float|int $num1
* @param GMP|string|float|int $num2
* @return int
*
* @since 7.3
*/
#[Pure]
function gmp_kronecker(GMP|string|int $num1, GMP|string|int $num2): int {}
/**
* Computes the least common multiple of A and B
*
* @link https://www.php.net/manual/en/function.gmp-lcm.php
*
* @param GMP|string|float|int $num1
* @param GMP|string|float|int $num2
* @return GMP
*
* @since 7.3
*/
#[Pure]
function gmp_lcm(GMP|string|int $num1, GMP|string|int $num2): GMP {}
/**
* Perfect power check
*
* @link https://www.php.net/manual/en/function.gmp-perfect-power.php
*
* @param GMP|string|float|int $num
* @return bool
*
* @since 7.3
*/
#[Pure]
function gmp_perfect_power(GMP|string|int $num): bool {}
define('GMP_ROUND_ZERO', 0);
define('GMP_ROUND_PLUSINF', 1);
define('GMP_ROUND_MINUSINF', 2);
define('GMP_MSW_FIRST', 1);
define('GMP_LSW_FIRST', 2);
define('GMP_LITTLE_ENDIAN', 4);
define('GMP_BIG_ENDIAN', 8);
define('GMP_NATIVE_ENDIAN', 16);
/**
* The GMP library version
* @link https://php.net/manual/en/gmp.constants.php
*/
define('GMP_VERSION', "6.2.1");
define('GMP_MPIR_VERSION', '3.0.0');
class GMP implements Serializable
{
/**
@ -822,4 +711,3 @@ class GMP implements Serializable
public function __unserialize(array $data): void {}
}
// End of gmp v.

View File

@ -1,13 +1,80 @@
<?php
// Start of hash v.1.0
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Pure;
/**
* (PHP 5 &gt;= 5.1.2, PECL hash &gt;= 1.1)<br/>
* Optional flag for <b>hash_init</b>.
* Indicates that the HMAC digest-keying algorithm should be
* applied to the current hashing context.
* @link https://php.net/manual/en/hash.constants.php
*/
define('HASH_HMAC', 1);
define('MHASH_CRC32', 0);
define('MHASH_MD5', 1);
define('MHASH_SHA1', 2);
define('MHASH_HAVAL256', 3);
define('MHASH_RIPEMD160', 5);
define('MHASH_TIGER', 7);
define('MHASH_GOST', 8);
define('MHASH_CRC32B', 9);
define('MHASH_HAVAL224', 10);
define('MHASH_HAVAL192', 11);
define('MHASH_HAVAL160', 12);
define('MHASH_HAVAL128', 13);
define('MHASH_TIGER128', 14);
define('MHASH_TIGER160', 15);
define('MHASH_MD4', 16);
define('MHASH_SHA256', 17);
define('MHASH_ADLER32', 18);
define('MHASH_SHA224', 19);
define('MHASH_SHA512', 20);
define('MHASH_SHA384', 21);
define('MHASH_WHIRLPOOL', 22);
define('MHASH_RIPEMD128', 23);
define('MHASH_RIPEMD256', 24);
define('MHASH_RIPEMD320', 25);
define('MHASH_SNEFRU256', 27);
define('MHASH_MD2', 28);
define('MHASH_FNV132', 29);
define('MHASH_FNV1A32', 30);
define('MHASH_FNV164', 31);
define('MHASH_FNV1A64', 32);
define('MHASH_JOAAT', 33);
/**
* (PHP 5 >= 5.1.2, PECL hash >= 1.1)<br/>
* Generate a hash value (message digest)
* @link https://php.net/manual/en/function.hash.php
* @param string $algo <p>
@ -25,26 +92,10 @@ use JetBrains\PhpStorm\Pure;
* binary representation of the message digest is returned.
*/
#[Pure]
function hash(
string $algo,
string $data,
bool $binary = false,
#[PhpStormStubsElementAvailable('8.1')] array $options = []
): string {}
function hash(string $algo, string $data, bool $binary = false): string {}
/**
* Timing attack safe string comparison
* @link https://php.net/manual/en/function.hash-equals.php
* @param string $known_string <p>The string of known length to compare against</p>
* @param string $user_string <p>The user-supplied string</p>
* @return bool <p>Returns <b>TRUE</b> when the two strings are equal, <b>FALSE</b> otherwise.</p>
* @since 5.6
*/
#[Pure]
function hash_equals(string $known_string, string $user_string): bool {}
/**
* (PHP 5 &gt;= 5.1.2, PECL hash &gt;= 1.1)<br/>
* (PHP 5 >= 5.1.2, PECL hash >= 1.1)<br/>
* Generate a hash value using the contents of a given file
* @link https://php.net/manual/en/function.hash-file.php
* @param string $algo <p>
@ -62,15 +113,10 @@ function hash_equals(string $known_string, string $user_string): bool {}
* binary representation of the message digest is returned.
*/
#[Pure]
function hash_file(
string $algo,
string $filename,
bool $binary = false,
#[PhpStormStubsElementAvailable('8.1')] array $options = []
): string|false {}
function hash_file(string $algo, string $filename, bool $binary = false): string|false {}
/**
* (PHP 5 &gt;= 5.1.2, PECL hash &gt;= 1.1)<br/>
* (PHP 5 >= 5.1.2, PECL hash >= 1.1)<br/>
* Generate a keyed hash value using the HMAC method
* @link https://php.net/manual/en/function.hash-hmac.php
* @param string $algo <p>
@ -95,7 +141,7 @@ function hash_file(
function hash_hmac(string $algo, string $data, string $key, bool $binary = false): string {}
/**
* (PHP 5 &gt;= 5.1.2, PECL hash &gt;= 1.1)<br/>
* (PHP 5 >= 5.1.2, PECL hash >= 1.1)<br/>
* Generate a keyed hash value using the HMAC method and the contents of a given file
* @link https://php.net/manual/en/function.hash-hmac-file.php
* @param string $algo <p>
@ -120,7 +166,7 @@ function hash_hmac(string $algo, string $data, string $key, bool $binary = false
function hash_hmac_file(string $algo, string $filename, string $key, bool $binary = false): string|false {}
/**
* (PHP 5 &gt;= 5.1.2, PECL hash &gt;= 1.1)<br/>
* (PHP 5 >= 5.1.2, PECL hash >= 1.1)<br/>
* Initialize an incremental hashing context
* @link https://php.net/manual/en/function.hash-init.php
* @param string $algo <p>
@ -142,16 +188,10 @@ function hash_hmac_file(string $algo, string $filename, string $key, bool $binar
* and <b>hash_final</b>.
*/
#[Pure]
#[LanguageLevelTypeAware(["7.2" => "HashContext"], default: "resource")]
function hash_init(
string $algo,
int $flags = 0,
string $key = "",
#[PhpStormStubsElementAvailable('8.1')] array $options = []
) {}
function hash_init(string $algo, int $flags = 0, string $key = '') {}
/**
* (PHP 5 &gt;= 5.1.2, PECL hash &gt;= 1.1)<br/>
* (PHP 5 >= 5.1.2, PECL hash >= 1.1)<br/>
* Pump data into an active hashing context
* @link https://php.net/manual/en/function.hash-update.php
* @param HashContext|resource $context <p>
@ -162,13 +202,10 @@ function hash_init(
* </p>
* @return bool <b>TRUE</b>.
*/
function hash_update(
#[LanguageLevelTypeAware(["7.2" => "HashContext"], default: "resource")] $context,
string $data
): bool {}
function hash_update($context, string $data): bool {}
/**
* (PHP 5 &gt;= 5.1.2, PECL hash &gt;= 1.1)<br/>
* (PHP 5 >= 5.1.2, PECL hash >= 1.1)<br/>
* Pump data into an active hashing context from an open stream
* @link https://php.net/manual/en/function.hash-update-stream.php
* @param HashContext|resource $context <p>
@ -183,14 +220,10 @@ function hash_update(
* </p>
* @return int Actual number of bytes added to the hashing context from <i>handle</i>.
*/
function hash_update_stream(
#[LanguageLevelTypeAware(["7.2" => "HashContext"], default: "resource")] $context,
$stream,
int $length = -1
): int {}
function hash_update_stream($context, $stream, int $length = -1): int {}
/**
* (PHP 5 &gt;= 5.1.2, PECL hash &gt;= 1.1)<br/>
* (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 HashContext|resource $context <p>
@ -204,14 +237,10 @@ function hash_update_stream(
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function hash_update_file(
#[LanguageLevelTypeAware(["7.2" => "HashContext"], default: "resource")] $context,
string $filename,
$stream_context
): bool {}
function hash_update_file($context, string $filename, $stream_context): bool {}
/**
* (PHP 5 &gt;= 5.1.2, PECL hash &gt;= 1.1)<br/>
* (PHP 5 >= 5.1.2, PECL hash >= 1.1)<br/>
* Finalize an incremental hash and return resulting digest
* @link https://php.net/manual/en/function.hash-final.php
* @param HashContext|resource $context <p>
@ -225,10 +254,7 @@ function hash_update_file(
* 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(
#[LanguageLevelTypeAware(["7.2" => "HashContext"], default: "resource")] $context,
bool $binary = false
): string {}
function hash_final($context, bool $binary = false): string {}
/**
* Copy hashing context
@ -239,11 +265,10 @@ function hash_final(
* @return HashContext|resource a copy of Hashing Context resource.
*/
#[Pure]
#[LanguageLevelTypeAware(["7.2" => "HashContext"], default: "resource")]
function hash_copy(#[LanguageLevelTypeAware(["7.2" => "HashContext"], default: "resource")] $context) {}
function hash_copy($context) {}
/**
* (PHP 5 &gt;= 5.1.2, PECL hash &gt;= 1.1)<br/>
* (PHP 5 >= 5.1.2, PECL hash >= 1.1)<br/>
* Return a list of registered hashing algorithms
* @link https://php.net/manual/en/function.hash-algos.php
* @return array a numerically indexed array containing the list of supported
@ -252,78 +277,6 @@ function hash_copy(#[LanguageLevelTypeAware(["7.2" => "HashContext"], default: "
#[Pure]
function hash_algos(): array {}
/**
* Generate a hkdf key derivation of a supplied key input
* @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>
* <p><strong>Note</strong></p>
* <p>
* Non-cryptographic hash functions are not allowed.
* </p>
* </blockquote>
* @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.</p>
* @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
*/
#[Pure]
#[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")]
function hash_hkdf(string $algo, string $key, int $length = 0, string $info = '', string $salt = '') {}
/**
* Return a list of registered hashing algorithms suitable for hash_hmac
* @return string[] Returns a numerically indexed array containing the list of supported hashing algorithms suitable for {@see hash_hmac()}.
* @since 7.2
* Return a list of registered hashing algorithms suitable for hash_hmac
*/
#[Pure]
function hash_hmac_algos(): array {}
/**
* Generate a PBKDF2 key derivation of a supplied password
* @link https://php.net/manual/en/function.hash-pbkdf2.php
* @param string $algo <p>
* 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 $password <p>
* The password to use for the derivation.
* </p>
* @param string $salt <p>
* The salt to use for the derivation. This value should be generated randomly.
* </p>
* @param int $iterations <p>
* The number of internal iterations to perform for the derivation.
* </p>
* @param int $length [optional] <p>
* The length of the output string. If raw_output is TRUE this corresponds to the byte-length of the derived key,
* 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 $binary [optional] <p>
* When set to TRUE, outputs raw binary data. FALSE outputs lowercase hexits.
* </p>
* @return string a string containing the derived key as lowercase hexits unless
* <i>raw_output</i> is set to <b>TRUE</b> in which case the raw
* binary representation of the derived key is returned.
* @since 5.5
*/
#[Pure]
function hash_pbkdf2(
string $algo,
string $password,
string $salt,
int $iterations,
int $length = 0,
bool $binary = false
): string {}
/**
* Generates a key
* @link https://php.net/manual/en/function.mhash-keygen-s2k.php
@ -348,7 +301,7 @@ function hash_pbkdf2(
* @deprecated 8.1
*/
#[Pure]
#[Deprecated(since: '8.1')]
#[Deprecated(since: "8.1")]
function mhash_keygen_s2k(int $algo, string $password, string $salt, int $length): string|false {}
/**
@ -362,7 +315,7 @@ function mhash_keygen_s2k(int $algo, string $password, string $salt, int $length
* @deprecated 8.1
*/
#[Pure]
#[Deprecated(since: '8.1')]
#[Deprecated(since: "8.1")]
function mhash_get_block_size(int $algo): int|false {}
/**
@ -375,7 +328,7 @@ function mhash_get_block_size(int $algo): int|false {}
* @deprecated 8.1
*/
#[Pure]
#[Deprecated(since: '8.1')]
#[Deprecated(since: "8.1")]
function mhash_get_hash_name(int $algo): string|false {}
/**
@ -386,7 +339,7 @@ function mhash_get_hash_name(int $algo): string|false {}
* @deprecated 8.1
*/
#[Pure]
#[Deprecated(since: '8.1')]
#[Deprecated(since: "8.1")]
function mhash_count(): int {}
/**
@ -409,92 +362,5 @@ function mhash_count(): int {}
* @deprecated 8.1
*/
#[Pure]
#[Deprecated(since: '8.1')]
#[Deprecated(since: "8.1")]
function mhash(int $algo, string $data, ?string $key): string|false {}
/**
* Optional flag for <b>hash_init</b>.
* Indicates that the HMAC digest-keying algorithm should be
* applied to the current hashing context.
* @link https://php.net/manual/en/hash.constants.php
*/
define('HASH_HMAC', 1);
define('MHASH_CRC32', 0);
/**
* @since 7.4
*/
define('MHASH_CRC32C', 34);
define('MHASH_MD5', 1);
define('MHASH_SHA1', 2);
define('MHASH_HAVAL256', 3);
define('MHASH_RIPEMD160', 5);
define('MHASH_TIGER', 7);
define('MHASH_GOST', 8);
define('MHASH_CRC32B', 9);
define('MHASH_HAVAL224', 10);
define('MHASH_HAVAL192', 11);
define('MHASH_HAVAL160', 12);
define('MHASH_HAVAL128', 13);
define('MHASH_TIGER128', 14);
define('MHASH_TIGER160', 15);
define('MHASH_MD4', 16);
define('MHASH_SHA256', 17);
define('MHASH_ADLER32', 18);
define('MHASH_SHA224', 19);
define('MHASH_SHA512', 20);
define('MHASH_SHA384', 21);
define('MHASH_WHIRLPOOL', 22);
define('MHASH_RIPEMD128', 23);
define('MHASH_RIPEMD256', 24);
define('MHASH_RIPEMD320', 25);
define('MHASH_SNEFRU256', 27);
define('MHASH_MD2', 28);
define('MHASH_FNV132', 29);
define('MHASH_FNV1A32', 30);
define('MHASH_FNV164', 31);
define('MHASH_FNV1A64', 32);
define('MHASH_JOAAT', 33);
/**
* @since 8.1
*/
define('MHASH_MURMUR3A', 35);
/**
* @since 8.1
*/
define('MHASH_MURMUR3C', 36);
/**
* @since 8.1
*/
define('MHASH_MURMUR3F', 37);
/**
* @since 8.1
*/
define('MHASH_XXH32', 38);
/**
* @since 8.1
*/
define('MHASH_XXH64', 39);
/**
* @since 8.1
*/
define('MHASH_XXH3', 40);
/**
* @since 8.1
*/
define('MHASH_XXH128', 41);
/**
* @since 7.2
*/
final class HashContext
{
private function __construct() {}
public function __serialize(): array {}
/**
* @param array $data
*/
public function __unserialize(#[LanguageLevelTypeAware(['8.0' => 'array'], default: '')] $data): void {}
}
// End of hash v.1.0

View File

@ -1,9 +1,32 @@
<?php
// Start of iconv v.
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\Pure;
/**
* string
* @link https://php.net/manual/en/iconv.constants.php
*/
define('ICONV_IMPL', "libiconv");
/**
* string
* @link https://php.net/manual/en/iconv.constants.php
*/
define('ICONV_VERSION', 2.17);
/**
* integer
* @link https://php.net/manual/en/iconv.constants.php
*/
define('ICONV_MIME_DECODE_STRICT', 1);
/**
* integer
* @link https://php.net/manual/en/iconv.constants.php
*/
define('ICONV_MIME_DECODE_CONTINUE_ON_ERROR', 2);
/**
* Convert string to requested character encoding
* @link https://php.net/manual/en/function.iconv.php
@ -62,7 +85,7 @@ function ob_iconv_handler(string $contents, int $status): string {}
*/
#[Pure]
#[ArrayShape(["input_encoding" => "string", "output_encoding" => "string", "internal_encoding" => "string"])]
function iconv_get_encoding(string $type = "all"): array|string|false {}
function iconv_get_encoding(string $type = 'all'): array|string|false {}
/**
* Set current setting for character encoding conversion
@ -416,29 +439,3 @@ function iconv_mime_decode(string $string, int $mode = 0, ?string $encoding = nu
*/
#[Pure]
function iconv_mime_decode_headers(string $headers, int $mode = 0, ?string $encoding = null): array|false {}
/**
* string
* @link https://php.net/manual/en/iconv.constants.php
*/
define('ICONV_IMPL', "libiconv");
/**
* string
* @link https://php.net/manual/en/iconv.constants.php
*/
define('ICONV_VERSION', 2.17);
/**
* integer
* @link https://php.net/manual/en/iconv.constants.php
*/
define('ICONV_MIME_DECODE_STRICT', 1);
/**
* integer
* @link https://php.net/manual/en/iconv.constants.php
*/
define('ICONV_MIME_DECODE_CONTINUE_ON_ERROR', 2);
// End of iconv v.

View File

@ -1,8 +0,0 @@
<?php
namespace IMAP;
/**
* @since 8.1
*/
final class Connection {}

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,380 @@
<?php
// Start of interbase v.
/**
* The default transaction settings are to be used.
* This default is determined by the client library, which defines it as IBASE_WRITE|IBASE_CONCURRENCY|IBASE_WAIT in most cases.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_DEFAULT', 0);
/**
* @link https://www.php.net/manual/en/ibase.constants.php
*/
define('IBASE_CREATE', 0);
/**
* Causes BLOB contents to be fetched inline, instead of being fetched as BLOB identifiers.
* @link https://www.php.net/manual/en/ibase.constants.php
*/
define('IBASE_TEXT', 1);
/**
* Also available as IBASE_TEXT for backward compatibility.
* Causes BLOB contents to be fetched inline, instead of being fetched as BLOB identifiers.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_FETCH_BLOBS', 1);
/**
* Causes arrays to be fetched inline. Otherwise, array identifiers are returned.
* Array identifiers can only be used as arguments to INSERT operations, as no functions to handle array identifiers are currently available.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_FETCH_ARRAYS', 2);
/**
* Causes date and time fields not to be returned as strings, but as UNIX timestamps (the number of seconds since the epoch, which is 1-Jan-1970 0:00 UTC).
* Might be problematic if used with dates before 1970 on some systems.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_UNIXTIME', 4);
/**
* Starts a read-write transaction.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_WRITE', 1);
/**
* Starts a read-only transaction.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_READ', 2);
/**
* Starts a transaction with the isolation level set to 'read committed'.
* This flag should be combined with either <b>IBASE_REC_VERSION</b> or <b>IBASE_REC_NO_VERSION</b>.
* This isolation level allows access to changes that were committed after the transaction was started.
* If <b>IBASE_REC_NO_VERSION</b> was specified, only the latest version of a row can be read.
* If <b>IBASE_REC_VERSION</b> was specified, a row can even be read when a modification to it is pending in a concurrent transaction.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_COMMITTED', 8);
/**
* Starts a transaction with the isolation level set to 'consistency',
* which means the transaction cannot read from tables that are being modified by other concurrent transactions.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_CONSISTENCY', 16);
/**
* Starts a transaction with the isolation level set to 'concurrency' (or 'snapshot'),
* which means the transaction has access to all tables,
* but cannot see changes that were committed by other transactions after the transaction was started.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_CONCURRENCY', 4);
/**
* Row can even be read when a modification to it is pending in a concurrent transaction.
* @link https://www.php.net/manual/en/ibase.constants.php
*/
define('IBASE_REC_VERSION', 64);
/**
* Only the latest version of a row can be read
* @link https://www.php.net/manual/en/ibase.constants.php
*/
define('IBASE_REC_NO_VERSION', 32);
/**
* Indicated that a transaction should fail immediately when a conflict occurs.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_NOWAIT', 256);
/**
* Indicated that a transaction should wait and retry when a conflict occurs.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_WAIT', 128);
/**
* @removed 7.4
*/
define('IBASE_BKP_IGNORE_CHECKSUMS', 1);
/**
* @removed 7.4
*/
define('IBASE_BKP_IGNORE_LIMBO', 2);
/**
* @removed 7.4
*/
define('IBASE_BKP_METADATA_ONLY', 4);
/**
* @removed 7.4
*/
define('IBASE_BKP_NO_GARBAGE_COLLECT', 8);
/**
* @removed 7.4
*/
define('IBASE_BKP_OLD_DESCRIPTIONS', 16);
/**
* @removed 7.4
*/
define('IBASE_BKP_NON_TRANSPORTABLE', 32);
/**
* Options to ibase_backup
* @link https://php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_BKP_CONVERT', 64);
/**
* @removed 7.4
*/
define('IBASE_RES_DEACTIVATE_IDX', 256);
/**
* @removed 7.4
*/
define('IBASE_RES_NO_SHADOW', 512);
/**
* @removed 7.4
*/
define('IBASE_RES_NO_VALIDITY', 1024);
/**
* @removed 7.4
*/
define('IBASE_RES_ONE_AT_A_TIME', 2048);
/**
* @removed 7.4
*/
define('IBASE_RES_REPLACE', 4096);
/**
* @removed 7.4
*/
define('IBASE_RES_CREATE', 8192);
/**
* Options to ibase_restore
* @link https://php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_RES_USE_ALL_SPACE', 16384);
/**
* @removed 7.4
*/
define('IBASE_PRP_PAGE_BUFFERS', 5);
/**
* @removed 7.4
*/
define('IBASE_PRP_SWEEP_INTERVAL', 6);
/**
* @removed 7.4
*/
define('IBASE_PRP_SHUTDOWN_DB', 7);
/**
* @removed 7.4
*/
define('IBASE_PRP_DENY_NEW_TRANSACTIONS', 10);
/**
* @removed 7.4
*/
define('IBASE_PRP_DENY_NEW_ATTACHMENTS', 9);
/**
* @removed 7.4
*/
define('IBASE_PRP_RESERVE_SPACE', 11);
/**
* @removed 7.4
*/
define('IBASE_PRP_RES_USE_FULL', 35);
/**
* @removed 7.4
*/
define('IBASE_PRP_RES', 36);
/**
* @removed 7.4
*/
define('IBASE_PRP_WRITE_MODE', 12);
/**
* @removed 7.4
*/
define('IBASE_PRP_WM_ASYNC', 37);
/**
* @removed 7.4
*/
define('IBASE_PRP_WM_SYNC', 38);
/**
* @removed 7.4
*/
define('IBASE_PRP_ACCESS_MODE', 13);
/**
* @removed 7.4
*/
define('IBASE_PRP_AM_READONLY', 39);
/**
* @removed 7.4
*/
define('IBASE_PRP_AM_READWRITE', 40);
/**
* @removed 7.4
*/
define('IBASE_PRP_SET_SQL_DIALECT', 14);
/**
* @removed 7.4
*/
define('IBASE_PRP_ACTIVATE', 256);
/**
* @removed 7.4
*/
define('IBASE_PRP_DB_ONLINE', 512);
/**
* @removed 7.4
*/
define('IBASE_RPR_CHECK_DB', 16);
/**
* @removed 7.4
*/
define('IBASE_RPR_IGNORE_CHECKSUM', 32);
/**
* @removed 7.4
*/
define('IBASE_RPR_KILL_SHADOWS', 64);
/**
* @removed 7.4
*/
define('IBASE_RPR_MEND_DB', 4);
/**
* @removed 7.4
*/
define('IBASE_RPR_VALIDATE_DB', 1);
/**
* @removed 7.4
*/
define('IBASE_RPR_FULL', 128);
/**
* Options to ibase_maintain_db
* @link https://php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_RPR_SWEEP_DB', 2);
/**
* @removed 7.4
*/
define('IBASE_STS_DATA_PAGES', 1);
/**
* @removed 7.4
*/
define('IBASE_STS_DB_LOG', 2);
/**
* @removed 7.4
*/
define('IBASE_STS_HDR_PAGES', 4);
/**
* @removed 7.4
*/
define('IBASE_STS_IDX_PAGES', 8);
/**
* Options to ibase_db_info
* @link https://php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_STS_SYS_RELATIONS', 16);
/**
* @removed 7.4
*/
define('IBASE_SVC_SERVER_VERSION', 55);
/**
* @removed 7.4
*/
define('IBASE_SVC_IMPLEMENTATION', 56);
/**
* @removed 7.4
*/
define('IBASE_SVC_GET_ENV', 59);
/**
* @removed 7.4
*/
define('IBASE_SVC_GET_ENV_LOCK', 60);
/**
* @removed 7.4
*/
define('IBASE_SVC_GET_ENV_MSG', 61);
/**
* @removed 7.4
*/
define('IBASE_SVC_USER_DBPATH', 58);
/**
* @removed 7.4
*/
define('IBASE_SVC_SVR_DB_INFO', 50);
/**
* Options to ibase_server_info
* @link https://php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_SVC_GET_USERS', 68);
/**
* Open a connection to an InterBase database
@ -43,16 +417,7 @@
* @return resource|false an InterBase link identifier on success, or false on error.
* @removed 7.4
*/
function ibase_connect(
$database = null,
$username = null,
$password = null,
$charset = null,
$buffers = null,
$dialect = null,
$role = null,
$sync = null
) {}
function ibase_connect($database = null, $username = null, $password = null, $charset = null, $buffers = null, $dialect = null, $role = null, $sync = null) {}
/**
* Open a persistent connection to an InterBase database
@ -95,16 +460,7 @@ function ibase_connect(
* @return resource|false an InterBase link identifier on success, or false on error.
* @removed 7.4
*/
function ibase_pconnect(
$database = null,
$username = null,
$password = null,
$charset = null,
$buffers = null,
$dialect = null,
$role = null,
$sync = null
) {}
function ibase_pconnect($database = null, $username = null, $password = null, $charset = null, $buffers = null, $dialect = null, $role = null, $sync = null) {}
/**
* Close a connection to an InterBase database
@ -609,14 +965,7 @@ function ibase_errcode() {}
* @return bool true on success or false on failure.
* @removed 7.4
*/
function ibase_add_user(
$service_handle,
$user_name,
$password,
$first_name = null,
$middle_name = null,
$last_name = null
) {}
function ibase_add_user($service_handle, $user_name, $password, $first_name = null, $middle_name = null, $last_name = null) {}
/**
* Modify a user to a security database (only for IB6 or later)
@ -630,14 +979,7 @@ function ibase_add_user(
* @return bool true on success or false on failure.
* @removed 7.4
*/
function ibase_modify_user(
$service_handle,
$user_name,
$password,
$first_name = null,
$middle_name = null,
$last_name = null
) {}
function ibase_modify_user($service_handle, $user_name, $password, $first_name = null, $middle_name = null, $last_name = null) {}
/**
* Delete a user from a security database (only for IB6 or later)
@ -822,16 +1164,7 @@ function ibase_free_event_handler($event) {}
* </p>
* @return resource|false an InterBase link identifier on success, or false on error.
*/
function fbird_connect(
$database = null,
$username = null,
$password = null,
$charset = null,
$buffers = null,
$dialect = null,
$role = null,
$sync = null
) {}
function fbird_connect($database = null, $username = null, $password = null, $charset = null, $buffers = null, $dialect = null, $role = null, $sync = null) {}
/**
* This is an alias of ibase_pconnect
@ -874,16 +1207,7 @@ function fbird_connect(
* </p>
* @return resource|false an InterBase link identifier on success, or false on error.
*/
function fbird_pconnect(
$database = null,
$username = null,
$password = null,
$charset = null,
$buffers = null,
$dialect = null,
$role = null,
$sync = null
) {}
function fbird_pconnect($database = null, $username = null, $password = null, $charset = null, $buffers = null, $dialect = null, $role = null, $sync = null) {}
/**
* This is an alias of ibase_close
@ -1387,14 +1711,7 @@ function fbird_errcode() {}
* @param string $last_name [optional]
* @return bool true on success or false on failure.
*/
function fbird_add_user(
$service_handle,
$user_name,
$password,
$first_name = null,
$middle_name = null,
$last_name = null
) {}
function fbird_add_user($service_handle, $user_name, $password, $first_name = null, $middle_name = null, $last_name = null) {}
/**
* This is an alias of ibase_modify_user
@ -1408,14 +1725,7 @@ function fbird_add_user(
* @param string $last_name [optional]
* @return bool true on success or false on failure.
*/
function fbird_modify_user(
$service_handle,
$user_name,
$password,
$first_name = null,
$middle_name = null,
$last_name = null
) {}
function fbird_modify_user($service_handle, $user_name, $password, $first_name = null, $middle_name = null, $last_name = null) {}
/**
* This is an alias of ibase_delete_user
@ -1558,321 +1868,3 @@ function fbird_set_event_handler($event_handler, $event_name1, $event_name2 = nu
* @return bool true on success or false on failure.
*/
function fbird_free_event_handler($event) {}
/**
* The default transaction settings are to be used.
* This default is determined by the client library, which defines it as IBASE_WRITE|IBASE_CONCURRENCY|IBASE_WAIT in most cases.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_DEFAULT', 0);
/**
* @link https://www.php.net/manual/en/ibase.constants.php
*/
define('IBASE_CREATE', 0);
/**
* Causes BLOB contents to be fetched inline, instead of being fetched as BLOB identifiers.
* @link https://www.php.net/manual/en/ibase.constants.php
*/
define('IBASE_TEXT', 1);
/**
* Also available as IBASE_TEXT for backward compatibility.
* Causes BLOB contents to be fetched inline, instead of being fetched as BLOB identifiers.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_FETCH_BLOBS', 1);
/**
* Causes arrays to be fetched inline. Otherwise, array identifiers are returned.
* Array identifiers can only be used as arguments to INSERT operations, as no functions to handle array identifiers are currently available.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_FETCH_ARRAYS', 2);
/**
* Causes date and time fields not to be returned as strings, but as UNIX timestamps (the number of seconds since the epoch, which is 1-Jan-1970 0:00 UTC).
* Might be problematic if used with dates before 1970 on some systems.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_UNIXTIME', 4);
/**
* Starts a read-write transaction.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_WRITE', 1);
/**
* Starts a read-only transaction.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_READ', 2);
/**
* Starts a transaction with the isolation level set to 'read committed'.
* This flag should be combined with either <b>IBASE_REC_VERSION</b> or <b>IBASE_REC_NO_VERSION</b>.
* This isolation level allows access to changes that were committed after the transaction was started.
* If <b>IBASE_REC_NO_VERSION</b> was specified, only the latest version of a row can be read.
* If <b>IBASE_REC_VERSION</b> was specified, a row can even be read when a modification to it is pending in a concurrent transaction.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_COMMITTED', 8);
/**
* Starts a transaction with the isolation level set to 'consistency',
* which means the transaction cannot read from tables that are being modified by other concurrent transactions.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_CONSISTENCY', 16);
/**
* Starts a transaction with the isolation level set to 'concurrency' (or 'snapshot'),
* which means the transaction has access to all tables,
* but cannot see changes that were committed by other transactions after the transaction was started.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_CONCURRENCY', 4);
/**
* Row can even be read when a modification to it is pending in a concurrent transaction.
* @link https://www.php.net/manual/en/ibase.constants.php
*/
define('IBASE_REC_VERSION', 64);
/**
* Only the latest version of a row can be read
* @link https://www.php.net/manual/en/ibase.constants.php
*/
define('IBASE_REC_NO_VERSION', 32);
/**
* Indicated that a transaction should fail immediately when a conflict occurs.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_NOWAIT', 256);
/**
* Indicated that a transaction should wait and retry when a conflict occurs.
* @link https://www.php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_WAIT', 128);
/**
* @removed 7.4
*/
define('IBASE_BKP_IGNORE_CHECKSUMS', 1);
/**
* @removed 7.4
*/
define('IBASE_BKP_IGNORE_LIMBO', 2);
/**
* @removed 7.4
*/
define('IBASE_BKP_METADATA_ONLY', 4);
/**
* @removed 7.4
*/
define('IBASE_BKP_NO_GARBAGE_COLLECT', 8);
/**
* @removed 7.4
*/
define('IBASE_BKP_OLD_DESCRIPTIONS', 16);
/**
* @removed 7.4
*/
define('IBASE_BKP_NON_TRANSPORTABLE', 32);
/**
* Options to ibase_backup
* @link https://php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_BKP_CONVERT', 64);
/**
* @removed 7.4
*/
define('IBASE_RES_DEACTIVATE_IDX', 256);
/**
* @removed 7.4
*/
define('IBASE_RES_NO_SHADOW', 512);
/**
* @removed 7.4
*/
define('IBASE_RES_NO_VALIDITY', 1024);
/**
* @removed 7.4
*/
define('IBASE_RES_ONE_AT_A_TIME', 2048);
/**
* @removed 7.4
*/
define('IBASE_RES_REPLACE', 4096);
/**
* @removed 7.4
*/
define('IBASE_RES_CREATE', 8192);
/**
* Options to ibase_restore
* @link https://php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_RES_USE_ALL_SPACE', 16384);
/**
* @removed 7.4
*/
define('IBASE_PRP_PAGE_BUFFERS', 5);
/**
* @removed 7.4
*/
define('IBASE_PRP_SWEEP_INTERVAL', 6);
/**
* @removed 7.4
*/
define('IBASE_PRP_SHUTDOWN_DB', 7);
/**
* @removed 7.4
*/
define('IBASE_PRP_DENY_NEW_TRANSACTIONS', 10);
/**
* @removed 7.4
*/
define('IBASE_PRP_DENY_NEW_ATTACHMENTS', 9);
/**
* @removed 7.4
*/
define('IBASE_PRP_RESERVE_SPACE', 11);
/**
* @removed 7.4
*/
define('IBASE_PRP_RES_USE_FULL', 35);
/**
* @removed 7.4
*/
define('IBASE_PRP_RES', 36);
/**
* @removed 7.4
*/
define('IBASE_PRP_WRITE_MODE', 12);
/**
* @removed 7.4
*/
define('IBASE_PRP_WM_ASYNC', 37);
/**
* @removed 7.4
*/
define('IBASE_PRP_WM_SYNC', 38);
/**
* @removed 7.4
*/
define('IBASE_PRP_ACCESS_MODE', 13);
/**
* @removed 7.4
*/
define('IBASE_PRP_AM_READONLY', 39);
/**
* @removed 7.4
*/
define('IBASE_PRP_AM_READWRITE', 40);
/**
* @removed 7.4
*/
define('IBASE_PRP_SET_SQL_DIALECT', 14);
/**
* @removed 7.4
*/
define('IBASE_PRP_ACTIVATE', 256);
/**
* @removed 7.4
*/
define('IBASE_PRP_DB_ONLINE', 512);
/**
* @removed 7.4
*/
define('IBASE_RPR_CHECK_DB', 16);
/**
* @removed 7.4
*/
define('IBASE_RPR_IGNORE_CHECKSUM', 32);
/**
* @removed 7.4
*/
define('IBASE_RPR_KILL_SHADOWS', 64);
/**
* @removed 7.4
*/
define('IBASE_RPR_MEND_DB', 4);
/**
* @removed 7.4
*/
define('IBASE_RPR_VALIDATE_DB', 1);
/**
* @removed 7.4
*/
define('IBASE_RPR_FULL', 128);
/**
* Options to ibase_maintain_db
* @link https://php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_RPR_SWEEP_DB', 2);
/**
* @removed 7.4
*/
define('IBASE_STS_DATA_PAGES', 1);
/**
* @removed 7.4
*/
define('IBASE_STS_DB_LOG', 2);
/**
* @removed 7.4
*/
define('IBASE_STS_HDR_PAGES', 4);
/**
* @removed 7.4
*/
define('IBASE_STS_IDX_PAGES', 8);
/**
* Options to ibase_db_info
* @link https://php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_STS_SYS_RELATIONS', 16);
/**
* @removed 7.4
*/
define('IBASE_SVC_SERVER_VERSION', 55);
/**
* @removed 7.4
*/
define('IBASE_SVC_IMPLEMENTATION', 56);
/**
* @removed 7.4
*/
define('IBASE_SVC_GET_ENV', 59);
/**
* @removed 7.4
*/
define('IBASE_SVC_GET_ENV_LOCK', 60);
/**
* @removed 7.4
*/
define('IBASE_SVC_GET_ENV_MSG', 61);
/**
* @removed 7.4
*/
define('IBASE_SVC_USER_DBPATH', 58);
/**
* @removed 7.4
*/
define('IBASE_SVC_SVR_DB_INFO', 50);
/**
* Options to ibase_server_info
* @link https://php.net/manual/en/ibase.constants.php
* @removed 7.4
*/
define('IBASE_SVC_GET_USERS', 68);
// End of interbase v.

File diff suppressed because it is too large Load Diff

View File

@ -1,13 +0,0 @@
<?php
/**
* @since 8.1
*/
class IntlDatePatternGenerator
{
public function __construct(?string $locale = null) {}
public static function create(?string $locale = null): ?IntlDatePatternGenerator {}
public function getBestPattern(string $skeleton): string|false {}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,65 +1,134 @@
<?php
// Start of json v.1.3.1
use JetBrains\PhpStorm\Internal\TentativeType;
/**
* All &lt; and &gt; are converted to \u003C and \u003E.
* @link https://php.net/manual/en/json.constants.php
*/
use JetBrains\PhpStorm\Pure;
define('JSON_HEX_TAG', 1);
/**
* Objects implementing JsonSerializable
* can customize their JSON representation when encoded with
* <b>json_encode</b>.
* @link https://php.net/manual/en/class.jsonserializable.php
* @since 5.4
* All &s are converted to \u0026.
* @link https://php.net/manual/en/json.constants.php
*/
interface JsonSerializable
{
/**
* Specify data which should be serialized to JSON
* @link https://php.net/manual/en/jsonserializable.jsonserialize.php
* @return mixed data which can be serialized by <b>json_encode</b>,
* which is a value of any type other than a resource.
* @since 5.4
*/
#[TentativeType]
public function jsonSerialize(): mixed;
}
class JsonIncrementalParser
{
public const JSON_PARSER_SUCCESS = 0;
public const JSON_PARSER_CONTINUE = 1;
/**
* @param int $depth [optional]
* @param int $options [optional]
*/
#[Pure]
public function __construct($depth, $options) {}
#[Pure]
public function getError() {}
public function reset() {}
/**
* @param string $json
*/
public function parse($json) {}
/**
* @param string $filename
*/
public function parseFile($filename) {}
/**
* @param int $options [optional]
*/
#[Pure]
public function get($options) {}
}
define('JSON_HEX_AMP', 2);
/**
* (PHP 5 &gt;= 5.2.0, PECL json &gt;= 1.2.0)<br/>
* All ' are converted to \u0027.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_HEX_APOS', 4);
/**
* All " are converted to \u0022.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_HEX_QUOT', 8);
/**
* Outputs an object rather than an array when a non-associative array is
* used. Especially useful when the recipient of the output is expecting
* an object and the array is empty.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_FORCE_OBJECT', 16);
/**
* Encodes numeric strings as numbers.
* @since 5.3.3
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_NUMERIC_CHECK', 32);
define('JSON_PARTIAL_OUTPUT_ON_ERROR', 512);
/**
* Occurs with underflow or with the modes mismatch.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_ERROR_STATE_MISMATCH', 2);
/**
* Control character error, possibly incorrectly encoded.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_ERROR_CTRL_CHAR', 3);
/**
* Malformed UTF-8 characters, possibly incorrectly encoded. This
* constant is available as of PHP 5.3.3.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_ERROR_UTF8', 5);
/**
* <p>
* The object or array passed to <b>json_encode</b> include
* recursive references and cannot be encoded.
* If the <b>JSON_PARTIAL_OUTPUT_ON_ERROR</b> option was
* given, <b>NULL</b> will be encoded in the place of the recursive reference.
* </p>
* <p>
* This constant is available as of PHP 5.5.0.
* </p>
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_ERROR_RECURSION', 6);
/**
* <p>
* The value passed to <b>json_encode</b> includes either
* <b>NAN</b>
* or <b>INF</b>.
* If the <b>JSON_PARTIAL_OUTPUT_ON_ERROR</b> option was
* given, 0 will be encoded in the place of these
* special numbers.
* </p>
* <p>
* This constant is available as of PHP 5.5.0.
* </p>
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_ERROR_INF_OR_NAN', 7);
/**
* <p>
* A value of an unsupported type was given to
* <b>json_encode</b>, such as a resource.
* If the <b>JSON_PARTIAL_OUTPUT_ON_ERROR</b> option was
* given, <b>NULL</b> will be encoded in the place of the unsupported value.
* </p>
* <p>
* This constant is available as of PHP 5.5.0.
* </p>
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_ERROR_UNSUPPORTED_TYPE', 8);
/**
* No error has occurred.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_ERROR_NONE', 0);
/**
* The maximum stack depth has been exceeded.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_ERROR_DEPTH', 1);
/**
* Syntax error.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_ERROR_SYNTAX', 4);
define('JSON_PARSER_NOTSTRICT', 4);
/**
* (PHP 5 >= 5.2.0, PECL json >= 1.2.0)<br/>
* Returns the JSON representation of a value
* @link https://php.net/manual/en/function.json-encode.php
* @param mixed $value <p>
@ -95,7 +164,7 @@ class JsonIncrementalParser
function json_encode(mixed $value, int $flags = 0, int $depth = 512): string|false {}
/**
* (PHP 5 &gt;= 5.2.0, PECL json &gt;= 1.2.0)<br/>
* (PHP 5 >= 5.2.0, PECL json >= 1.2.0)<br/>
* Decodes a JSON string
* @link https://php.net/manual/en/function.json-decode.php
* @param string $json <p>
@ -226,242 +295,36 @@ function json_decode(string $json, ?bool $associative = null, int $depth = 512,
#[Pure(true)]
function json_last_error(): int {}
/**
* Returns the error string of the last json_encode() or json_decode() call, which did not specify <b>JSON_THROW_ON_ERROR</b>.
* @link https://php.net/manual/en/function.json-last-error-msg.php
* @return string Returns the error message on success, "No error" if no error has occurred.
* @since 5.5
*/
#[Pure]
function json_last_error_msg(): string {}
class JsonIncrementalParser
{
public const JSON_PARSER_SUCCESS = 0;
public const JSON_PARSER_CONTINUE = 1;
/**
* All &lt; and &gt; are converted to \u003C and \u003E.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_HEX_TAG', 1);
/**
* @param int $depth [optional]
* @param int $options [optional]
*/
#[Pure]
public function __construct($depth, $options) {}
/**
* All &s are converted to \u0026.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_HEX_AMP', 2);
#[Pure]
public function getError() {}
/**
* All ' are converted to \u0027.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_HEX_APOS', 4);
public function reset() {}
/**
* All " are converted to \u0022.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_HEX_QUOT', 8);
/**
* @param string $json
*/
public function parse($json) {}
/**
* Outputs an object rather than an array when a non-associative array is
* used. Especially useful when the recipient of the output is expecting
* an object and the array is empty.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_FORCE_OBJECT', 16);
/**
* @param string $filename
*/
public function parseFile($filename) {}
/**
* Encodes numeric strings as numbers.
* @since 5.3.3
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_NUMERIC_CHECK', 32);
/**
* Don't escape /.
* @since 5.4
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_UNESCAPED_SLASHES', 64);
/**
* Use whitespace in returned data to format it.
* @since 5.4
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_PRETTY_PRINT', 128);
/**
* Encode multibyte Unicode characters literally (default is to escape as \uXXXX).
* @since 5.4
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_UNESCAPED_UNICODE', 256);
define('JSON_PARTIAL_OUTPUT_ON_ERROR', 512);
/**
* Occurs with underflow or with the modes mismatch.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_ERROR_STATE_MISMATCH', 2);
/**
* Control character error, possibly incorrectly encoded.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_ERROR_CTRL_CHAR', 3);
/**
* Malformed UTF-8 characters, possibly incorrectly encoded. This
* constant is available as of PHP 5.3.3.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_ERROR_UTF8', 5);
/**
* <p>
* The object or array passed to <b>json_encode</b> include
* recursive references and cannot be encoded.
* If the <b>JSON_PARTIAL_OUTPUT_ON_ERROR</b> option was
* given, <b>NULL</b> will be encoded in the place of the recursive reference.
* </p>
* <p>
* This constant is available as of PHP 5.5.0.
* </p>
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_ERROR_RECURSION', 6);
/**
* <p>
* The value passed to <b>json_encode</b> includes either
* <b>NAN</b>
* or <b>INF</b>.
* If the <b>JSON_PARTIAL_OUTPUT_ON_ERROR</b> option was
* given, 0 will be encoded in the place of these
* special numbers.
* </p>
* <p>
* This constant is available as of PHP 5.5.0.
* </p>
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_ERROR_INF_OR_NAN', 7);
/**
* <p>
* A value of an unsupported type was given to
* <b>json_encode</b>, such as a resource.
* If the <b>JSON_PARTIAL_OUTPUT_ON_ERROR</b> option was
* given, <b>NULL</b> will be encoded in the place of the unsupported value.
* </p>
* <p>
* This constant is available as of PHP 5.5.0.
* </p>
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_ERROR_UNSUPPORTED_TYPE', 8);
/**
* No error has occurred.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_ERROR_NONE', 0);
/**
* The maximum stack depth has been exceeded.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_ERROR_DEPTH', 1);
/**
* Syntax error.
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_ERROR_SYNTAX', 4);
/**
* Decodes JSON objects as PHP array.
* @since 5.4
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_OBJECT_AS_ARRAY', 1);
define('JSON_PARSER_NOTSTRICT', 4);
/**
* Decodes large integers as their original string value.
* @since 5.4
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_BIGINT_AS_STRING', 2);
/**
* Ensures that float values are always encoded as a float value.
* @since 5.6.6
* @link https://php.net/manual/en/json.constants.php
*/
define('JSON_PRESERVE_ZERO_FRACTION', 1024);
/**
* The line terminators are kept unescaped when JSON_UNESCAPED_UNICODE is supplied.
* It uses the same behaviour as it was before PHP 7.1 without this constant. Available since PHP 7.1.0.
* @link https://php.net/manual/en/json.constants.php
* @since 7.1
*/
define('JSON_UNESCAPED_LINE_TERMINATORS', 2048);
/**
* Ignore invalid UTF-8 characters.
* @since 7.2
*/
define('JSON_INVALID_UTF8_IGNORE', 1048576);
/**
* Convert invalid UTF-8 characters to \0xfffd (Unicode Character 'REPLACEMENT CHARACTER').
* @since 7.2
*/
define('JSON_INVALID_UTF8_SUBSTITUTE', 2097152);
/**
* A key starting with \u0000 character was in the string passed to json_decode() when decoding a JSON object into a PHP object.
* Available since PHP 7.0.0.
* @link https://php.net/manual/en/json.constants.php
* @since 7.0
*/
define('JSON_ERROR_INVALID_PROPERTY_NAME', 9);
/**
* Single unpaired UTF-16 surrogate in unicode escape contained in the JSON string passed to json_encode().
* Available since PHP 7.0.0.
* @link https://php.net/manual/en/json.constants.php
* @since 7.0
*/
define('JSON_ERROR_UTF16', 10);
/**
* Throws JsonException if an error occurs instead of setting the global error state
* that is retrieved with json_last_error() and json_last_error_msg().
*
* {@see JSON_PARTIAL_OUTPUT_ON_ERROR} takes precedence over JSON_THROW_ON_ERROR.
* @since 7.3
*/
define('JSON_THROW_ON_ERROR', 4194304);
/**
* @since 8.1
*/
define('JSON_ERROR_NON_BACKED_ENUM', 11);
/**
* Class JsonException
*
* <p>A new flag has been added, JSON_THROW_ON_ERROR, which can be used with
* json_decode() or json_encode() and causes these functions to throw a
* JsonException upon an error, instead of setting the global error state that
* is retrieved with json_last_error(). JSON_PARTIAL_OUTPUT_ON_ERROR takes
* precedence over <b>JSON_THROW_ON_ERROR</b>.
* </p>
*
* @since 7.3
* @link https://wiki.php.net/rfc/json_throw_on_error
*/
class JsonException extends Exception {}
// End of json v.1.3.1
/**
* @param int $options [optional]
*/
#[Pure]
public function get($options) {}
}

View File

@ -1,8 +0,0 @@
<?php
namespace LDAP;
/**
* @since 8.1
*/
final class Connection {}

View File

@ -1,8 +0,0 @@
<?php
namespace LDAP;
/**
* @since 8.1
*/
final class Result {}

View File

@ -1,8 +0,0 @@
<?php
namespace LDAP;
/**
* @since 8.1
*/
final class ResultEntry {}

File diff suppressed because it is too large Load Diff

View File

@ -1,162 +1,8 @@
<?php
// Start of libxml v.
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Pure;
/**
* Contains various information about errors thrown by libxml. The error codes
* are described within the official
* xmlError API documentation.
* @link https://php.net/manual/en/class.libxmlerror.php
*/
class LibXMLError
{
/**
* <p style="margin-top:0;">
* the severity of the error (one of the following constants:
* <b><code>LIBXML_ERR_WARNING</code></b>,
* <b><code>LIBXML_ERR_ERROR</code></b> or
* <b><code>LIBXML_ERR_FATAL</code></b>)
* </p>
* @var int
*/
public int $level;
/**
* <p style="margin-top:0;">
* The error's code.
* </p>
* @var int
*/
public int $code;
/**
* <p style="margin-top:0;">
* The column where the error occurred.
* </p>
* <p><b>Note</b>:
* </p><p>
* This property isn't entirely implemented in libxml and therefore
* 0 is often returned.
* </p>
* @var int
*/
public int $column;
/**
* <p style="margin-top:0;">
* The error message, if any.
* </p>
* @var string
*/
public string $message;
/**
* <p style="margin-top:0;">The filename, or empty if the XML was loaded from a string.</p>
* @var string
*/
public string $file;
/**
* <p style="margin-top:0;">
* The line where the error occurred.
* </p>
* @var int
*/
public int $line;
}
/**
* 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 $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($context): void {}
/**
* Disable libxml errors and allow user to fetch error information as needed
* @link https://php.net/manual/en/function.libxml-use-internal-errors.php
* @param bool|null $use_errors <p>
* Enable (<b>TRUE</b>) user error handling or disable (<b>FALSE</b>) user error handling. Disabling will also clear any existing libxml errors.
* </p>
* @return bool This function returns the previous value of
* <i>use_errors</i>.
*/
function libxml_use_internal_errors(
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] bool $use_errors = false,
#[PhpStormStubsElementAvailable(from: '8.0')] ?bool $use_errors = null
): bool {}
/**
* Retrieve last error from libxml
* @link https://php.net/manual/en/function.libxml-get-last-error.php
* @return LibXMLError|false a LibXMLError object if there is any error in the
* buffer, <b>FALSE</b> otherwise.
*/
#[Pure(true)]
function libxml_get_last_error(): LibXMLError|false {}
/**
* Clear libxml error buffer
* @link https://php.net/manual/en/function.libxml-clear-errors.php
* @return void No value is returned.
*/
function libxml_clear_errors(): void {}
/**
* Retrieve array of errors
* @link https://php.net/manual/en/function.libxml-get-errors.php
* @return LibXMLError[] an array with LibXMLError objects if there are any
* errors in the buffer, or an empty array otherwise.
*/
#[Pure(true)]
function libxml_get_errors(): array {}
/**
* Disable the ability to load external entities
* @link https://php.net/manual/en/function.libxml-disable-entity-loader.php
* @param bool $disable [optional] <p>
* Disable (<b>TRUE</b>) or enable (<b>FALSE</b>) libxml extensions (such as
* ,
* and ) to load external entities.
* </p>
* @return bool the previous value.
* @since 5.2.11
*/
#[Deprecated(since: "8.0")]
function libxml_disable_entity_loader(bool $disable = true): bool {}
/**
* Changes the default external entity loader
* @link https://php.net/manual/en/function.libxml-set-external-entity-loader.php
* @param callable|null $resolver_function <p>
* A callable that takes three arguments. Two strings, a public id
* and system id, and a context (an array with four keys) as the third argument.
* This callback should return a resource, a string from which a resource can be
* opened, or <b>NULL</b>.
* </p>
* @return bool
* @since 5.4
*/
function libxml_set_external_entity_loader(?callable $resolver_function): bool {}
/**
* Returns the currently installed external entity loader, i.e. the value which was passed to
* libxml_set_external_entity_loader() or null if no loader was installed and the default entity loader will be used.
* This allows libraries to save and restore the loader, controlling entity expansion without interfering with the rest
* of the application.
*
* @return callable|null
* @since 8.2
*/
function libxml_get_external_entity_loader(): ?callable {}
/**
* libxml version like 20605 or 20617
* @link https://php.net/manual/en/libxml.constants.php
@ -168,6 +14,7 @@ define('LIBXML_VERSION', 20901);
* @link https://php.net/manual/en/libxml.constants.php
*/
define('LIBXML_DOTTED_VERSION', "2.9.1");
define('LIBXML_LOADED_VERSION', 20901);
/**
@ -236,18 +83,11 @@ define('LIBXML_NOCDATA', 16384);
*/
define('LIBXML_NONET', 2048);
/**
* Sets XML_PARSE_PEDANTIC flag, which enables pedentic error reporting.
* @link https://php.net/manual/en/libxml.constants.php
* @since 5.4
*/
define('LIBXML_PEDANTIC', 128);
/**
* Activate small nodes allocation optimization. This may speed up your
* application without needing to change the code.
* <p>
* Only available in Libxml &gt;= 2.6.21
* Only available in Libxml >= 2.6.21
* </p>
* @link https://php.net/manual/en/libxml.constants.php
*/
@ -256,7 +96,7 @@ define('LIBXML_COMPACT', 65536);
/**
* Allows line numbers greater than 65535 to be reported correctly.
* <p>
* Only available in Libxml &gt;= 2.9.0
* Only available in Libxml >= 2.9.0
* </p>
* @link https://php.net/manual/en/libxml.constants.php
*/
@ -265,7 +105,7 @@ define('LIBXML_BIGLINES', 65535);
/**
* Drop the XML declaration when saving a document
* <p>
* Only available in Libxml &gt;= 2.6.21
* Only available in Libxml >= 2.6.21
* </p>
* @link https://php.net/manual/en/libxml.constants.php
*/
@ -276,7 +116,7 @@ define('LIBXML_NOXMLDECL', 2);
* limits like maximum depth of a document or the entity recursion, as well as limits of the
* size of text nodes.
* <p>
* Only available in Libxml &gt;= 2.7.0 (as of PHP &gt;= 5.3.2 and PHP &gt;= 5.2.12)
* Only available in Libxml >= 2.7.0 (as of PHP >= 5.3.2 and PHP >= 5.2.12)
* </p>
* @link https://php.net/manual/en/libxml.constants.php
*/
@ -297,7 +137,7 @@ define('LIBXML_NOEMPTYTAG', 4);
/**
* Create default/fixed value nodes during XSD schema validation
* <p>
* Only available in Libxml &gt;= 2.6.14 (as of PHP &gt;= 5.5.2)
* Only available in Libxml >= 2.6.14 (as of PHP >= 5.5.2)
* </p>
* @link https://php.net/manual/en/libxml.constants.php
*/
@ -307,7 +147,7 @@ define('LIBXML_SCHEMA_CREATE', 1);
* Sets HTML_PARSE_NOIMPLIED flag, which turns off the
* automatic adding of implied html/body... elements.
* <p>
* Only available in Libxml &gt;= 2.7.7 (as of PHP &gt;= 5.4.0)
* Only available in Libxml >= 2.7.7 (as of PHP >= 5.4.0)
* </p>
* @link https://php.net/manual/en/libxml.constants.php
*/
@ -317,7 +157,7 @@ define('LIBXML_HTML_NOIMPLIED', 8192);
* Sets HTML_PARSE_NODEFDTD flag, which prevents a default doctype
* being added when one is not found.
* <p>
* Only available in Libxml &gt;= 2.7.8 (as of PHP &gt;= 5.4.0)
* Only available in Libxml >= 2.7.8 (as of PHP >= 5.4.0)
* </p>
* @link https://php.net/manual/en/libxml.constants.php
*/
@ -347,4 +187,126 @@ define('LIBXML_ERR_ERROR', 2);
*/
define('LIBXML_ERR_FATAL', 3);
// End of libxml v.
/**
* 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 $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($context): void {}
/**
* Disable libxml errors and allow user to fetch error information as needed
* @link https://php.net/manual/en/function.libxml-use-internal-errors.php
* @param bool|null $use_errors <p>
* Enable (<b>TRUE</b>) user error handling or disable (<b>FALSE</b>) user error handling. Disabling will also clear any existing libxml errors.
* </p>
* @return bool This function returns the previous value of
* <i>use_errors</i>.
*/
function libxml_use_internal_errors(bool $use_errors = false): bool {}
/**
* Retrieve last error from libxml
* @link https://php.net/manual/en/function.libxml-get-last-error.php
* @return LibXMLError|false a LibXMLError object if there is any error in the
* buffer, <b>FALSE</b> otherwise.
*/
#[Pure(true)]
function libxml_get_last_error(): LibXMLError|false {}
/**
* Clear libxml error buffer
* @link https://php.net/manual/en/function.libxml-clear-errors.php
* @return void No value is returned.
*/
function libxml_clear_errors(): void {}
/**
* Retrieve array of errors
* @link https://php.net/manual/en/function.libxml-get-errors.php
* @return LibXMLError[] an array with LibXMLError objects if there are any
* errors in the buffer, or an empty array otherwise.
*/
#[Pure(true)]
function libxml_get_errors(): array {}
/**
* Disable the ability to load external entities
* @link https://php.net/manual/en/function.libxml-disable-entity-loader.php
* @param bool $disable [optional] <p>
* Disable (<b>TRUE</b>) or enable (<b>FALSE</b>) libxml extensions (such as
* ,
* and ) to load external entities.
* </p>
* @return bool the previous value.
* @since 5.2.11
*/
#[Deprecated(since: "8.0")]
function libxml_disable_entity_loader(bool $disable = true): bool {}
/**
* Contains various information about errors thrown by libxml. The error codes
* are described within the official
* xmlError API documentation.
* @link https://php.net/manual/en/class.libxmlerror.php
*/
class LibXMLError
{
/**
* <p style="margin-top:0;">
* the severity of the error (one of the following constants:
* <b><code>LIBXML_ERR_WARNING</code></b>,
* <b><code>LIBXML_ERR_ERROR</code></b> or
* <b><code>LIBXML_ERR_FATAL</code></b>)
* </p>
* @var int
*/
public int $level;
/**
* <p style="margin-top:0;">
* The error's code.
* </p>
* @var int
*/
public int $code;
/**
* <p style="margin-top:0;">
* The column where the error occurred.
* </p>
* <p><b>Note</b>:
* </p><p>
* This property isn't entirely implemented in libxml and therefore
* 0 is often returned.
* </p>
* @var int
*/
public int $column;
/**
* <p style="margin-top:0;">
* The error message, if any.
* </p>
* @var string
*/
public string $message;
/**
* <p style="margin-top:0;">The filename, or empty if the XML was loaded from a string.</p>
* @var string
*/
public string $file;
/**
* <p style="margin-top:0;">
* The line where the error occurred.
* </p>
* @var int
*/
public int $line;
}

View File

@ -1,13 +1,30 @@
<?php
// Start of mbstring v.
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Pure;
/**
* @removed 8.0
*/
define('MB_OVERLOAD_MAIL', 1);
/**
* @removed 8.0
*/
define('MB_OVERLOAD_STRING', 2);
/**
* @removed 8.0
*/
define('MB_OVERLOAD_REGEX', 4);
define('MB_CASE_UPPER', 0);
define('MB_CASE_LOWER', 1);
define('MB_CASE_TITLE', 2);
/**
* Perform case folding on a string
* @link https://php.net/manual/en/function.mb-convert-case.php
@ -170,7 +187,6 @@ function mb_http_output(?string $encoding): string|bool {}
* When getting the encoding detection order, an ordered array
* of the encodings is returned.
*/
#[LanguageLevelTypeAware(['8.2' => 'array|true'], default: 'array|bool')]
function mb_detect_order(array|string|null $encoding = null): array|bool {}
/**
@ -201,21 +217,6 @@ function mb_substitute_character(string|int|null $substitute_character = null):
* </p>
* @return bool true on success or false on failure.
*/
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')]
function mb_parse_str(string $string, &$result): bool {}
/**
* Parse GET/POST/COOKIE data and set global variable
* @link https://php.net/manual/en/function.mb-parse-str.php
* @param string $string <p>
* The URL encoded data.
* </p>
* @param array &$result <p>
* An array containing decoded and character encoded converted values.
* </p>
* @return bool true on success or false on failure.
*/
#[PhpStormStubsElementAvailable(from: '8.0')]
function mb_parse_str(string $string, &$result): bool {}
/**
@ -257,8 +258,7 @@ function mb_preferred_mime_name(string $encoding): string|false {}
* counted as 1.
*/
#[Pure]
#[LanguageLevelTypeAware(['8.0' => 'int'], default: 'int|false')]
function mb_strlen(string $string, #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $encoding) {}
function mb_strlen(string $string, string $encoding): int|false {}
/**
* Find position of first occurrence of string in a string
@ -583,11 +583,7 @@ function mb_strimwidth(string $string, int $start, int $width, string $trim_mark
* @return array|string|false The encoded string.
*/
#[Pure]
function mb_convert_encoding(
array|string $string,
string $to_encoding,
array|string|null $from_encoding = null
): array|string|false {}
function mb_convert_encoding(array|string $string, string $to_encoding, array|string|null $from_encoding = null): array|string|false {}
/**
* Detect character encoding
@ -630,8 +626,7 @@ function mb_list_encodings(): array {}
* @link https://php.net/manual/en/function.mb-encoding-aliases.php
*/
#[Pure]
#[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")]
function mb_encoding_aliases(string $encoding) {}
function mb_encoding_aliases(string $encoding): array|false {}
/**
* Convert "kana" one from another ("zen-kaku", "han-kaku" and more)
@ -783,13 +778,7 @@ function mb_convert_kana(string $string, string $mode = 'KV', ?string $encoding)
* @return string A converted version of the string represented in ASCII.
*/
#[Pure]
function mb_encode_mimeheader(
string $string,
?string $charset,
?string $transfer_encoding,
string $newline = "\n",
int $indent = 0
): string {}
function mb_encode_mimeheader(string $string, ?string $charset, ?string $transfer_encoding, string $newline = "\n", int $indent = 0): string {}
/**
* Decode string in MIME header field
@ -824,13 +813,7 @@ function mb_decode_mimeheader(string $string): string {}
* @return string|false The character encoding before conversion for success,
* or false for failure.
*/
function mb_convert_variables(
string $to_encoding,
array|string $from_encoding,
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] &$vars,
#[PhpStormStubsElementAvailable(from: '8.0')] mixed &$var,
mixed &...$vars
): string|false {}
function mb_convert_variables(string $to_encoding, array|string $from_encoding, mixed &...$vars): string|false {}
/**
* Encode character to HTML numeric string reference
@ -866,13 +849,7 @@ function mb_encode_numericentity(string $string, array $map, ?string $encoding =
* @return string|false|null The converted string.
*/
#[Pure]
#[LanguageLevelTypeAware(['8.0' => 'string'], default: 'string|false|null')]
function mb_decode_numericentity(
string $string,
array $map,
?string $encoding = null,
#[PhpStormStubsElementAvailable(from: '7.2', to: '7.4')] $is_hex = false
) {}
function mb_decode_numericentity(string $string, array $map, ?string $encoding = null): string|false|null {}
/**
* Send encoded mail
@ -903,13 +880,7 @@ function mb_decode_numericentity(
* </p>
* @return bool true on success or false on failure.
*/
function mb_send_mail(
string $to,
string $subject,
string $message,
array|string $additional_headers = [],
?string $additional_params
): bool {}
function mb_send_mail(string $to, string $subject, string $message, array|string $additional_headers = [], ?string $additional_params): bool {}
/**
* Get internal settings of mbstring
@ -929,21 +900,7 @@ function mb_send_mail(
* is not specified, otherwise a specific type.
*/
#[Pure]
#[ArrayShape([
'internal_encoding' => 'string',
'http_input' => 'string',
'http_output' => 'string',
'http_output_conv_mimetypes' => 'string',
'mail_charset' => 'string',
'mail_header_encoding' => 'string',
'mail_body_encoding' => 'string',
'illegal_chars' => 'string',
'encoding_translation' => 'string',
'language' => 'string',
'detect_order' => 'string',
'substitute_character' => 'string',
'strict_detection' => 'string',
])]
#[ArrayShape(["internal_encoding" => "string", "http_input" => "string", "http_output" => "string", "http_output_conv_mimetypes" => "string", "mail_charset" => "string", "mail_header_encoding" => "string", "mail_body_encoding" => "string", "illegal_chars" => "string", "encoding_translation" => "string", "language" => "string", "detect_order" => "string", "substitute_character" => "string", "strict_detection" => "string"])]
function mb_get_info(string $type = 'all'): array|string|int|false {}
/**
@ -1014,8 +971,7 @@ function mb_ereg(string $pattern, string $string, &$matches): bool {}
* </p>
* @return bool|int
*/
#[LanguageLevelTypeAware(["8.0" => "bool"], default: "false|int")]
function mb_eregi(string $pattern, string $string, &$matches): bool {}
function mb_eregi(string $pattern, string $string, &$matches): false|int {}
/**
* Replace regular expression with multibyte support
@ -1046,62 +1002,7 @@ function mb_eregi(string $pattern, string $string, &$matches): bool {}
* @return string|false|null The resultant string on success, or false on error.
*/
#[Pure]
function mb_ereg_replace(
string $pattern,
string $replacement,
string $string,
?string $options = null
): string|false|null {}
/**
* Perform a regular expresssion seach and replace with multibyte support using a callback
* @link https://secure.php.net/manual/en/function.mb-ereg-replace-callback.php
* @param string $pattern <p>
* The regular expression pattern.
* </p>
* <p>
* Multibyte characters may be used in <b>pattern</b>.
* </p>
* @param callable $callback <p>
* A callback that will be called and passed an array of matched elements
* in the <b>subject</b> string. The callback should
* return the replacement string.
* </p>
* <p>
* You'll often need the <b>callback</b> function
* for a <b>mb_ereg_replace_callback()</b> in just one place.
* In this case you can use an anonymous function to
* declare the callback within the call to
* <b>mb_ereg_replace_callback()</b>. By doing it this way
* you have all information for the call in one place and do not
* clutter the function namespace with a callback function's name
* not used anywhere else.
* </p>
* @param string $string <p>
* The string being checked.
* </p>
* @param string $options <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
* specified, white space will be ignored. If <em>m</em>
* is specified, match will be executed in multiline mode and line
* break will be included in '.'. If <em>p</em> is
* specified, match will be executed in POSIX mode, line break
* will be considered as normal character. Note that <em>e</em>
* cannot be used for <b>mb_ereg_replace_callback()</b>.
* </p>
* @return string|false|null <p>
* The resultant string on success, or <b>FALSE</b> on error.
* </p>
* @since 5.4.1
*/
function mb_ereg_replace_callback(
string $pattern,
callable $callback,
string $string,
?string $options = null
): string|false|null {}
function mb_ereg_replace(string $pattern, string $replacement, string $string, ?string $options = null): string|false|null {}
/**
* Replace regular expression with multibyte support ignoring case
@ -1121,12 +1022,7 @@ function mb_ereg_replace_callback(
* @return string|false|null The resultant string or false on error.
*/
#[Pure]
function mb_eregi_replace(
string $pattern,
string $replacement,
string $string,
#[PhpStormStubsElementAvailable(from: '7.0')] ?string $options = null
): string|false|null {}
function mb_eregi_replace(string $pattern, string $replacement, string $string): string|false|null {}
/**
* Split multibyte string using regular expression
@ -1245,7 +1141,7 @@ function mb_ereg_search_getregs(): array|false {}
* @return int
*/
#[Pure]
#[Deprecated(since: '7.3')]
#[Deprecated(since: "7.3")]
function mb_ereg_search_getpos(): int {}
/**
@ -1274,7 +1170,7 @@ function mbregex_encoding($encoding) {}
* @see mb_ereg
* @removed 8.0
*/
#[Deprecated(replacement: 'mb_ereg(%parametersList%)', since: '7.3')]
#[Deprecated(replacement: "mb_ereg(%parametersList%)", since: "7.3")]
function mbereg(string $pattern, string $string, array &$registers) {}
/**
@ -1295,7 +1191,7 @@ function mberegi(string $pattern, string $string, array &$registers) {}
* @see mb_ereg_replace
* @removed 8.0
*/
#[Deprecated(replacement: 'mb_ereg_replace(%parametersList%)', since: '7.3')]
#[Deprecated(replacement: "mb_ereg_replace(%parametersList%)", since: "7.3")]
function mbereg_replace($pattern, $replacement, $string, $option) {}
/**
@ -1308,12 +1204,7 @@ function mbereg_replace($pattern, $replacement, $string, $option) {}
* @removed 8.0
*/
#[Deprecated(replacement: "mb_eregi_replace(%parametersList%)", since: "7.3")]
function mberegi_replace(
$pattern,
$replacement,
$string,
#[PhpStormStubsElementAvailable(from: '7.0')] string $option = "msri"
): string {}
function mberegi_replace($pattern, $replacement, $string): string {}
/**
* @param $pattern
@ -1322,7 +1213,7 @@ function mberegi_replace(
* @see mb_split
* @removed 8.0
*/
#[Deprecated(replacement: 'mb_split(%parametersList%)', since: '7.3')]
#[Deprecated(replacement: "mb_split(%parametersList%)", since: "7.3")]
function mbsplit($pattern, $string, $limit) {}
/**
@ -1359,7 +1250,7 @@ function mbereg_search_pos($pattern, $option) {}
* @see mb_ereg_search_regs
* @removed 8.0
*/
#[Deprecated(replacement: 'mb_ereg_search_regs(%parametersList%)', since: '7.3')]
#[Deprecated(replacement: "mb_ereg_search_regs(%parametersList%)", since: "7.3")]
function mbereg_search_regs($pattern, $option) {}
/**
@ -1376,7 +1267,7 @@ function mbereg_search_init($string, $pattern, $option) {}
* @see mb_ereg_search_getregs
* @removed 8.0
*/
#[Deprecated(replacement: 'mb_ereg_search_getregs(%parametersList%)', since: '7.3')]
#[Deprecated(replacement: "mb_ereg_search_getregs(%parametersList%)", since: "7.3")]
function mbereg_search_getregs() {}
/**
@ -1386,40 +1277,6 @@ function mbereg_search_getregs() {}
#[Deprecated(replacement: "mb_ereg_search_getpos()", since: "7.3")]
function mbereg_search_getpos() {}
/**
* Get a specific character.
* @link https://www.php.net/manual/en/function.mb-chr.php
* @param int $codepoint
* @param string|null $encoding [optional]
* @return string|false specific character or FALSE on failure.
* @since 7.2
*/
#[Pure]
function mb_chr(int $codepoint, ?string $encoding): string|false {}
/**
* Get code point of character
* @link https://www.php.net/manual/en/function.mb-ord.php
* @param string $string
* @param string|null $encoding [optional]
* @return int|false code point of character or FALSE on failure.
* @since 7.2
*/
#[Pure]
function mb_ord(string $string, ?string $encoding): int|false {}
/**
* Scrub broken multibyte strings.
* @link https://www.php.net/manual/en/function.mb-scrub.php
* @param string $string
* @param string|null $encoding [optional]
* @return string|false
* @since 7.2
*/
#[Pure]
#[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")]
function mb_scrub(string $string, ?string $encoding): false|string {}
/**
* @param $position
* @see mb_ereg_search_setpos
@ -1427,65 +1284,3 @@ function mb_scrub(string $string, ?string $encoding): false|string {}
#[Deprecated(replacement: "mb_ereg_search_setpos(%parametersList%)", since: "7.3")]
#[Pure]
function mbereg_search_setpos($position) {}
/**
* Function performs string splitting to an array of defined size chunks.
* @param string $string <p>
* The string to split into characters or chunks.
* </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|null $encoding [optional] <p>
* Character encoding name to use.
* If it is omitted, internal character encoding is used.
* </p>
* @return string[]|false
* @since 7.4
*/
#[Pure]
#[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")]
function mb_str_split(string $string, int $length = 1, ?string $encoding) {}
/**
* @removed 8.0
*/
define('MB_OVERLOAD_MAIL', 1);
/**
* @removed 8.0
*/
define('MB_OVERLOAD_STRING', 2);
/**
* @removed 8.0
*/
define('MB_OVERLOAD_REGEX', 4);
define('MB_CASE_UPPER', 0);
define('MB_CASE_LOWER', 1);
define('MB_CASE_TITLE', 2);
/**
* @since 7.3
*/
define('MB_CASE_FOLD', 3);
/**
* @since 7.3
*/
define('MB_CASE_UPPER_SIMPLE', 4);
/**
* @since 7.3
*/
define('MB_CASE_LOWER_SIMPLE', 5);
/**
* @since 7.3
*/
define('MB_CASE_TITLE_SIMPLE', 6);
/**
* @since 7.3
*/
define('MB_CASE_FOLD_SIMPLE', 7);
/**
* @since 7.4
*/
define('MB_ONIGURUMA_VERSION', '6.9.8');
// End of mbstring v.

View File

@ -1,8 +1,297 @@
<?php
// Start of mcrypt v.
use JetBrains\PhpStorm\Deprecated;
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_ENCRYPT', 0);
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_DECRYPT', 1);
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_DEV_RANDOM', 0);
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_DEV_URANDOM', 1);
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RAND', 2);
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_3DES', "tripledes");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_ARCFOUR_IV', "arcfour-iv");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_ARCFOUR', "arcfour");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_BLOWFISH', "blowfish");
define('MCRYPT_BLOWFISH_COMPAT', "blowfish-compat");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_CAST_128', "cast-128");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_CAST_256', "cast-256");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_CRYPT', "crypt");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_DES', "des");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_DES_COMPAT', "des-compat");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_ENIGNA', "crypt");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_GOST', "gost");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_LOKI97', "loki97");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_PANAMA', "panama");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RC2', "rc2");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RC4', "rc4");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RIJNDAEL_128', "rijndael-128");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RIJNDAEL_192', "rijndael-192");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RIJNDAEL_256', "rijndael-256");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_SAFER64', "safer-sk64");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_SAFER128', "safer-sk128");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_SAFERPLUS', "saferplus");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_SERPENT', "serpent");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_SERPENT_128', "serpent-128");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_SERPENT_192', "serpent-192");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_SERPENT_256', "serpent-256");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_THREEWAY', "threeway");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_TRIPLEDES', "tripledes");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_TWOFISH', "twofish");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_WAKE', "wake");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_XTEA', "xtea");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_IDEA', "idea");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_MARS', "mars");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RC6', "rc6");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RC6_128', "rc6-128");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RC6_192', "rc6-192");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RC6_256', "rc6-256");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_SKIPJACK', "skipjack");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_MODE_CBC', "cbc");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_MODE_CFB', "cfb");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_MODE_ECB', "ecb");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_MODE_NOFB', "nofb");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_MODE_OFB', "ofb");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_MODE_STREAM', "stream");
/**
* Encrypt/decrypt data in ECB mode
* @link https://php.net/manual/en/function.mcrypt-ecb.php
@ -41,7 +330,7 @@ function mcrypt_cbc($cipher, $key, $data, $mode, $iv = null) {}
* @return string
* @removed 7.0
*/
#[Deprecated(since: '5.5')]
#[Deprecated(since: "5.5")]
function mcrypt_cfb($cipher, $key, $data, $mode, $iv = null) {}
/**
@ -55,7 +344,7 @@ function mcrypt_cfb($cipher, $key, $data, $mode, $iv = null) {}
* @return string
* @removed 7.0
*/
#[Deprecated(since: '5.5')]
#[Deprecated(since: "5.5")]
function mcrypt_ofb($cipher, $key, $data, $mode, $iv = null) {}
/**
@ -66,7 +355,7 @@ function mcrypt_ofb($cipher, $key, $data, $mode, $iv = null) {}
* @return int
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_get_key_size($cipher, $module) {}
/**
@ -81,7 +370,7 @@ function mcrypt_get_key_size($cipher, $module) {}
* @return int Gets the block size, as an integer.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_get_block_size($cipher, $module) {}
/**
@ -95,7 +384,7 @@ function mcrypt_get_block_size($cipher, $module) {}
* not exist.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_get_cipher_name($cipher) {}
/**
@ -125,7 +414,7 @@ function mcrypt_get_cipher_name($cipher) {}
* @return string|false the initialization vector, or false on error.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_create_iv($size, $source = MCRYPT_DEV_URANDOM) {}
/**
@ -139,7 +428,7 @@ function mcrypt_create_iv($size, $source = MCRYPT_DEV_URANDOM) {}
* @return array an array with all the supported algorithms.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_list_algorithms($lib_dir = null) {}
/**
@ -153,7 +442,7 @@ function mcrypt_list_algorithms($lib_dir = null) {}
* @return array an array with all the supported modes.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_list_modes($lib_dir = null) {}
/**
@ -175,7 +464,7 @@ function mcrypt_list_modes($lib_dir = null) {}
* combination zero is returned.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_get_iv_size($cipher, $module) {}
/**
@ -217,7 +506,7 @@ function mcrypt_get_iv_size($cipher, $module) {}
* @return string the encrypted data, as a string.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_encrypt($cipher, $key, $data, $mode, $iv = null) {}
/**
@ -251,7 +540,7 @@ function mcrypt_encrypt($cipher, $key, $data, $mode, $iv = null) {}
* @return string the decrypted data as a string.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_decrypt($cipher, $key, $data, $mode, $iv = null) {}
/**
@ -279,7 +568,7 @@ function mcrypt_decrypt($cipher, $key, $data, $mode, $iv = null) {}
* @return resource|false Normally it returns an encryption descriptor, or false on error.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_module_open($cipher, $cipher_directory, $mode, $mode_directory) {}
/**
@ -309,7 +598,7 @@ function mcrypt_module_open($cipher, $cipher_directory, $mode, $mode_directory)
* were passed.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_generic_init($td, $key, $iv) {}
/**
@ -331,7 +620,7 @@ function mcrypt_generic_init($td, $key, $iv) {}
* @return string the encrypted data.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_generic($td, $data) {}
/**
@ -347,7 +636,7 @@ function mcrypt_generic($td, $data) {}
* @return string
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mdecrypt_generic($td, $data) {}
/**
@ -357,7 +646,7 @@ function mdecrypt_generic($td, $data) {}
* @return bool
* @removed 7.0
*/
#[Deprecated(since: '5.3')]
#[Deprecated(since: "5.3")]
function mcrypt_generic_end($td) {}
/**
@ -369,7 +658,7 @@ function mcrypt_generic_end($td) {}
* @return bool true on success or false on failure.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_generic_deinit($td) {}
/**
@ -381,7 +670,7 @@ function mcrypt_generic_deinit($td) {}
* @return int Returns 0 on success and a negative integer on failure
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_enc_self_test($td) {}
/**
@ -394,7 +683,7 @@ function mcrypt_enc_self_test($td) {}
* returns false.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_enc_is_block_algorithm_mode($td) {}
/**
@ -407,7 +696,7 @@ function mcrypt_enc_is_block_algorithm_mode($td) {}
* a stream one.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_enc_is_block_algorithm($td) {}
/**
@ -419,7 +708,7 @@ function mcrypt_enc_is_block_algorithm($td) {}
* @return bool true if the mode outputs blocks of bytes or false if it outputs bytes.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_enc_is_block_mode($td) {}
/**
@ -431,7 +720,7 @@ function mcrypt_enc_is_block_mode($td) {}
* @return int the block size of the specified algorithm in bytes.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_enc_get_block_size($td) {}
/**
@ -443,7 +732,7 @@ function mcrypt_enc_get_block_size($td) {}
* @return int the maximum supported key size of the algorithm in bytes.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_enc_get_key_size($td) {}
/**
@ -459,7 +748,7 @@ function mcrypt_enc_get_key_size($td) {}
* algorithm.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_enc_get_supported_key_sizes($td) {}
/**
@ -471,7 +760,7 @@ function mcrypt_enc_get_supported_key_sizes($td) {}
* @return int the size of the IV, or 0 if the IV is ignored in the algorithm.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_enc_get_iv_size($td) {}
/**
@ -483,7 +772,7 @@ function mcrypt_enc_get_iv_size($td) {}
* @return string the name of the opened algorithm as a string.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_enc_get_algorithms_name($td) {}
/**
@ -495,7 +784,7 @@ function mcrypt_enc_get_algorithms_name($td) {}
* @return string the name as a string.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_enc_get_modes_name($td) {}
/**
@ -512,7 +801,7 @@ function mcrypt_enc_get_modes_name($td) {}
* fails.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_module_self_test($algorithm, $lib_dir = null) {}
/**
@ -530,7 +819,7 @@ function mcrypt_module_self_test($algorithm, $lib_dir = null) {}
* true for cbc, cfb, ofb).
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_module_is_block_algorithm_mode($mode, $lib_dir = null) {}
/**
@ -547,7 +836,7 @@ function mcrypt_module_is_block_algorithm_mode($mode, $lib_dir = null) {}
* algorithm, or false is it is a stream algorithm.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_module_is_block_algorithm($algorithm, $lib_dir = null) {}
/**
@ -565,7 +854,7 @@ function mcrypt_module_is_block_algorithm($algorithm, $lib_dir = null) {}
* false for cfb and stream).
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_module_is_block_mode($mode, $lib_dir = null) {}
/**
@ -581,7 +870,7 @@ function mcrypt_module_is_block_mode($mode, $lib_dir = null) {}
* @return int the block size of the algorithm specified in bytes.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_module_get_algo_block_size($algorithm, $lib_dir = null) {}
/**
@ -598,7 +887,7 @@ function mcrypt_module_get_algo_block_size($algorithm, $lib_dir = null) {}
* algorithm specified in bytes.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_module_get_algo_key_size($algorithm, $lib_dir = null) {}
/**
@ -617,7 +906,7 @@ function mcrypt_module_get_algo_key_size($algorithm, $lib_dir = null) {}
* algorithm.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_module_get_supported_key_sizes($algorithm, $lib_dir = null) {}
/**
@ -629,249 +918,5 @@ function mcrypt_module_get_supported_key_sizes($algorithm, $lib_dir = null) {}
* @return bool true on success or false on failure.
* @removed 7.2
*/
#[Deprecated(since: '7.1')]
#[Deprecated(since: "7.1")]
function mcrypt_module_close($td) {}
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_ENCRYPT', 0);
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_DECRYPT', 1);
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_DEV_RANDOM', 0);
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_DEV_URANDOM', 1);
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RAND', 2);
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_3DES', "tripledes");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_ARCFOUR_IV', "arcfour-iv");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_ARCFOUR', "arcfour");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_BLOWFISH', "blowfish");
define('MCRYPT_BLOWFISH_COMPAT', "blowfish-compat");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_CAST_128', "cast-128");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_CAST_256', "cast-256");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_CRYPT', "crypt");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_DES', "des");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_DES_COMPAT', "des-compat");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_ENIGNA', "crypt");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_GOST', "gost");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_LOKI97', "loki97");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_PANAMA', "panama");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RC2', "rc2");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RC4', "rc4");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RIJNDAEL_128', "rijndael-128");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RIJNDAEL_192', "rijndael-192");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RIJNDAEL_256', "rijndael-256");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_SAFER64', "safer-sk64");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_SAFER128', "safer-sk128");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_SAFERPLUS', "saferplus");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_SERPENT', "serpent");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_SERPENT_128', "serpent-128");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_SERPENT_192', "serpent-192");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_SERPENT_256', "serpent-256");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_THREEWAY', "threeway");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_TRIPLEDES', "tripledes");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_TWOFISH', "twofish");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_WAKE', "wake");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_XTEA', "xtea");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_IDEA', "idea");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_MARS', "mars");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RC6', "rc6");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RC6_128', "rc6-128");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RC6_192', "rc6-192");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_RC6_256', "rc6-256");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_SKIPJACK', "skipjack");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_MODE_CBC', "cbc");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_MODE_CFB', "cfb");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_MODE_ECB', "ecb");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_MODE_NOFB', "nofb");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_MODE_OFB', "ofb");
/**
* @deprecated 7.1
* @removed 7.2
*/
define('MCRYPT_MODE_STREAM', "stream");
// End of mcrypt v.

View File

@ -2,139 +2,131 @@
namespace PHPSTORM_META {
/**
* @param callable $callable Class, Method or function call
* @param mixed $method one of
* @return mixed override pair object
* @see type()
* @see elementType()
* @see sql_injection_subst()
* @see map()
*/
function override($callable, $override)
{
return "override $callable $override";
}
/**
* @param callable $callable Class, Method or function call
* @param mixed $method one of
* @see map()
* @see type()
* @see elementType()
* @see sql_injection_subst()
* @return mixed override pair object
*/
function override($callable, $override) {
return "override $callable $override";
}
/**
* map argument with #$argNum Literal value to one of expressions
* @param mixed $argNum ignored, for now its always 0
* @param mixed $map Key-value pairs: string_literal|const|class_const => class_name::class|pattern_literal
* where pattern literal can contain @ char to be replaced with argument literal value.
*
* When used with sql_injection_subst(), string literal key-value pairs act as replacement rules: pattern => replacement.
* These rules are applied in SQL injections in an IDE and enable support for dynamically-prefixed database table names.
*
* @return mixed overrides map object
* @see sql_injection_subst()
*/
function map($map)
{
return "map $argNum $map";
}
/**
* map argument with #$argNum Literal value to one of expressions
* @param mixed $argNum ignored, for now its always 0
* @param mixed $map Key-value pairs: string_literal|const|class_const => class_name::class|pattern_literal
* where pattern literal can contain @ char to be replaced with argument literal value.
*
* When used with sql_injection_subst(), string literal key-value pairs act as replacement rules: pattern => replacement.
* These rules are applied in SQL injections in an IDE and enable support for dynamically-prefixed database table names.
*
* @see sql_injection_subst()
* @return mixed overrides map object
*/
function map($map) {
return "map $argNum $map";
}
/**
* type of argument #$argNum
* @param mixed $argNum ignored, for now its always 0
* @return mixed
*/
function type($argNum)
{
return "type $argNum";
}
/**
* type of argument #$argNum
* @param mixed $argNum ignored, for now its always 0
* @return mixed
*/
function type($argNum) {
return "type $argNum";
}
/**
* element type of argument #$argNum
* @param mixed $argNum
* @return mixed
*/
function elementType($argNum)
{
return "elementType $argNum";
}
/**
* element type of argument #$argNum
* @param mixed $argNum
* @return mixed
*/
function elementType($argNum) {
return "elementType $argNum";
}
/**
* Provides an IDE with a set of replacement rules that are applied in SQL injections.
* Replacement rules are specified as string literal key-value pairs in the map() call.
* @param mixed $argNum ignored, for now its always 0
* @return mixed
* @see map()
*/
function sql_injection_subst($argNum)
{
return "sql_injection_subst $argNum";
}
/**
* Provides an IDE with a set of replacement rules that are applied in SQL injections.
* Replacement rules are specified as string literal key-value pairs in the map() call.
* @param mixed $argNum ignored, for now its always 0
* @see map()
* @return mixed
*/
function sql_injection_subst($argNum) {
return "sql_injection_subst $argNum";
}
override(\array_shift(0), elementType(0));
override(\array_filter(0), type(0));
override(\array_reverse(0), type(0));
override(\array_pop(0), elementType(0));
override(\array_reduce(0), type(2));
override(\array_slice(0), type(0));
override(\array_diff(0), type(0));
override(\array_diff_assoc(0), type(0));
override(\array_diff_uassoc(0), type(0));
override(\array_diff_key(0), type(0));
override(\array_diff_ukey(0), type(0));
override(\array_udiff(0), type(0));
override(\array_udiff_assoc(0), type(0));
override(\array_udiff_uassoc(0), type(0));
override(\array_merge(0), type(0));
override(\array_shift(0), elementType(0));
override(\array_filter(0), type(0));
override(\array_reverse(0), type(0));
override(\array_pop(0), elementType(0));
override(\array_reduce(0), type(2));
override(\array_slice(0), type(0));
override(\array_diff(0), type(0));
override(\array_diff_assoc(0), type(0));
override(\array_diff_uassoc(0), type(0));
override(\array_diff_key(0), type(0));
override(\array_diff_ukey(0), type(0));
override(\array_udiff(0), type(0));
override(\array_udiff_assoc(0), type(0));
override(\array_udiff_uassoc(0), type(0));
override(\array_merge(0), type(0));
override(\current(0), elementType(0));
override(\reset(0), elementType(0));
override(\end(0), elementType(0));
override(\prev(0), elementType(0));
override(\next(0), elementType(0));
override(\current(0), elementType(0));
override(\reset(0), elementType(0));
override(\end(0), elementType(0));
override(\prev(0), elementType(0));
override(\next(0), elementType(0));
override(\array_change_key_case(0), type(0));
override(\array_unique(0), type(0));
override(\array_change_key_case(0), type(0));
override(\array_unique(0), type(0));
override(\array_intersect(0), type(0));
override(\array_intersect_assoc(0), type(0));
override(\array_intersect_key(0), type(0));
override(\array_intersect_uassoc(0), type(0));
override(\array_intersect_ukey(0), type(0));
override(\array_uintersect(0), type(0));
override(\array_uintersect_assoc(0), type(0));
override(\array_uintersect_uassoc(0), type(0));
override(\array_intersect(0), type(0));
override(\array_intersect_assoc(0), type(0));
override(\array_intersect_key(0), type(0));
override(\array_intersect_uassoc(0), type(0));
override(\array_intersect_ukey(0), type(0));
override(\array_uintersect(0), type(0));
override(\array_uintersect_assoc(0), type(0));
override(\array_uintersect_uassoc(0), type(0));
//should be changed later to map values when map type is supported
override(\array_values(0), type(0));
override(\array_combine(0), type(1));
override(\array_values(0), type(0));
override(\array_combine(0), type(1));
override(\str_replace(0), type(2));
override(\str_replace(0), type(2));
override(\DOMDocument::importNode(0), type(0));
override(\DOMNode::appendChild(0), type(0));
override(\DOMNode::insertBefore(0), type(0));
override(\DOMNode::removeChild(0), type(0));
override(\DOMNode::replaceChild(0), type(1));
override(\simplexml_load_file(1), map(["" => "$1"]));
override(\simplexml_load_string(1), map(["" => "$1"]));
override(\simplexml_import_dom(1), map(["" => "$1"]));
override(\DOMDocument::importNode(0), type(0));
override(\DOMNode::appendChild(0), type(0));
override(\DOMNode::insertBefore(0), type(0));
override(\DOMNode::removeChild(0), type(0));
override(\DOMNode::replaceChild(0), type(1));
override(\simplexml_load_file(1), map(["" => "$1"]));
override(\simplexml_load_string(1), map(["" => "$1"]));
override(\simplexml_import_dom(1), map(["" => "$1"]));
function expectedArguments($functionReference, $argumentIndex, ...$values)
{
function expectedArguments($functionReference, $argumentIndex, ...$values) {
return "expectedArguments " . $functionReference . "at " . $argumentIndex . ": " . $values;
}
function registerArgumentsSet($setName, ...$values)
{
return "registerArgumentsSet " . $setName . ": " . $values;
function registerArgumentsSet($setName, ...$values) {
return "registerArgumentsSet " . $setName . ": " . $values;
}
function argumentsSet($setName)
{
function argumentsSet($setName) {
return "argumentsSet " . $setName;
}
expectedArguments(\array_change_key_case(), 1, CASE_LOWER, CASE_UPPER);
expectedArguments(\array_change_key_case(), 1, CASE_LOWER,CASE_UPPER);
expectedArguments(\apc_bin_dumpfile(), 3, FILE_USE_INCLUDE_PATH, FILE_APPEND, LOCK_EX);
expectedArguments(\apc_bin_load(), 3, APC_BIN_VERIFY_CRC32 | APC_BIN_VERIFY_MD5);
expectedArguments(\apc_bin_loadfile(), 3, APC_BIN_VERIFY_CRC32 | APC_BIN_VERIFY_MD5);
expectedArguments(\jdmonthname(), 1, CAL_MONTH_GREGORIAN_SHORT, CAL_MONTH_GREGORIAN_LONG, CAL_MONTH_JULIAN_SHORT, CAL_MONTH_JULIAN_LONG, CAL_MONTH_JEWISH, CAL_MONTH_FRENCH);
expectedArguments(\variant_cmp(), 0, NORM_IGNORECASE | NORM_IGNORENONSPACE | NORM_IGNORESYMBOLS | NORM_IGNOREWIDTH | NORM_IGNOREKANATYPE | NORM_IGNOREKASHIDA);
expectedArguments(\apc_bin_load(), 3, APC_BIN_VERIFY_CRC32|APC_BIN_VERIFY_MD5);
expectedArguments(\apc_bin_loadfile(), 3, APC_BIN_VERIFY_CRC32|APC_BIN_VERIFY_MD5);
expectedArguments(\jdmonthname(), 1, CAL_MONTH_GREGORIAN_SHORT,CAL_MONTH_GREGORIAN_LONG,CAL_MONTH_JULIAN_SHORT,CAL_MONTH_JULIAN_LONG,CAL_MONTH_JEWISH,CAL_MONTH_FRENCH);
expectedArguments(\variant_cmp(), 0, NORM_IGNORECASE|NORM_IGNORENONSPACE|NORM_IGNORESYMBOLS|NORM_IGNOREWIDTH|NORM_IGNOREKANATYPE|NORM_IGNOREKASHIDA);
expectedArguments(\DOMDocument::schemaValidateSource(), 1, LIBXML_SCHEMA_CREATE);
@ -172,44 +164,40 @@ namespace PHPSTORM_META {
expectedArguments(\dirname(), 0, argumentsSet('common_dirname_return'), __FILE__);
expectedReturnValues(\dirname(), argumentsSet('common_dirname_return')); // this allows completion for "dirname()" inside dirname(<caret>)
expectedArguments(\EvLoop::__construct(), 0, \Ev::FLAG_AUTO, \Ev::FLAG_NOENV, \Ev::FLAG_FORKCHECK, \Ev::FLAG_NOINOTIFY, \Ev::FLAG_SIGNALFD, \Ev::FLAG_NOSIGMASK); //todo support
expectedArguments(\EvLoop::__construct(), 0, \Ev::FLAG_AUTO,\Ev::FLAG_NOENV,\Ev::FLAG_FORKCHECK,\Ev::FLAG_NOINOTIFY,\Ev::FLAG_SIGNALFD,\Ev::FLAG_NOSIGMASK); //todo support
expectedArguments(\DatePeriod::__construct(), 3, \DatePeriod::EXCLUDE_START_DATE | \DatePeriod::INCLUDE_END_DATE); //todo support multiple signatures
expectedArguments(\Ev::run(), 0, \Ev::FLAG_AUTO, \Ev::FLAG_NOENV, \Ev::FLAG_FORKCHECK, \Ev::FLAG_NOINOTIFY, \Ev::FLAG_SIGNALFD, \Ev::FLAG_NOSIGMASK);
expectedArguments(\EvLoop::run(), 0, \Ev::RUN_NOWAIT, \Ev::RUN_ONCE);
expectedArguments(\EvLoop::defaultLoop(), 0, \Ev::FLAG_AUTO, \Ev::FLAG_NOENV, \Ev::FLAG_FORKCHECK, \Ev::FLAG_NOINOTIFY, \Ev::FLAG_SIGNALFD, \Ev::FLAG_NOSIGMASK);
expectedArguments(\Event::pending(), 0, \Event::READ | \Event::WRITE | \Event::TIMEOUT | \Event::SIGNAL);
expectedArguments(\Ev::run(), 0, \Ev::FLAG_AUTO,\Ev::FLAG_NOENV,\Ev::FLAG_FORKCHECK,\Ev::FLAG_NOINOTIFY,\Ev::FLAG_SIGNALFD,\Ev::FLAG_NOSIGMASK);
expectedArguments(\EvLoop::run(), 0, \Ev::RUN_NOWAIT,\Ev::RUN_ONCE);
expectedArguments(\EvLoop::defaultLoop(), 0, \Ev::FLAG_AUTO,\Ev::FLAG_NOENV,\Ev::FLAG_FORKCHECK,\Ev::FLAG_NOINOTIFY,\Ev::FLAG_SIGNALFD,\Ev::FLAG_NOSIGMASK);
expectedArguments(\Event::pending(), 0, \Event::READ|\Event::WRITE|\Event::TIMEOUT|\Event::SIGNAL);
expectedArguments(\EventBase::loop(), 0, \EventBase::LOOP_ONCE, \EventBase::LOOP_NONBLOCK, \EventBase::NOLOCK, \EventBase::STARTUP_IOCP, \EventBase::NO_CACHE_TIME, \EventBase::EPOLL_USE_CHANGELIST);
expectedArguments(\extension_loaded(), 0, 'amqp', 'apache', 'apc', 'apd', 'bbcode', 'bcmath', 'bcompiler', 'bz2', 'cairo', 'calendar', 'chdb', 'classkit', 'com', 'crack', 'ctype', 'cubrid', 'curl', 'cyrus', 'dba', 'dbase', 'dbplus', 'dbx', 'dio', 'dom', 'dotnet', 'eio', 'enchant', 'ev', 'event', 'exif', 'expect', 'fam', 'fbsql', 'fdf', 'fileinfo', 'filepro', 'filter', 'fribidi', 'ftp', 'gearman', 'gender', 'geoip', 'gettext', 'gmagick', 'gmp', 'gnupg', 'gupnp', 'haru', 'htscanner', 'pecl_http', 'hyperwave', 'hwapi', 'interbase', 'ibm_db2', 'iconv', 'id3', 'informix', 'iisfunc', 'gd', 'imagick', 'imap', 'inclued', 'ingres', 'inotify', 'intl', 'java', 'json', 'judy', 'kadm5', 'ktaglib', 'lapack', 'ldap', 'libevent', 'libxml', 'lua', 'lzf', 'mailparse', 'maxdb', 'mbstring', 'mcrypt', 'mcve', 'memcache', 'memcached', 'memtrack', 'mhash', 'ming', 'mnogosearch', 'mongo', 'mqseries', 'msession', 'msql', 'mssql', 'mysql', 'mysqli', 'mysqlnd', 'mysqlnd_memcache', 'mysqlnd_ms', 'mysqlnd_mux', 'mysqlnd_qc', 'mysqlnd_uh', 'ncurses', 'net_gopher', 'newt', 'notes', 'nsapi', 'oauth', 'oci8', 'oggvorbis', 'openal', 'openssl', 'ovrimos', 'paradox', 'parsekit', 'pcntl', 'pcre', 'pdflib', 'pdo', 'pdo_4d', 'pdo_cubrid', 'pdo_dblib', 'pdo_firebird', 'pdo_ibm', 'pdo_informix', 'pdo_mysql', 'pdo_oci', 'pdo_odbc', 'pdo_pgsql', 'pdo_sqlite', 'pdo_sqlsrv', 'pdo_pgsql', 'phar', 'posix', 'printer', 'proctitle', 'ps', 'pspell', 'pthreads', 'qtdom', 'quickhash', 'radius', 'rar', 'readline', 'recode', 'rpmreader', 'rrd', 'runkit', 'sam', 'sca', 'scream', 'sca_sdo', 'sysvmsg', 'session', 'session_pgsql', 'shmop', 'simplexml', 'snmp', 'soap', 'sockets', 'solr', 'sphinx', 'spl_types', 'spplus', 'sqlite', 'sqlite3', 'sqlsrv', 'ssdeep', 'ssh2', 'stats', 'stomp', 'svm', 'svn', 'swf', 'swish', 'sybase', 'taint', 'tcpwrap', 'tidy', 'tokenizer', 'tokyo_tyrant', 'trader', 'odbc', 'v8js', 'varnish', 'vpopmail', 'w32api', 'wddx', 'weakref', 'win32ps', 'win32service', 'wincache', 'xattr', 'xdiff', 'xhprof', 'xml', 'xmlreader', 'xmlrpc', 'xmlwriter', 'xsl', 'xslt', 'yaf', 'yaml', 'yaz', 'zip', 'zlib');
expectedArguments(\extension_loaded(), 0, 'amqp', 'apache', 'apc', 'apd', 'bbcode', 'bcmath', 'bcompiler', 'bz2', 'cairo', 'calendar', 'chdb', 'classkit', 'com', 'crack', 'ctype', 'cubrid', 'curl', 'cyrus', 'dba', 'dbase', 'dbplus', 'dbx', 'dio', 'dom', 'dotnet', 'eio', 'enchant', 'ev', 'event', 'exif', 'expect', 'fam', 'fbsql', 'fdf', 'fileinfo', 'filepro', 'filter', 'fribidi', 'ftp', 'gearman', 'gender', 'geoip', 'gettext', 'gmagick', 'gmp', 'gnupg', 'gupnp', 'haru', 'htscanner', 'pecl_http', 'hyperwave', 'hwapi', 'interbase', 'ibm_db2', 'iconv', 'id3', 'informix', 'iisfunc', 'gd', 'imagick', 'imap', 'inclued', 'ingres', 'inotify', 'intl', 'java', 'json', 'judy', 'kadm5', 'ktaglib', 'lapack', 'ldap', 'libevent', 'libxml', 'lua', 'lzf', 'mailparse', 'maxdb', 'mbstring', 'mcrypt', 'mcve', 'memcache', 'memcached', 'memtrack', 'mhash', 'ming', 'mnogosearch', 'mongo', 'mqseries', 'msession', 'msql', 'mssql', 'mysql', 'mysqli', 'mysqlnd', 'mysqlnd_memcache', 'mysqlnd_ms', 'mysqlnd_mux', 'mysqlnd_qc', 'mysqlnd_uh', 'ncurses', 'net_gopher', 'newt', 'notes', 'nsapi', 'oauth', 'oci8', 'oggvorbis', 'openal', 'openssl', 'ovrimos', 'paradox', 'parsekit', 'pcntl', 'pcre', 'pdflib', 'pdo', 'pdo_4d', 'pdo_cubrid', 'pdo_dblib', 'pdo_firebird', 'pdo_ibm', 'pdo_informix', 'pdo_mysql', 'pdo_oci', 'pdo_odbc', 'pdo_pgsql', 'pdo_sqlite', 'pdo_sqlsrv', 'pdo_pgsql', 'phar', 'posix', 'printer', 'proctitle', 'ps', 'pspell', 'pthreads', 'qtdom', 'quickhash', 'radius', 'rar', 'readline', 'recode', 'rpmreader', 'rrd', 'runkit', 'sam', 'sca', 'scream', 'sca_sdo', 'sysvmsg', 'session', 'session_pgsql', 'shmop', 'simplexml', 'snmp', 'soap', 'sockets', 'solr', 'sphinx', 'spl_types', 'spplus', 'sqlite', 'sqlite3', 'sqlsrv', 'ssdeep', 'ssh2', 'stats', 'stomp', 'svm', 'svn', 'swf', 'swish', 'sybase', 'taint', 'tcpwrap', 'tidy', 'tokenizer', 'tokyo_tyrant', 'trader', 'odbc', 'v8js', 'varnish', 'vpopmail', 'w32api', 'wddx', 'weakref', 'win32ps', 'win32service', 'wincache', 'xattr', 'xdiff', 'xhprof', 'xml', 'xmlreader', 'xmlrpc', 'xmlwriter', 'xsl', 'xslt', 'yaf', 'yaml', 'yaz', 'zip', 'zlib');
registerArgumentsSet('error_levels', E_ALL | E_ERROR | E_WARNING | E_PARSE | E_NOTICE | E_STRICT | E_RECOVERABLE_ERROR | E_DEPRECATED | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE | E_USER_DEPRECATED);
registerArgumentsSet('error_levels', E_ALL|E_ERROR|E_WARNING|E_PARSE|E_NOTICE|E_STRICT|E_RECOVERABLE_ERROR|E_DEPRECATED|E_CORE_ERROR|E_CORE_WARNING|E_COMPILE_ERROR|E_COMPILE_WARNING|E_USER_ERROR|E_USER_WARNING|E_USER_NOTICE|E_USER_DEPRECATED);
expectedArguments(\error_reporting(), 0, argumentsSet('error_levels'));
expectedReturnValues(\error_reporting(), argumentsSet('error_levels'));
registerArgumentsSet('user_error_levels', E_USER_NOTICE, E_USER_WARNING, E_USER_ERROR, E_USER_DEPRECATED);
registerArgumentsSet('user_error_levels', E_USER_NOTICE,E_USER_WARNING,E_USER_ERROR,E_USER_DEPRECATED);
expectedArguments(\trigger_error(), 1, argumentsSet('user_error_levels'));
expectedArguments(\user_error(), 1, argumentsSet('user_error_levels'));
expectedArguments(\ftp_get(), 3, FTP_ASCII, FTP_BINARY);
expectedArguments(\ftp_fget(), 3, FTP_ASCII, FTP_BINARY);
expectedArguments(\ftp_put(), 3, FTP_ASCII, FTP_BINARY);
expectedArguments(\ftp_fput(), 3, FTP_ASCII, FTP_BINARY);
expectedArguments(\ftp_get(), 3, FTP_ASCII,FTP_BINARY);
expectedArguments(\ftp_fget(), 3, FTP_ASCII,FTP_BINARY);
expectedArguments(\ftp_put(), 3, FTP_ASCII,FTP_BINARY);
expectedArguments(\ftp_fput(), 3, FTP_ASCII,FTP_BINARY);
expectedArguments(\fopen(), 1, 'r', 'r+', 'w', 'w+', 'a', 'a+', 'x', 'x+', 'c', 'c+', 'e');
expectedArguments(\popen(), 1, 'r', 'r+', 'w', 'w+', 'a', 'a+', 'x', 'x+', 'c', 'c+', 'e');
expectedArguments(\SplFileInfo::openFile(), 0, 'r', 'r+', 'w', 'w+', 'a', 'a+', 'x', 'x+', 'c', 'c+', 'e');
expectedArguments(\htmlentities(), 1, ENT_COMPAT | ENT_QUOTES | ENT_NOQUOTES | ENT_IGNORE | ENT_SUBSTITUTE | ENT_DISALLOWED | ENT_HTML401 | ENT_XML1 | ENT_XHTML | ENT_HTML5);
expectedArguments(\htmlspecialchars(), 1, ENT_COMPAT | ENT_QUOTES | ENT_NOQUOTES | ENT_IGNORE | ENT_SUBSTITUTE | ENT_DISALLOWED | ENT_HTML401 | ENT_XML1 | ENT_XHTML | ENT_HTML5);
expectedArguments(\html_entity_decode(), 1, ENT_COMPAT | ENT_QUOTES | ENT_NOQUOTES | ENT_HTML401 | ENT_XML1 | ENT_XHTML | ENT_HTML5);
expectedArguments(\htmlentities(), 1, ENT_COMPAT | ENT_QUOTES | ENT_NOQUOTES | ENT_IGNORE | ENT_SUBSTITUTE | ENT_DISALLOWED | ENT_HTML401 | ENT_XML1 | ENT_XHTML | ENT_HTML5);
expectedArguments(\htmlspecialchars(), 1, ENT_COMPAT | ENT_QUOTES | ENT_NOQUOTES | ENT_IGNORE | ENT_SUBSTITUTE | ENT_DISALLOWED | ENT_HTML401 | ENT_XML1 | ENT_XHTML | ENT_HTML5);
expectedArguments(\html_entity_decode(), 1, ENT_COMPAT | ENT_QUOTES | ENT_NOQUOTES | ENT_HTML401 | ENT_XML1 | ENT_XHTML | ENT_HTML5);
expectedArguments(\htmlspecialchars_decode(), 1, ENT_COMPAT | ENT_QUOTES | ENT_NOQUOTES | ENT_HTML401 | ENT_XML1 | ENT_XHTML | ENT_HTML5);
expectedArguments(\parse_url(), 1, PHP_URL_SCHEME, PHP_URL_HOST, PHP_URL_PORT, PHP_URL_USER, PHP_URL_PASS, PHP_URL_PATH, PHP_URL_QUERY, PHP_URL_FRAGMENT);
expectedArguments(\iconv_mime_decode(), 1, ICONV_MIME_DECODE_STRICT, ICONV_MIME_DECODE_CONTINUE_ON_ERROR);
expectedArguments(\iconv_mime_decode_headers(), 1, ICONV_MIME_DECODE_STRICT, ICONV_MIME_DECODE_CONTINUE_ON_ERROR);
expectedArguments(\Imagick::setImageAlphaChannel(), 0, \Imagick::ALPHACHANNEL_ACTIVATE, \Imagick::ALPHACHANNEL_BACKGROUND, \Imagick::ALPHACHANNEL_COPY, \Imagick::ALPHACHANNEL_DEACTIVATE, \Imagick::ALPHACHANNEL_EXTRACT, \Imagick::ALPHACHANNEL_FLATTEN, \Imagick::ALPHACHANNEL_DEACTIVATE, \Imagick::ALPHACHANNEL_OPAQUE, \Imagick::ALPHACHANNEL_REMOVE, \Imagick::ALPHACHANNEL_RESET, \Imagick::ALPHACHANNEL_SET, \Imagick::ALPHACHANNEL_SHAPE, \Imagick::ALPHACHANNEL_TRANSPARENT, \Imagick::ALPHACHANNEL_UNDEFINED); //todo introduce byPrefix
expectedArguments(\Imagick::montageImage(), 3, \Imagick::MONTAGEMODE_FRAME, \Imagick::MONTAGEMODE_UNFRAME, \Imagick::MONTAGEMODE_CONCATENATE);
expectedArguments(\iconv_mime_decode(), 1, ICONV_MIME_DECODE_STRICT,ICONV_MIME_DECODE_CONTINUE_ON_ERROR);
expectedArguments(\iconv_mime_decode_headers(), 1, ICONV_MIME_DECODE_STRICT,ICONV_MIME_DECODE_CONTINUE_ON_ERROR);
expectedArguments(\Imagick::setImageAlphaChannel(), 0, \Imagick::ALPHACHANNEL_ACTIVATE,\Imagick::ALPHACHANNEL_BACKGROUND,\Imagick::ALPHACHANNEL_COPY,\Imagick::ALPHACHANNEL_DEACTIVATE,\Imagick::ALPHACHANNEL_EXTRACT,\Imagick::ALPHACHANNEL_FLATTEN,\Imagick::ALPHACHANNEL_DEACTIVATE,\Imagick::ALPHACHANNEL_OPAQUE,\Imagick::ALPHACHANNEL_REMOVE,\Imagick::ALPHACHANNEL_RESET,\Imagick::ALPHACHANNEL_SET,\Imagick::ALPHACHANNEL_SHAPE,\Imagick::ALPHACHANNEL_TRANSPARENT,\Imagick::ALPHACHANNEL_UNDEFINED); //todo introduce byPrefix
expectedArguments(\Imagick::montageImage(), 3, \Imagick::MONTAGEMODE_FRAME,\Imagick::MONTAGEMODE_UNFRAME,\Imagick::MONTAGEMODE_CONCATENATE);
registerArgumentsSet('imagetypes',
IMAGETYPE_GIF,
@ -240,132 +228,132 @@ namespace PHPSTORM_META {
expectedReturnValues(\expect_expectl(), \EXP_EOF, \EXP_TIMEOUT, \EXP_FULLBUFFER);
expectedArguments(\imap_close(), 1, CL_EXPUNGE);
expectedArguments(\event_base_loop(), 1, EVLOOP_ONCE | EVLOOP_NONBLOCK);
expectedArguments(\mb_convert_case(), 1, MB_CASE_UPPER, MB_CASE_LOWER, MB_CASE_TITLE, MB_CASE_FOLD, MB_CASE_UPPER_SIMPLE, MB_CASE_LOWER_SIMPLE, MB_CASE_TITLE_SIMPLE, MB_CASE_FOLD_SIMPLE);
expectedArguments(\mb_get_info(), 0, 'all', 'http_output', 'http_input', 'internal_encoding', 'func_overload');
expectedArguments(\mb_language(), 0, 'Japanese', 'ja', 'English', 'en', 'uni');
expectedArguments(\event_base_loop(), 1, EVLOOP_ONCE|EVLOOP_NONBLOCK);
expectedArguments(\mb_convert_case(), 1, MB_CASE_UPPER,MB_CASE_LOWER,MB_CASE_TITLE,MB_CASE_FOLD,MB_CASE_UPPER_SIMPLE,MB_CASE_LOWER_SIMPLE,MB_CASE_TITLE_SIMPLE,MB_CASE_FOLD_SIMPLE);
expectedArguments(\mb_get_info(), 0, 'all', 'http_output', 'http_input', 'internal_encoding', 'func_overload');
expectedArguments(\mb_language(), 0, 'Japanese', 'ja', 'English', 'en', 'uni');
expectedArguments(\MemcachePool::add(), 2, MEMCACHE_COMPRESSED);
expectedArguments(\MemcachePool::set(), 2, MEMCACHE_COMPRESSED);
expectedArguments(\MemcachePool::replace(), 2, MEMCACHE_COMPRESSED);
expectedArguments(\MongoDB\Driver\ReadPreference::__construct(), 0, \MongoDB\Driver\ReadPreference::RP_PRIMARY, \MongoDB\Driver\ReadPreference::RP_PRIMARY_PREFERRED, \MongoDB\Driver\ReadPreference::RP_SECONDARY, \MongoDB\Driver\ReadPreference::RP_SECONDARY_PREFERRED, \MongoDB\Driver\ReadPreference::RP_NEAREST);
expectedArguments(\mysqli::begin_transaction(), 0, MYSQLI_TRANS_START_READ_ONLY, MYSQLI_TRANS_START_READ_WRITE, MYSQLI_TRANS_START_WITH_CONSISTENT_SNAPSHOT);
expectedArguments(\mysqli::commit(), 0, MYSQLI_TRANS_COR_AND_CHAIN | MYSQLI_TRANS_COR_AND_NO_CHAIN | MYSQLI_TRANS_COR_NO_RELEASE | MYSQLI_TRANS_COR_RELEASE);
expectedArguments(\mysqli::real_connect(), 6, MYSQLI_CLIENT_COMPRESS | MYSQLI_CLIENT_FOUND_ROWS | MYSQLI_CLIENT_IGNORE_SPACE | MYSQLI_CLIENT_INTERACTIVE | MYSQLI_CLIENT_SSL | MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT);
expectedArguments(\mysqli::rollback(), 0, MYSQLI_TRANS_COR_AND_CHAIN | MYSQLI_TRANS_COR_AND_NO_CHAIN | MYSQLI_TRANS_COR_NO_RELEASE | MYSQLI_TRANS_COR_RELEASE);
expectedArguments(\mysqli_begin_transaction(), 1, MYSQLI_TRANS_START_READ_ONLY, MYSQLI_TRANS_START_READ_WRITE, MYSQLI_TRANS_START_WITH_CONSISTENT_SNAPSHOT);
expectedArguments(\mysqli_report(), 0, MYSQLI_REPORT_OFF, MYSQLI_REPORT_ERROR, MYSQLI_REPORT_STRICT, MYSQLI_REPORT_INDEX, MYSQLI_REPORT_ALL);
expectedArguments(\mysqli_real_connect(), 7, MYSQLI_CLIENT_COMPRESS | MYSQLI_CLIENT_FOUND_ROWS | MYSQLI_CLIENT_IGNORE_SPACE | MYSQLI_CLIENT_INTERACTIVE | MYSQLI_CLIENT_SSL | MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT);
expectedArguments(\MongoDB\Driver\ReadPreference::__construct(), 0, \MongoDB\Driver\ReadPreference::RP_PRIMARY,\MongoDB\Driver\ReadPreference::RP_PRIMARY_PREFERRED,\MongoDB\Driver\ReadPreference::RP_SECONDARY,\MongoDB\Driver\ReadPreference::RP_SECONDARY_PREFERRED,\MongoDB\Driver\ReadPreference::RP_NEAREST);
expectedArguments(\mysqli::begin_transaction(), 0, MYSQLI_TRANS_START_READ_ONLY,MYSQLI_TRANS_START_READ_WRITE,MYSQLI_TRANS_START_WITH_CONSISTENT_SNAPSHOT);
expectedArguments(\mysqli::commit(), 0, MYSQLI_TRANS_COR_AND_CHAIN|MYSQLI_TRANS_COR_AND_NO_CHAIN|MYSQLI_TRANS_COR_NO_RELEASE|MYSQLI_TRANS_COR_RELEASE);
expectedArguments(\mysqli::real_connect(), 6, MYSQLI_CLIENT_COMPRESS|MYSQLI_CLIENT_FOUND_ROWS|MYSQLI_CLIENT_IGNORE_SPACE|MYSQLI_CLIENT_INTERACTIVE|MYSQLI_CLIENT_SSL|MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT);
expectedArguments(\mysqli::rollback(), 0, MYSQLI_TRANS_COR_AND_CHAIN|MYSQLI_TRANS_COR_AND_NO_CHAIN|MYSQLI_TRANS_COR_NO_RELEASE|MYSQLI_TRANS_COR_RELEASE);
expectedArguments(\mysqli_begin_transaction(), 1, MYSQLI_TRANS_START_READ_ONLY,MYSQLI_TRANS_START_READ_WRITE,MYSQLI_TRANS_START_WITH_CONSISTENT_SNAPSHOT);
expectedArguments(\mysqli_report(), 0, MYSQLI_REPORT_OFF,MYSQLI_REPORT_ERROR,MYSQLI_REPORT_STRICT,MYSQLI_REPORT_INDEX,MYSQLI_REPORT_ALL);
expectedArguments(\mysqli_real_connect(), 7, MYSQLI_CLIENT_COMPRESS|MYSQLI_CLIENT_FOUND_ROWS|MYSQLI_CLIENT_IGNORE_SPACE|MYSQLI_CLIENT_INTERACTIVE|MYSQLI_CLIENT_SSL|MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT);
registerArgumentsSet("mysqliAttributesSet", MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH, MYSQLI_STMT_ATTR_CURSOR_TYPE, MYSQLI_STMT_ATTR_PREFETCH_ROWS);
expectedArguments(\mysqli_stmt::attr_set(), 0, argumentsSet("mysqliAttributesSet"));
expectedArguments(\mysqli_stmt_attr_set(), 1, argumentsSet("mysqliAttributesSet"));
expectedArguments(\ob_start(), 2, \PHP_OUTPUT_HANDLER_CLEANABLE | \PHP_OUTPUT_HANDLER_FLUSHABLE | PHP_OUTPUT_HANDLER_REMOVABLE, PHP_OUTPUT_HANDLER_STDFLAGS);
expectedArguments(\ob_start(), 2, \PHP_OUTPUT_HANDLER_CLEANABLE | \PHP_OUTPUT_HANDLER_FLUSHABLE | PHP_OUTPUT_HANDLER_REMOVABLE, PHP_OUTPUT_HANDLER_STDFLAGS);
expectedArguments(\OCI_Lob::flush(), 0, OCI_LOB_BUFFER_FREE);
expectedArguments(\OCILob::flush(), 0, OCI_LOB_BUFFER_FREE);
expectedArguments(\oci_execute(), 1, OCI_COMMIT_ON_SUCCESS, OCI_DESCRIBE_ONLY, OCI_NO_AUTO_COMMIT);
expectedArguments(\odbc_binmode(), 1, ODBC_BINMODE_PASSTHRU, ODBC_BINMODE_RETURN, ODBC_BINMODE_CONVERT);
expectedArguments(\openlog(), 1, LOG_CONS | LOG_NDELAY | LOG_ODELAY | LOG_PERROR | LOG_PID);
expectedArguments(\openlog(), 2, LOG_USER, LOG_AUTH, LOG_AUTHPRIV, LOG_CRON, LOG_DAEMON, LOG_KERN, LOG_LOCAL0, LOG_LOCAL1, LOG_LOCAL2, LOG_LOCAL3, LOG_LOCAL4, LOG_LOCAL5, LOG_LOCAL6, LOG_LOCAL7, LOG_LPR, LOG_MAIL, LOG_NEWS, LOG_SYSLOG, LOG_UUCP);
expectedArguments(\openssl_pkcs7_verify(), 1, PKCS7_TEXT | PKCS7_BINARY | PKCS7_NOINTERN | PKCS7_NOVERIFY | PKCS7_NOCHAIN | PKCS7_NOCERTS | PKCS7_NOATTR | PKCS7_DETACHED | PKCS7_NOSIGS);
expectedArguments(\openssl_pkcs7_sign(), 5, PKCS7_TEXT | PKCS7_BINARY | PKCS7_NOINTERN | PKCS7_NOVERIFY | PKCS7_NOCHAIN | PKCS7_NOCERTS | PKCS7_NOATTR | PKCS7_DETACHED | PKCS7_NOSIGS);
expectedArguments(\openssl_pkcs7_encrypt(), 4, PKCS7_TEXT | PKCS7_BINARY | PKCS7_NOINTERN | PKCS7_NOVERIFY | PKCS7_NOCHAIN | PKCS7_NOCERTS | PKCS7_NOATTR | PKCS7_DETACHED | PKCS7_NOSIGS);
expectedArguments(\preg_match(), 3, PREG_OFFSET_CAPTURE | PREG_UNMATCHED_AS_NULL);
expectedArguments(\preg_match_all(), 3, PREG_PATTERN_ORDER | PREG_SET_ORDER | PREG_OFFSET_CAPTURE | PREG_UNMATCHED_AS_NULL);
expectedArguments(\oci_execute(), 1, OCI_COMMIT_ON_SUCCESS,OCI_DESCRIBE_ONLY,OCI_NO_AUTO_COMMIT);
expectedArguments(\odbc_binmode(), 1, ODBC_BINMODE_PASSTHRU,ODBC_BINMODE_RETURN,ODBC_BINMODE_CONVERT);
expectedArguments(\openlog(), 1, LOG_CONS|LOG_NDELAY|LOG_ODELAY|LOG_PERROR|LOG_PID);
expectedArguments(\openlog(), 2, LOG_USER,LOG_AUTH,LOG_AUTHPRIV,LOG_CRON,LOG_DAEMON,LOG_KERN,LOG_LOCAL0,LOG_LOCAL1,LOG_LOCAL2,LOG_LOCAL3,LOG_LOCAL4,LOG_LOCAL5,LOG_LOCAL6,LOG_LOCAL7,LOG_LPR,LOG_MAIL,LOG_NEWS,LOG_SYSLOG,LOG_UUCP);
expectedArguments(\openssl_pkcs7_verify(), 1, PKCS7_TEXT|PKCS7_BINARY|PKCS7_NOINTERN|PKCS7_NOVERIFY|PKCS7_NOCHAIN|PKCS7_NOCERTS|PKCS7_NOATTR|PKCS7_DETACHED|PKCS7_NOSIGS);
expectedArguments(\openssl_pkcs7_sign(), 5, PKCS7_TEXT|PKCS7_BINARY|PKCS7_NOINTERN|PKCS7_NOVERIFY|PKCS7_NOCHAIN|PKCS7_NOCERTS|PKCS7_NOATTR|PKCS7_DETACHED|PKCS7_NOSIGS);
expectedArguments(\openssl_pkcs7_encrypt(), 4, PKCS7_TEXT|PKCS7_BINARY|PKCS7_NOINTERN|PKCS7_NOVERIFY|PKCS7_NOCHAIN|PKCS7_NOCERTS|PKCS7_NOATTR|PKCS7_DETACHED|PKCS7_NOSIGS);
expectedArguments(\preg_match(), 3, PREG_OFFSET_CAPTURE|PREG_UNMATCHED_AS_NULL);
expectedArguments(\preg_match_all(), 3, PREG_PATTERN_ORDER|PREG_SET_ORDER|PREG_OFFSET_CAPTURE|PREG_UNMATCHED_AS_NULL);
expectedArguments(\preg_split(), 3, PREG_SPLIT_NO_EMPTY);
expectedArguments(\preg_grep(), 2, PREG_GREP_INVERT);
expectedArguments(\PDO::query(), 1, \PDO::ATTR_FETCH_CATALOG_NAMES, \PDO::ATTR_FETCH_TABLE_NAMES, \PDO::ATTR_DEFAULT_FETCH_MODE, \PDO::ATTR_STRINGIFY_FETCHES);
expectedArguments(\PDO::setAttribute(), 0, \PDO::ATTR_CASE, \PDO::ATTR_ERRMODE, \PDO::ATTR_ORACLE_NULLS, \PDO::ATTR_STRINGIFY_FETCHES, \PDO::ATTR_STATEMENT_CLASS, \PDO::ATTR_TIMEOUT, \PDO::ATTR_AUTOCOMMIT, \PDO::ATTR_EMULATE_PREPARES, \PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, \PDO::ATTR_DEFAULT_FETCH_MODE);
expectedArguments(\PDOStatement::bindColumn(), 2, \PDO::PARAM_NULL | \PDO::PARAM_INT | \PDO::PARAM_STR | \PDO::PARAM_LOB | \PDO::PARAM_STMT | \PDO::PARAM_BOOL | \PDO::PARAM_STR_NATL | \PDO::PARAM_STR_CHAR | \PDO::ATTR_DEFAULT_STR_PARAM | \PDO::PARAM_INPUT_OUTPUT | \PDO::PARAM_EVT_ALLOC | \PDO::PARAM_EVT_FREE | \PDO::PARAM_EVT_EXEC_PRE | \PDO::PARAM_EVT_EXEC_POST | \PDO::PARAM_EVT_FETCH_PRE | \PDO::PARAM_EVT_FETCH_POST | \PDO::PARAM_EVT_NORMALIZE);
expectedArguments(\PDO::query(), 1, \PDO::ATTR_FETCH_CATALOG_NAMES,\PDO::ATTR_FETCH_TABLE_NAMES,\PDO::ATTR_DEFAULT_FETCH_MODE,\PDO::ATTR_STRINGIFY_FETCHES);
expectedArguments(\PDO::setAttribute(), 0, \PDO::ATTR_CASE,\PDO::ATTR_ERRMODE,\PDO::ATTR_ORACLE_NULLS,\PDO::ATTR_STRINGIFY_FETCHES, \PDO::ATTR_STATEMENT_CLASS, \PDO::ATTR_TIMEOUT, \PDO::ATTR_AUTOCOMMIT, \PDO::ATTR_EMULATE_PREPARES, \PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, \PDO::ATTR_DEFAULT_FETCH_MODE);
expectedArguments(\PDOStatement::bindColumn(), 2, \PDO::PARAM_NULL|\PDO::PARAM_INT|\PDO::PARAM_STR|\PDO::PARAM_LOB|\PDO::PARAM_STMT|\PDO::PARAM_BOOL|\PDO::PARAM_STR_NATL|\PDO::PARAM_STR_CHAR|\PDO::ATTR_DEFAULT_STR_PARAM|\PDO::PARAM_INPUT_OUTPUT|\PDO::PARAM_EVT_ALLOC|\PDO::PARAM_EVT_FREE|\PDO::PARAM_EVT_EXEC_PRE|\PDO::PARAM_EVT_EXEC_POST|\PDO::PARAM_EVT_FETCH_PRE|\PDO::PARAM_EVT_FETCH_POST|\PDO::PARAM_EVT_NORMALIZE);
expectedArguments(\PDOStatement::fetch(), 0, \PDO::FETCH_ASSOC, \PDO::FETCH_BOTH, \PDO::FETCH_BOUND, \PDO::FETCH_CLASS, \PDO::FETCH_INTO, \PDO::FETCH_LAZY, \PDO::FETCH_NAMED, \PDO::FETCH_NUM, \PDO::FETCH_OBJ, \PDO::FETCH_PROPS_LATE);
expectedArguments(\PDOStatement::fetch(), 1, \PDO::FETCH_ORI_NEXT, \PDO::FETCH_ORI_PRIOR, \PDO::FETCH_ORI_FIRST, \PDO::FETCH_ORI_LAST, \PDO::FETCH_ORI_ABS, \PDO::FETCH_ORI_REL);
expectedArguments(\PDOStatement::setFetchMode(), 0, \PDO::ATTR_FETCH_CATALOG_NAMES, \PDO::ATTR_FETCH_TABLE_NAMES, \PDO::ATTR_DEFAULT_FETCH_MODE, \PDO::ATTR_STRINGIFY_FETCHES);
expectedArguments(\Phar::__construct(), 1, \FilesystemIterator::KEY_AS_PATHNAME | \FilesystemIterator::CURRENT_AS_FILEINFO);
expectedArguments(\PharData::__construct(), 1, \FilesystemIterator::KEY_AS_PATHNAME | \FilesystemIterator::CURRENT_AS_FILEINFO);
expectedArguments(\posix_mknod(), 1, POSIX_S_IFREG, POSIX_S_IFCHR, POSIX_S_IFBLK, POSIX_S_IFIFO, POSIX_S_IFSOCK);
expectedArguments(\posix_access(), 1, POSIX_F_OK | POSIX_R_OK | POSIX_W_OK | POSIX_X_OK);
expectedArguments(\pspell_new(), 4, PSPELL_FAST, PSPELL_NORMAL, PSPELL_BAD_SPELLERS, PSPELL_RUN_TOGETHER);
expectedArguments(\pspell_new_personal(), 5, PSPELL_FAST, PSPELL_NORMAL, PSPELL_BAD_SPELLERS, PSPELL_RUN_TOGETHER);
expectedArguments(\SoapServer::setPersistence(), 0, SOAP_PERSISTENCE_REQUEST, SOAP_PERSISTENCE_SESSION);
expectedArguments(\socket_recv(), 3, MSG_OOB | MSG_PEEK | MSG_WAITALL | MSG_DONTWAIT);
expectedArguments(\socket_send(), 3, MSG_OOB | MSG_EOR | MSG_EOF | MSG_DONTROUTE);
expectedArguments(\socket_recvfrom(), 3, MSG_OOB | MSG_PEEK | MSG_WAITALL | MSG_DONTWAIT);
expectedArguments(\socket_sendto(), 3, MSG_OOB | MSG_EOR | MSG_EOF | MSG_DONTROUTE);
expectedArguments(\PDOStatement::setFetchMode(), 0, \PDO::ATTR_FETCH_CATALOG_NAMES,\PDO::ATTR_FETCH_TABLE_NAMES,\PDO::ATTR_DEFAULT_FETCH_MODE,\PDO::ATTR_STRINGIFY_FETCHES);
expectedArguments(\Phar::__construct(), 1, \FilesystemIterator::KEY_AS_PATHNAME|\FilesystemIterator::CURRENT_AS_FILEINFO);
expectedArguments(\PharData::__construct(), 1, \FilesystemIterator::KEY_AS_PATHNAME|\FilesystemIterator::CURRENT_AS_FILEINFO);
expectedArguments(\posix_mknod(), 1, POSIX_S_IFREG,POSIX_S_IFCHR,POSIX_S_IFBLK,POSIX_S_IFIFO,POSIX_S_IFSOCK);
expectedArguments(\posix_access(), 1, POSIX_F_OK|POSIX_R_OK|POSIX_W_OK|POSIX_X_OK);
expectedArguments(\pspell_new(), 4, PSPELL_FAST,PSPELL_NORMAL,PSPELL_BAD_SPELLERS,PSPELL_RUN_TOGETHER);
expectedArguments(\pspell_new_personal(), 5, PSPELL_FAST,PSPELL_NORMAL,PSPELL_BAD_SPELLERS,PSPELL_RUN_TOGETHER);
expectedArguments(\SoapServer::setPersistence(), 0, SOAP_PERSISTENCE_REQUEST,SOAP_PERSISTENCE_SESSION);
expectedArguments(\socket_recv(), 3, MSG_OOB|MSG_PEEK|MSG_WAITALL|MSG_DONTWAIT);
expectedArguments(\socket_send(), 3, MSG_OOB|MSG_EOR|MSG_EOF|MSG_DONTROUTE);
expectedArguments(\socket_recvfrom(), 3, MSG_OOB|MSG_PEEK|MSG_WAITALL|MSG_DONTWAIT);
expectedArguments(\socket_sendto(), 3, MSG_OOB|MSG_EOR|MSG_EOF|MSG_DONTROUTE);
expectedArguments(\RecursiveIteratorIterator::__construct(), 1, \RecursiveIteratorIterator::LEAVES_ONLY, \RecursiveIteratorIterator::SELF_FIRST, \RecursiveIteratorIterator::CHILD_FIRST);
expectedArguments(\RecursiveIteratorIterator::__construct(), 1, \RecursiveIteratorIterator::LEAVES_ONLY,\RecursiveIteratorIterator::SELF_FIRST,\RecursiveIteratorIterator::CHILD_FIRST);
expectedArguments(\RecursiveIteratorIterator::__construct(), 2, \RecursiveIteratorIterator::CATCH_GET_CHILD);
expectedArguments(\RecursiveCachingIterator::__construct(), 1, \CachingIterator::CALL_TOSTRING | \CachingIterator::TOSTRING_USE_KEY | \CachingIterator::TOSTRING_USE_CURRENT | \CachingIterator::TOSTRING_USE_INNER);
expectedArguments(\RegexIterator::__construct(), 2, \RegexIterator::MATCH, \RegexIterator::GET_MATCH, \RegexIterator::ALL_MATCHES, \RegexIterator::SPLIT, \RegexIterator::REPLACE);
expectedArguments(\RecursiveCachingIterator::__construct(), 1, \CachingIterator::CALL_TOSTRING|\CachingIterator::TOSTRING_USE_KEY|\CachingIterator::TOSTRING_USE_CURRENT|\CachingIterator::TOSTRING_USE_INNER);
expectedArguments(\RegexIterator::__construct(), 2, \RegexIterator::MATCH,\RegexIterator::GET_MATCH,\RegexIterator::ALL_MATCHES,\RegexIterator::SPLIT,\RegexIterator::REPLACE);
expectedArguments(\RegexIterator::__construct(), 3, \RegexIterator::USE_KEY);
expectedArguments(\RegexIterator::__construct(), 4, \RegexIterator::USE_KEY);
expectedArguments(\RegexIterator::setMode(), 0, \RegexIterator::MATCH, \RegexIterator::GET_MATCH, \RegexIterator::ALL_MATCHES, \RegexIterator::SPLIT, \RegexIterator::REPLACE);
expectedArguments(\RegexIterator::setMode(), 0, \RegexIterator::MATCH,\RegexIterator::GET_MATCH,\RegexIterator::ALL_MATCHES,\RegexIterator::SPLIT,\RegexIterator::REPLACE);
expectedArguments(\RegexIterator::setFlags(), 0, \RegexIterator::USE_KEY);
expectedArguments(\RecursiveRegexIterator::__construct(), 2, \RegexIterator::MATCH, \RegexIterator::GET_MATCH, \RegexIterator::ALL_MATCHES, \RegexIterator::SPLIT, \RegexIterator::REPLACE);
expectedArguments(\RecursiveRegexIterator::__construct(), 2, \RegexIterator::MATCH,\RegexIterator::GET_MATCH,\RegexIterator::ALL_MATCHES,\RegexIterator::SPLIT,\RegexIterator::REPLACE);
expectedArguments(\RecursiveRegexIterator::__construct(), 3, \RegexIterator::USE_KEY);
expectedArguments(\RecursiveRegexIterator::__construct(), 4, \RegexIterator::USE_KEY);
expectedArguments(\RecursiveTreeIterator::__construct(), 1, \RecursiveTreeIterator::BYPASS_KEY);
expectedArguments(\RecursiveTreeIterator::__construct(), 2, \CachingIterator::CATCH_GET_CHILD);
expectedArguments(\RecursiveTreeIterator::__construct(), 3, \RecursiveIteratorIterator::SELF_FIRST);
expectedArguments(\ArrayObject::__construct(), 1, \ArrayObject::STD_PROP_LIST | \ArrayObject::ARRAY_AS_PROPS);
expectedArguments(\ArrayIterator::__construct(), 1, \ArrayIterator::STD_PROP_LIST | \ArrayIterator::ARRAY_AS_PROPS);
expectedArguments(\ArrayObject::__construct(), 1, \ArrayObject::STD_PROP_LIST|\ArrayObject::ARRAY_AS_PROPS);
expectedArguments(\ArrayIterator::__construct(), 1, \ArrayIterator::STD_PROP_LIST|\ArrayIterator::ARRAY_AS_PROPS);
expectedArguments(\FilesystemIterator::setFlags(), 0, \FilesystemIterator::CURRENT_MODE_MASK, \FilesystemIterator::CURRENT_AS_PATHNAME, \FilesystemIterator::CURRENT_AS_FILEINFO, \FilesystemIterator::CURRENT_AS_SELF, \FilesystemIterator::KEY_MODE_MASK, \FilesystemIterator::KEY_AS_PATHNAME, \FilesystemIterator::FOLLOW_SYMLINKS, \FilesystemIterator::KEY_AS_FILENAME, \FilesystemIterator::NEW_CURRENT_AND_KEY, \FilesystemIterator::SKIP_DOTS, \FilesystemIterator::UNIX_PATHS, \FilesystemIterator::OTHER_MODE_MASK);
expectedArguments(\FilesystemIterator::setFlags(), 0, \FilesystemIterator::CURRENT_MODE_MASK,\FilesystemIterator::CURRENT_AS_PATHNAME,\FilesystemIterator::CURRENT_AS_FILEINFO,\FilesystemIterator::CURRENT_AS_SELF,\FilesystemIterator::KEY_MODE_MASK,\FilesystemIterator::KEY_AS_PATHNAME,\FilesystemIterator::FOLLOW_SYMLINKS,\FilesystemIterator::KEY_AS_FILENAME,\FilesystemIterator::NEW_CURRENT_AND_KEY,\FilesystemIterator::SKIP_DOTS,\FilesystemIterator::UNIX_PATHS,\FilesystemIterator::OTHER_MODE_MASK);
registerArgumentsSet("splFileObjectFlags", \SplFileObject::DROP_NEW_LINE | \SplFileObject::READ_AHEAD | \SplFileObject::SKIP_EMPTY | \SplFileObject::READ_CSV);
registerArgumentsSet("splFileObjectFlags", \SplFileObject::DROP_NEW_LINE|\SplFileObject::READ_AHEAD|\SplFileObject::SKIP_EMPTY|\SplFileObject::READ_CSV);
expectedArguments(\SplFileObject::setFlags(), 0, argumentsSet("splFileObjectFlags"));
expectedArguments(\SplFileObject::flock(), 0, LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB);
expectedArguments(\SplDoublyLinkedList::setIteratorMode(), 0, \SplDoublyLinkedList::IT_MODE_LIFO | \SplDoublyLinkedList::IT_MODE_FIFO | \SplDoublyLinkedList::IT_MODE_DELETE | \SplDoublyLinkedList::IT_MODE_KEEP);
expectedArguments(\SplQueue::setIteratorMode(), 0, \SplDoublyLinkedList::IT_MODE_LIFO | \SplDoublyLinkedList::IT_MODE_FIFO | \SplDoublyLinkedList::IT_MODE_DELETE | \SplDoublyLinkedList::IT_MODE_KEEP);
expectedArguments(\SplStack::setIteratorMode(), 0, \SplDoublyLinkedList::IT_MODE_LIFO | \SplDoublyLinkedList::IT_MODE_FIFO | \SplDoublyLinkedList::IT_MODE_DELETE | \SplDoublyLinkedList::IT_MODE_KEEP);
expectedArguments(\SplPriorityQueue::setExtractFlags(), 0, \SplPriorityQueue::EXTR_DATA, \SplPriorityQueue::EXTR_PRIORITY, \SplPriorityQueue::EXTR_BOTH);
registerArgumentsSet("multipleIteratorFlags", \MultipleIterator::MIT_NEED_ANY | \MultipleIterator::MIT_NEED_ALL | \MultipleIterator::MIT_KEYS_NUMERIC | \MultipleIterator::MIT_KEYS_ASSOC);
expectedArguments(\SplDoublyLinkedList::setIteratorMode(), 0, \SplDoublyLinkedList::IT_MODE_LIFO|\SplDoublyLinkedList::IT_MODE_FIFO|\SplDoublyLinkedList::IT_MODE_DELETE|\SplDoublyLinkedList::IT_MODE_KEEP);
expectedArguments(\SplQueue::setIteratorMode(), 0, \SplDoublyLinkedList::IT_MODE_LIFO|\SplDoublyLinkedList::IT_MODE_FIFO|\SplDoublyLinkedList::IT_MODE_DELETE|\SplDoublyLinkedList::IT_MODE_KEEP);
expectedArguments(\SplStack::setIteratorMode(), 0, \SplDoublyLinkedList::IT_MODE_LIFO|\SplDoublyLinkedList::IT_MODE_FIFO|\SplDoublyLinkedList::IT_MODE_DELETE|\SplDoublyLinkedList::IT_MODE_KEEP);
expectedArguments(\SplPriorityQueue::setExtractFlags(), 0, \SplPriorityQueue::EXTR_DATA,\SplPriorityQueue::EXTR_PRIORITY,\SplPriorityQueue::EXTR_BOTH);
registerArgumentsSet("multipleIteratorFlags", \MultipleIterator::MIT_NEED_ANY|\MultipleIterator::MIT_NEED_ALL|\MultipleIterator::MIT_KEYS_NUMERIC|\MultipleIterator::MIT_KEYS_ASSOC);
expectedArguments(\MultipleIterator::setFlags(), 0, argumentsSet("multipleIteratorFlags"));
expectedArguments(\SQLite3::open(), 1, SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE | SQLITE3_OPEN_READONLY);
expectedArguments(\SQLite3::open(), 1, SQLITE3_OPEN_READWRITE|SQLITE3_OPEN_CREATE|SQLITE3_OPEN_READONLY);
expectedArguments(\SQLite3::createFunction(), 3, SQLITE3_DETERMINISTIC);
expectedArguments(\SQLite3::openBlob(), 4, SQLITE3_OPEN_READONLY, SQLITE3_OPEN_READWRITE);
expectedArguments(\SQLite3::__construct(), 1, SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE | SQLITE3_OPEN_READONLY);
expectedArguments(\SQLite3Result::fetchArray(), 0, SQLITE3_ASSOC, SQLITE3_NUM, SQLITE3_BOTH);
expectedArguments(\SQLite3::openBlob(), 4, SQLITE3_OPEN_READONLY,SQLITE3_OPEN_READWRITE);
expectedArguments(\SQLite3::__construct(), 1, SQLITE3_OPEN_READWRITE|SQLITE3_OPEN_CREATE|SQLITE3_OPEN_READONLY);
expectedArguments(\SQLite3Result::fetchArray(), 0, SQLITE3_ASSOC,SQLITE3_NUM,SQLITE3_BOTH);
expectedArguments(\ssh2_fingerprint(), 1, SSH2_FINGERPRINT_MD5 | SSH2_FINGERPRINT_SHA1 | SSH2_FINGERPRINT_HEX | SSH2_FINGERPRINT_RAW);
expectedArguments(\imagecropauto(), 1, IMG_CROP_BLACK, IMG_CROP_DEFAULT, IMG_CROP_SIDES, IMG_CROP_THRESHOLD, IMG_CROP_TRANSPARENT, IMG_CROP_WHITE);
expectedArguments(\srand(), 1, MT_RAND_MT19937, MT_RAND_PHP);
expectedArguments(\mt_srand(), 1, MT_RAND_MT19937, MT_RAND_PHP);
expectedArguments(\round(), 2, PHP_ROUND_HALF_UP, PHP_ROUND_HALF_DOWN, PHP_ROUND_HALF_EVEN, PHP_ROUND_HALF_ODD);
expectedArguments(\file_put_contents(), 2, FILE_USE_INCLUDE_PATH | FILE_APPEND | LOCK_EX);
expectedArguments(\stream_socket_client(), 4, STREAM_CLIENT_CONNECT | STREAM_CLIENT_ASYNC_CONNECT | STREAM_CLIENT_PERSISTENT);
expectedArguments(\stream_socket_server(), 3, STREAM_SERVER_BIND | STREAM_SERVER_LISTEN);
expectedArguments(\stream_socket_recvfrom(), 2, STREAM_OOB | STREAM_PEEK);
expectedArguments(\ssh2_fingerprint(), 1, SSH2_FINGERPRINT_MD5|SSH2_FINGERPRINT_SHA1|SSH2_FINGERPRINT_HEX|SSH2_FINGERPRINT_RAW);
expectedArguments(\imagecropauto(), 1, IMG_CROP_BLACK,IMG_CROP_DEFAULT,IMG_CROP_SIDES,IMG_CROP_THRESHOLD,IMG_CROP_TRANSPARENT,IMG_CROP_WHITE);
expectedArguments(\srand(), 1, MT_RAND_MT19937,MT_RAND_PHP);
expectedArguments(\mt_srand(), 1, MT_RAND_MT19937,MT_RAND_PHP);
expectedArguments(\round(), 2, PHP_ROUND_HALF_UP,PHP_ROUND_HALF_DOWN,PHP_ROUND_HALF_EVEN,PHP_ROUND_HALF_ODD);
expectedArguments(\file_put_contents(), 2, FILE_USE_INCLUDE_PATH|FILE_APPEND|LOCK_EX);
expectedArguments(\stream_socket_client(), 4, STREAM_CLIENT_CONNECT|STREAM_CLIENT_ASYNC_CONNECT|STREAM_CLIENT_PERSISTENT);
expectedArguments(\stream_socket_server(), 3, STREAM_SERVER_BIND|STREAM_SERVER_LISTEN);
expectedArguments(\stream_socket_recvfrom(), 2, STREAM_OOB|STREAM_PEEK);
expectedArguments(\stream_socket_sendto(), 2, STREAM_OOB);
expectedArguments(\stream_wrapper_register(), 2, STREAM_IS_URL);
expectedArguments(\stream_register_wrapper(), 2, STREAM_IS_URL);
expectedArguments(\fnmatch(), 2, FNM_NOESCAPE | FNM_PATHNAME | FNM_PERIOD | FNM_CASEFOLD);
expectedArguments(\glob(), 1, GLOB_MARK | GLOB_NOSORT | GLOB_NOCHECK | GLOB_NOESCAPE | GLOB_BRACE | GLOB_ONLYDIR | GLOB_ERR);
expectedArguments(\count(), 1, COUNT_NORMAL, COUNT_RECURSIVE);
expectedArguments(\array_filter(), 2, ARRAY_FILTER_USE_KEY, ARRAY_FILTER_USE_BOTH);
expectedArguments(\fnmatch(), 2, FNM_NOESCAPE|FNM_PATHNAME|FNM_PERIOD|FNM_CASEFOLD);
expectedArguments(\glob(), 1, GLOB_MARK|GLOB_NOSORT|GLOB_NOCHECK|GLOB_NOESCAPE|GLOB_BRACE|GLOB_ONLYDIR|GLOB_ERR);
expectedArguments(\count(), 1, COUNT_NORMAL,COUNT_RECURSIVE);
expectedArguments(\array_filter(), 2, ARRAY_FILTER_USE_KEY,ARRAY_FILTER_USE_BOTH);
expectedArguments(\svn_checkout(), 4, SVN_NON_RECURSIVE);
expectedArguments(\svn_log(), 4, SVN_OMIT_MESSAGES | SVN_DISCOVER_CHANGED_PATHS | SVN_STOP_ON_COPY);
expectedArguments(\svn_status(), 1, \Svn::NON_RECURSIVE | \Svn::ALL | \Svn::SHOW_UPDATES | \Svn::NO_IGNORE | \Svn::IGNORE_EXTERNALS);
expectedArguments(\msg_receive(), 6, MSG_IPC_NOWAIT | MSG_EXCEPT | MSG_NOERROR);
expectedArguments(\svn_log(), 4, SVN_OMIT_MESSAGES|SVN_DISCOVER_CHANGED_PATHS|SVN_STOP_ON_COPY);
expectedArguments(\svn_status(), 1, \Svn::NON_RECURSIVE|\Svn::ALL|\Svn::SHOW_UPDATES|\Svn::NO_IGNORE|\Svn::IGNORE_EXTERNALS);
expectedArguments(\msg_receive(), 6, MSG_IPC_NOWAIT|MSG_EXCEPT|MSG_NOERROR);
expectedArguments(\token_get_all(), 1, TOKEN_PARSE);
expectedArguments(\V8Js::executeString(), 2, \V8Js::FLAG_NONE, \V8Js::FLAG_FORCE_ARRAY, \V8Js::FLAG_PROPAGATE_PHP_EXCEPTIONS);
expectedArguments(\V8Js::executeScript(), 1, \V8Js::FLAG_NONE, \V8Js::FLAG_FORCE_ARRAY, \V8Js::FLAG_PROPAGATE_PHP_EXCEPTIONS);
expectedArguments(\V8Js::executeString(), 2, \V8Js::FLAG_NONE,\V8Js::FLAG_FORCE_ARRAY,\V8Js::FLAG_PROPAGATE_PHP_EXCEPTIONS);
expectedArguments(\V8Js::executeScript(), 1, \V8Js::FLAG_NONE,\V8Js::FLAG_FORCE_ARRAY,\V8Js::FLAG_PROPAGATE_PHP_EXCEPTIONS);
expectedArguments(\ZipArchive::open(), 1, \ZipArchive::OVERWRITE | \ZipArchive::CREATE | \ZipArchive::EXCL | \ZipArchive::CHECKCONS);
expectedArguments(\ZipArchive::addGlob(), 1, GLOB_MARK | GLOB_NOSORT | GLOB_NOCHECK | GLOB_NOESCAPE | GLOB_BRACE | GLOB_ONLYDIR | GLOB_ERR);
expectedArguments(\ZipArchive::open(), 1, \ZipArchive::OVERWRITE|\ZipArchive::CREATE|\ZipArchive::EXCL|\ZipArchive::CHECKCONS);
expectedArguments(\ZipArchive::addGlob(), 1, GLOB_MARK|GLOB_NOSORT|GLOB_NOCHECK|GLOB_NOESCAPE|GLOB_BRACE|GLOB_ONLYDIR|GLOB_ERR);
expectedArguments(\ZipArchive::getArchiveComment(), 0, \ZipArchive::FL_UNCHANGED);
expectedArguments(\ZipArchive::getCommentIndex(), 1, \ZipArchive::FL_UNCHANGED);
expectedArguments(\ZipArchive::getCommentName(), 1, \ZipArchive::FL_UNCHANGED);
expectedArguments(\ZipArchive::statName(), 1, \ZipArchive::FL_UNCHANGED | \ZipArchive::FL_NOCASE);
expectedArguments(\ZipArchive::statName(), 1, \ZipArchive::FL_UNCHANGED|\ZipArchive::FL_NOCASE);
expectedArguments(\ZipArchive::statIndex(), 1, \ZipArchive::FL_UNCHANGED);
expectedArguments(\ZipArchive::locateName(), 1, \ZipArchive::FL_NOCASE);
expectedArguments(\ZipArchive::getNameIndex(), 1, \ZipArchive::FL_NOCASE);
expectedArguments(\ZipArchive::getFromName(), 1, \ZipArchive::FL_NOCASE);
expectedArguments(\ZipArchive::getFromIndex(), 1, \ZipArchive::FL_NOCASE);
expectedArguments(\ZMQSocket::recv(), 0, \ZMQ::MODE_DONTWAIT, \ZMQ::MODE_SNDMORE, \ZMQ::MODE_NOBLOCK);
expectedArguments(\ZMQSocket::recv(), 0, \ZMQ::MODE_DONTWAIT,\ZMQ::MODE_SNDMORE,\ZMQ::MODE_NOBLOCK);
registerArgumentsSet('ini_values', 'allow_call_time_pass_reference', 'allow_url_fopen', 'allow_url_include', 'always_populate_raw_post_data',
'apc.cache_by_default', 'apc.enabled', 'apc.enable_cli', 'apc.file_update_protection', 'apc.filters', 'apc.gc_ttl', 'apc.include_once_override', 'apc.localcache', 'apc.localcache.size', 'apc.max_file_size', 'apc.mmap_file_mask', 'apc.num_files_hint', 'apc.optimization', 'apc.report_autofilter', 'apc.rfc1867', 'apc.rfc1867_freq', 'apc.rfc1867_name', 'apc.rfc1867_prefix', 'apc.shm_segments', 'apc.shm_size', 'apc.slam_defense', 'apc.stat', 'apc.stat_ctime', 'apc.ttl', 'apc.user_entries_hint', 'apc.user_ttl', 'apc.write_lock',
@ -568,9 +556,9 @@ namespace PHPSTORM_META {
expectedArguments(\idn_to_utf8(), 2, INTL_IDNA_VARIANT_UTS46, INTL_IDNA_VARIANT_2003);
expectedArguments(\debug_print_backtrace(), 0, DEBUG_BACKTRACE_IGNORE_ARGS);
expectedArguments(\debug_backtrace(), 0, DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS);
expectedArguments(\debug_backtrace(), 0, DEBUG_BACKTRACE_PROVIDE_OBJECT|DEBUG_BACKTRACE_IGNORE_ARGS);
expectedArguments(\geoip_database_info(), 0, GEOIP_COUNTRY_EDITION, GEOIP_REGION_EDITION_REV0, GEOIP_CITY_EDITION_REV0, GEOIP_ORG_EDITION, GEOIP_ISP_EDITION, GEOIP_CITY_EDITION_REV1, GEOIP_REGION_EDITION_REV1, GEOIP_PROXY_EDITION, GEOIP_ASNUM_EDITION, GEOIP_NETSPEED_EDITION, GEOIP_DOMAIN_EDITION);
expectedArguments(\geoip_database_info(), 0, GEOIP_COUNTRY_EDITION,GEOIP_REGION_EDITION_REV0,GEOIP_CITY_EDITION_REV0,GEOIP_ORG_EDITION,GEOIP_ISP_EDITION,GEOIP_CITY_EDITION_REV1,GEOIP_REGION_EDITION_REV1,GEOIP_PROXY_EDITION,GEOIP_ASNUM_EDITION,GEOIP_NETSPEED_EDITION,GEOIP_DOMAIN_EDITION);
expectedArguments(\count_chars(), 1, 0, 1, 2, 3, 4);
expectedArguments(\cubrid_fetch_array(), 1, CUBRID_NUM, CUBRID_ASSOC, CUBRID_BOTH);
expectedArguments(\imagelayereffect(), 1, IMG_EFFECT_REPLACE, IMG_EFFECT_ALPHABLEND, IMG_EFFECT_NORMAL, IMG_EFFECT_OVERLAY, IMG_EFFECT_MULTIPLY);
@ -609,16 +597,14 @@ namespace PHPSTORM_META {
expectedArguments(\SolrClient::setServlet(), 0, \SolrClient::SEARCH_SERVLET_TYPE, \SolrClient::UPDATE_SERVLET_TYPE, \SolrClient::THREADS_SERVLET_TYPE, \SolrClient::PING_SERVLET_TYPE, \SolrClient::TERMS_SERVLET_TYPE);
expectedArguments(\stream_socket_shutdown(), 1, STREAM_SHUT_RD, STREAM_SHUT_WR, STREAM_SHUT_RDWR);
function expectedReturnValues($functionReference, $values)
{
function expectedReturnValues($functionReference, $values) {
return "expectedReturnValues " . $functionReference . ": " . $values;
}
expectedReturnValues(\fseek(), 0, -1);
expectedReturnValues(\SplFileObject::getFlags(), argumentsSet("splFileObjectFlags"));
expectedReturnValues(\MultipleIterator::getFlags(), argumentsSet("multipleIteratorFlags"));
expectedReturnValues(\json_last_error(), JSON_ERROR_NONE, JSON_ERROR_DEPTH, JSON_ERROR_STATE_MISMATCH, JSON_ERROR_CTRL_CHAR, JSON_ERROR_SYNTAX, JSON_ERROR_UTF8, JSON_ERROR_RECURSION, JSON_ERROR_INF_OR_NAN, JSON_ERROR_UNSUPPORTED_TYPE, JSON_ERROR_INVALID_PROPERTY_NAME, JSON_ERROR_UTF16);
expectedReturnValues(\preg_last_error(), PREG_NO_ERROR, PREG_INTERNAL_ERROR, PREG_BACKTRACK_LIMIT_ERROR, PREG_RECURSION_LIMIT_ERROR, PREG_BAD_UTF8_ERROR, PREG_BAD_UTF8_OFFSET_ERROR);
expectedReturnValues(\preg_last_error(), PREG_NO_ERROR,PREG_INTERNAL_ERROR,PREG_BACKTRACK_LIMIT_ERROR,PREG_RECURSION_LIMIT_ERROR,PREG_BAD_UTF8_ERROR,PREG_BAD_UTF8_OFFSET_ERROR);
expectedArguments(\password_hash(), 1, PASSWORD_DEFAULT, PASSWORD_BCRYPT, PASSWORD_ARGON2I, PASSWORD_ARGON2ID);
expectedArguments(\password_needs_rehash(), 1, PASSWORD_DEFAULT, PASSWORD_BCRYPT, PASSWORD_ARGON2I, PASSWORD_ARGON2ID);
@ -681,6 +667,10 @@ namespace PHPSTORM_META {
expectedArguments(\array_unique(), 1, SORT_REGULAR, SORT_NUMERIC, SORT_STRING, SORT_LOCALE_STRING);
expectedReturnValues(\PHP_OS_FAMILY, 'Windows', 'Linux', 'Darwin', 'BSD', 'Solaris', 'Unknown');
expectedReturnValues(\PHP_OS, 'Darwin', 'Linux', 'Windows', 'WIN32', 'WINNT', 'FreeBSD', 'CYGWIN_NT-5.1', 'HP-UX', 'IRIX64', 'NetBSD', 'OpenBSD', 'OpenBSD');
expectedReturnValues(\PHP_SAPI, 'cli', 'phpdbg', 'embed', 'apache', 'apache2handler', 'cgi-fcgi', 'cli-server', 'fpm-fcgi', 'litespeed');
/**
* Use this constant to mark the function with an argument on the specified position as an exit point
*
@ -696,8 +686,7 @@ namespace PHPSTORM_META {
*
* {@see ANY_ARGUMENT}
*/
function exitPoint($functionReference)
{
function exitPoint($functionReference) {
return "exitPoint " . $functionReference;
}

View File

@ -38,10 +38,5 @@ use Attribute;
#[Attribute(Attribute::TARGET_FUNCTION|Attribute::TARGET_METHOD|Attribute::TARGET_PARAMETER|Attribute::TARGET_PROPERTY)]
class ExpectedValues
{
public function __construct(
array $values = [],
array $flags = [],
string $valuesFromClass = null,
string $flagsFromClass = null
) {}
public function __construct(array $values = [], array $flags = [], string $valuesFromClass = null, string $flagsFromClass = null) {}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,394 +0,0 @@
<?php
// Start of oci8 v.3
/**
* OCI8 LOB functionality for large binary (BLOB) and character (CLOB) objects.
* @link https://php.net/manual/en/class.OCI-Lob.php
* @since 8.0
*/
class OCILob
{
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Returns large object's contents
* @link https://php.net/manual/en/oci-lob.load.php
* @return string|false The contents of the object, or <b>FALSE</b> on errors.
*/
public function load() {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Returns the current position of internal pointer of large object
* @link https://php.net/manual/en/oci-lob.tell.php
* @return int|false Current position of a LOB's internal pointer or <b>FALSE</b> if an
* error occurred.
*/
public function tell() {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Truncates large object
* @link https://php.net/manual/en/oci-lob.truncate.php
* @param int $length [optional] <p>
* If provided, this method will truncate the LOB to
* <i>length</i> bytes. Otherwise, it will completely
* purge the LOB.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function truncate($length = 0) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Erases a specified portion of the internal LOB data
* @link https://php.net/manual/en/oci-lob.erase.php
* @param int $offset [optional]
* @param int $length [optional]
* @return int|false The actual number of characters/bytes erased or <b>FALSE</b> on failure.
*/
public function erase($offset = null, $length = null) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Flushes/writes buffer of the LOB to the server
* @link https://php.net/manual/en/oci-lob.flush.php
* @param int $flag [optional] <p>
* By default, resources are not freed, but using flag
* <b>OCI_LOB_BUFFER_FREE</b> you can do it explicitly.
* Be sure you know what you're doing - next read/write operation to the
* same part of LOB will involve a round-trip to the server and initialize
* new buffer resources. It is recommended to use
* <b>OCI_LOB_BUFFER_FREE</b> flag only when you are not
* going to work with the LOB anymore.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
* </p>
* <p>
* Returns <b>FALSE</b> if buffering was not enabled or an error occurred.
*/
public function flush($flag = null) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Changes current state of buffering for the large object
* @link https://php.net/manual/en/oci-lob.setbuffering.php
* @param bool $on_off <p>
* <b>TRUE</b> for on and <b>FALSE</b> for off.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. Repeated calls to this method with the same flag will
* return <b>TRUE</b>.
*/
public function setbuffering($on_off) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Returns current state of buffering for the large object
* @link https://php.net/manual/en/oci-lob.getbuffering.php
* @return bool <b>FALSE</b> if buffering for the large object is off and <b>TRUE</b> if
* buffering is used.
*/
public function getbuffering() {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Moves the internal pointer to the beginning of the large object
* @link https://php.net/manual/en/oci-lob.rewind.php
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function rewind() {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Reads part of the large object
* @link https://php.net/manual/en/oci-lob.read.php
* @param int $length <p>
* The length of data to read, in bytes. Large values will be rounded down to 1 MB.
* </p>
* @return string|false The contents as a string, or <b>FALSE</b> on failure.
*/
public function read($length) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Tests for end-of-file on a large object's descriptor
* @link https://php.net/manual/en/oci-lob.eof.php
* @return bool <b>TRUE</b> if internal pointer of large object is at the end of LOB.
* Otherwise returns <b>FALSE</b>.
*/
public function eof() {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Sets the internal pointer of the large object
* @link https://php.net/manual/en/oci-lob.seek.php
* @param int $offset <p>
* Indicates the amount of bytes, on which internal pointer should be
* moved from the position, pointed by <i>whence</i>.
* </p>
* @param int $whence [optional] <p>
* May be one of:
* <b>OCI_SEEK_SET</b> - sets the position equal to
* <i>offset</i>
* <b>OCI_SEEK_CUR</b> - adds <i>offset</i>
* bytes to the current position
* <b>OCI_SEEK_END</b> - adds <i>offset</i>
* bytes to the end of large object (use negative value to move to a position
* before the end of large object)
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function seek($offset, $whence = OCI_SEEK_SET) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Writes data to the large object
* @link https://php.net/manual/en/oci-lob.write.php
* @param string $data <p>
* The data to write in the LOB.
* </p>
* @param int $length [optional] <p>
* If this parameter is given, writing will stop after
* <i>length</i> bytes have been written or the end of
* <i>data</i> is reached, whichever comes first.
* </p>
* @return int|false The number of bytes written or <b>FALSE</b> on failure.
*/
public function write($data, $length = null) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Appends data from the large object to another large object
* @link https://php.net/manual/en/oci-lob.append.php
* @param OCILob $lob_from <p>
* The copied LOB.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function append(OCILob $lob_from) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Returns size of large object
* @link https://php.net/manual/en/oci-lob.size.php
* @return int|false Length of large object value or <b>FALSE</b> on failure.
* Empty objects have zero length.
*/
public function size() {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Alias of {@see OCILob::export}
* @link https://php.net/manual/en/oci-lob.writetofile.php
* @param $filename
* @param $start [optional]
* @param $length [optional]
* @return bool TRUE on success or FALSE on failure.
*/
public function writetofile($filename, $start, $length) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Exports LOB's contents to a file
* @link https://php.net/manual/en/oci-lob.export.php
* @param string $filename <p>
* Path to the file.
* </p>
* @param int $start [optional] <p>
* Indicates from where to start exporting.
* </p>
* @param int $length [optional] <p>
* Indicates the length of data to be exported.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function export($filename, $start = null, $length = null) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Imports file data to the LOB
* @link https://php.net/manual/en/oci-lob.import.php
* @param string $filename <p>
* Path to the file.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function import($filename) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Writes a temporary large object
* @link https://php.net/manual/en/oci-lob.writetemporary.php
* @param string $data <p>
* The data to write.
* </p>
* @param int $lob_type [optional] <p>
* Can be one of the following:
* <b>OCI_TEMP_BLOB</b> is used to create temporary BLOBs
* <b>OCI_TEMP_CLOB</b> is used to create
* temporary CLOBs
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function writeTemporary($data, $lob_type = OCI_TEMP_CLOB) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Closes LOB descriptor
* @link https://php.net/manual/en/oci-lob.close.php
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function close() {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Saves data to the large object
* @link https://php.net/manual/en/oci-lob.save.php
* @param string $data <p>
* The data to be saved.
* </p>
* @param int $offset [optional] <p>
* Can be used to indicate offset from the beginning of the large object.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function save($data, $offset = null) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Alias of {@see OCILob::import}
* @link https://php.net/manual/en/oci-lob.savefile.php
* @param $filename
* @return bool Return true on success and false on failure
*/
public function savefile($filename) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Frees resources associated with the LOB descriptor
* @link https://php.net/manual/en/oci-lob.free.php
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function free() {}
}
/**
* OCI8 Collection functionality.
* @link https://php.net/manual/en/class.OCICollection.php
* @since 8.0
*/
class OCICollection
{
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Appends element to the collection
* @link https://php.net/manual/en/oci-collection.append.php
* @param mixed $value <p>
* The value to be added to the collection. Can be a string or a number.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function append($value) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Returns value of the element
* @link https://php.net/manual/en/oci-collection.getelem.php
* @param int $index <p>
* The element index. First index is 0.
* </p>
* @return mixed <b>FALSE</b> if such element doesn't exist; <b>NULL</b> if element is <b>NULL</b>;
* string if element is column of a string datatype or number if element is
* numeric field.
*/
public function getelem($index) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Assigns a value to the element of the collection
* @link https://php.net/manual/en/oci-collection.assignelem.php
* @param int $index <p>
* The element index. First index is 0.
* </p>
* @param mixed $value <p>
* Can be a string or a number.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function assignelem($index, $value) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Assigns a value to the collection from another existing collection
* @link https://php.net/manual/en/oci-collection.assign.php
* @param OCICollection $from <p>
* An instance of OCICollection.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function assign(OCICollection $from) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Returns size of the collection
* @link https://php.net/manual/en/oci-collection.size.php
* @return int|false The number of elements in the collection or <b>FALSE</b> on error.
*/
public function size() {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Returns the maximum number of elements in the collection
* @link https://php.net/manual/en/oci-collection.max.php
* @return int|false The maximum number as an integer, or <b>FALSE</b> on errors.
* </p>
* <p>
* If the returned value is 0, then the number of elements is not limited.
*/
public function max() {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Trims elements from the end of the collection
* @link https://php.net/manual/en/oci-collection.trim.php
* @param int $num <p>
* The number of elements to be trimmed.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function trim($num) {}
/**
* (PHP 5, PECL OCI8 &gt;= 1.1.0)<br/>
* Frees the resources associated with the collection object
* @link https://php.net/manual/en/oci-collection.free.php
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function free() {}
}
/**
* (PHP 7.2 &gt;= 7.2.14, PHP 8, PHP 7 &gt;= 7.3.1, PHP 8, PECL OCI8 &gt;= 2.2.0)<br/>
* Sets a millisecond timeout for database calls
* @link https://php.net/manual/en/function.oci-set-call-timout.php
* @param resource $connection <p>An Oracle connection identifier,
* returned by {@see oci_connect}, {@see oci_pconnect},
* or {@see oci_new_connect}.</p>
* @param int $time_out <p>The maximum time in milliseconds that any
* single round-trip between PHP and Oracle Database may take.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function oci_set_call_timeout($connection, int $time_out) {}
/**
* (PHP 7 &gt;== 7.2.14, PHP 8, PHP 7 &gt;= 7.3.1, PHP 8, PECL OCI8 &gt;= 2.2.0)
* Sets the database operation
* @link https://www.php.net/manual/en/function.oci-set-db-operation.php
* @param resource $connection <p>An Oracle connection identifier,
* returned by {@see oci_connect}, {@see oci_pconnect},
* or {@see oci_new_connect}.</p>
* @param string $dbop <p>User chosen string.</p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function oci_set_db_operation($connection, string $dbop) {}

View File

@ -1,8 +1,120 @@
<?php
// Start of odbc v.1.0
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
define('ODBC_TYPE', "unixODBC");
define('ODBC_BINMODE_PASSTHRU', 0);
define('ODBC_BINMODE_RETURN', 1);
define('ODBC_BINMODE_CONVERT', 2);
define('SQL_ODBC_CURSORS', 110);
define('SQL_CUR_USE_DRIVER', 2);
define('SQL_CUR_USE_IF_NEEDED', 0);
define('SQL_CUR_USE_ODBC', 1);
define('SQL_CONCURRENCY', 7);
define('SQL_CONCUR_READ_ONLY', 1);
define('SQL_CONCUR_LOCK', 2);
define('SQL_CONCUR_ROWVER', 3);
define('SQL_CONCUR_VALUES', 4);
define('SQL_CURSOR_TYPE', 6);
define('SQL_CURSOR_FORWARD_ONLY', 0);
define('SQL_CURSOR_KEYSET_DRIVEN', 1);
define('SQL_CURSOR_DYNAMIC', 2);
define('SQL_CURSOR_STATIC', 3);
define('SQL_KEYSET_SIZE', 8);
define('SQL_FETCH_FIRST', 2);
define('SQL_FETCH_NEXT', 1);
define('SQL_CHAR', 1);
define('SQL_VARCHAR', 12);
define('SQL_LONGVARCHAR', -1);
define('SQL_DECIMAL', 3);
define('SQL_NUMERIC', 2);
define('SQL_BIT', -7);
define('SQL_TINYINT', -6);
define('SQL_SMALLINT', 5);
define('SQL_INTEGER', 4);
define('SQL_BIGINT', -5);
define('SQL_REAL', 7);
define('SQL_FLOAT', 6);
define('SQL_DOUBLE', 8);
define('SQL_BINARY', -2);
define('SQL_VARBINARY', -3);
define('SQL_LONGVARBINARY', -4);
define('SQL_DATE', 9);
define('SQL_TIME', 10);
define('SQL_TIMESTAMP', 11);
define('SQL_TYPE_DATE', 91);
define('SQL_TYPE_TIME', 92);
define('SQL_TYPE_TIMESTAMP', 93);
define('SQL_WCHAR', -8);
define('SQL_WVARCHAR', -9);
define('SQL_WLONGVARCHAR', -10);
define('SQL_BEST_ROWID', 1);
define('SQL_ROWVER', 2);
define('SQL_SCOPE_CURROW', 0);
define('SQL_SCOPE_TRANSACTION', 1);
define('SQL_SCOPE_SESSION', 2);
define('SQL_NO_NULLS', 0);
define('SQL_NULLABLE', 1);
define('SQL_INDEX_UNIQUE', 0);
define('SQL_INDEX_ALL', 1);
define('SQL_ENSURE', 1);
define('SQL_QUICK', 0);
/**
* Toggle autocommit behaviour
@ -235,11 +347,7 @@ function odbc_errormsg($connection_id = null) {}
* @return resource|false an ODBC result identifier if the SQL command was executed
* successfully, or <b>FALSE</b> on error.
*/
function odbc_exec(
$connection_id,
$query_string,
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $flags = null
) {}
function odbc_exec($connection_id, $query_string, $flags = null) {}
/**
* Fetch a result row as an associative array
@ -894,63 +1002,3 @@ function odbc_do($connection_id, $query, $flags) {}
* @param $field_number
*/
function odbc_field_precision($result_id, $field_number) {}
define('ODBC_TYPE', "unixODBC");
define('ODBC_BINMODE_PASSTHRU', 0);
define('ODBC_BINMODE_RETURN', 1);
define('ODBC_BINMODE_CONVERT', 2);
define('SQL_ODBC_CURSORS', 110);
define('SQL_CUR_USE_DRIVER', 2);
define('SQL_CUR_USE_IF_NEEDED', 0);
define('SQL_CUR_USE_ODBC', 1);
define('SQL_CONCURRENCY', 7);
define('SQL_CONCUR_READ_ONLY', 1);
define('SQL_CONCUR_LOCK', 2);
define('SQL_CONCUR_ROWVER', 3);
define('SQL_CONCUR_VALUES', 4);
define('SQL_CURSOR_TYPE', 6);
define('SQL_CURSOR_FORWARD_ONLY', 0);
define('SQL_CURSOR_KEYSET_DRIVEN', 1);
define('SQL_CURSOR_DYNAMIC', 2);
define('SQL_CURSOR_STATIC', 3);
define('SQL_KEYSET_SIZE', 8);
define('SQL_FETCH_FIRST', 2);
define('SQL_FETCH_NEXT', 1);
define('SQL_CHAR', 1);
define('SQL_VARCHAR', 12);
define('SQL_LONGVARCHAR', -1);
define('SQL_DECIMAL', 3);
define('SQL_NUMERIC', 2);
define('SQL_BIT', -7);
define('SQL_TINYINT', -6);
define('SQL_SMALLINT', 5);
define('SQL_INTEGER', 4);
define('SQL_BIGINT', -5);
define('SQL_REAL', 7);
define('SQL_FLOAT', 6);
define('SQL_DOUBLE', 8);
define('SQL_BINARY', -2);
define('SQL_VARBINARY', -3);
define('SQL_LONGVARBINARY', -4);
define('SQL_DATE', 9);
define('SQL_TIME', 10);
define('SQL_TIMESTAMP', 11);
define('SQL_TYPE_DATE', 91);
define('SQL_TYPE_TIME', 92);
define('SQL_TYPE_TIMESTAMP', 93);
define('SQL_WCHAR', -8);
define('SQL_WVARCHAR', -9);
define('SQL_WLONGVARCHAR', -10);
define('SQL_BEST_ROWID', 1);
define('SQL_ROWVER', 2);
define('SQL_SCOPE_CURROW', 0);
define('SQL_SCOPE_TRANSACTION', 1);
define('SQL_SCOPE_SESSION', 2);
define('SQL_NO_NULLS', 0);
define('SQL_NULLABLE', 1);
define('SQL_INDEX_UNIQUE', 0);
define('SQL_INDEX_ALL', 1);
define('SQL_ENSURE', 1);
define('SQL_QUICK', 0);
// End of odbc v.1.0

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,105 @@
<?php
// Start of pcre v.
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Pure;
/**
* Orders results so that $matches[0] is an array of full pattern
* matches, $matches[1] is an array of strings matched by the first
* parenthesized subpattern, and so on. This flag is only used with
* <b>preg_match_all</b>.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_PATTERN_ORDER', 1);
/**
* Orders results so that $matches[0] is an array of first set of
* matches, $matches[1] is an array of second set of matches, and so
* on. This flag is only used with <b>preg_match_all</b>.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_SET_ORDER', 2);
/**
* See the description of
* <b>PREG_SPLIT_OFFSET_CAPTURE</b>.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_OFFSET_CAPTURE', 256);
/**
* This flag tells <b>preg_split</b> to return only non-empty
* pieces.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_SPLIT_NO_EMPTY', 1);
/**
* This flag tells <b>preg_split</b> to capture
* parenthesized expression in the delimiter pattern as well.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_SPLIT_DELIM_CAPTURE', 2);
/**
* If this flag is set, for every occurring match the appendant string
* offset will also be returned. Note that this changes the return
* values in an array where every element is an array consisting of the
* matched string at offset 0 and its string offset within subject at
* offset 1. This flag is only used for <b>preg_split</b>.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_SPLIT_OFFSET_CAPTURE', 4);
define('PREG_GREP_INVERT', 1);
/**
* Returned by <b>preg_last_error</b> if there were no
* errors.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_NO_ERROR', 0);
/**
* Returned by <b>preg_last_error</b> if there was an
* internal PCRE error.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_INTERNAL_ERROR', 1);
/**
* Returned by <b>preg_last_error</b> if backtrack limit was exhausted.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_BACKTRACK_LIMIT_ERROR', 2);
/**
* Returned by <b>preg_last_error</b> if recursion limit was exhausted.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_RECURSION_LIMIT_ERROR', 3);
/**
* Returned by <b>preg_last_error</b> if the last error was
* caused by malformed UTF-8 data (only when running a regex in UTF-8 mode).
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_BAD_UTF8_ERROR', 4);
/**
* Returned by <b>preg_last_error</b> if the offset didn't
* correspond to the begin of a valid UTF-8 code point (only when running
* a regex in UTF-8
* mode).
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_BAD_UTF8_OFFSET_ERROR', 5);
/**
* PCRE version and release date (e.g. "7.0 18-Dec-2006").
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PCRE_VERSION', "8.31 2012-07-06");
/**
* Perform a regular expression match
* @link https://php.net/manual/en/function.preg-match.php
@ -215,8 +310,7 @@ function preg_match(string $pattern, string $subject, &$matches, int $flags = 0,
* @return int|false|null the number of full pattern matches (which might be zero),
* or <b>FALSE</b> if an error occurred.
*/
#[LanguageLevelTypeAware(['8.0' => 'int|false'], default: 'int|false|null')]
function preg_match_all(string $pattern, string $subject, &$matches, int $flags = 0, int $offset = 0) {}
function preg_match_all(string $pattern, string $subject, &$matches, int $flags = 0, int $offset = 0): int|false|null {}
/**
* Perform a regular expression search and replace
@ -304,13 +398,7 @@ function preg_match_all(string $pattern, string $subject, &$matches, int $flags
* be returned, otherwise <i>subject</i> will be
* returned unchanged or <b>NULL</b> if an error occurred.
*/
function preg_replace(
array|string $pattern,
array|string $replacement,
array|string $subject,
int $limit = -1,
&$count
): array|string|null {}
function preg_replace(array|string $pattern, array|string $replacement, array|string $subject, int $limit = -1, &$count): array|string|null {}
/**
* Perform a regular expression search and replace using a callback
@ -381,14 +469,7 @@ function preg_replace(
* If matches are found, the new subject will be returned, otherwise
* <i>subject</i> will be returned unchanged.
*/
function preg_replace_callback(
array|string $pattern,
callable $callback,
array|string $subject,
int $limit = -1,
&$count,
#[PhpStormStubsElementAvailable(from: '7.4')] int $flags = 0
): array|string|null {}
function preg_replace_callback(array|string $pattern, callable $callback, array|string $subject, int $limit = -1, &$count): array|string|null {}
/**
* Perform a regular expression search and replace using callbacks
@ -401,13 +482,7 @@ function preg_replace_callback(
* @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(
array $pattern,
array|string $subject,
int $limit = -1,
&$count,
#[PhpStormStubsElementAvailable(from: '7.4')] int $flags = 0
): array|string|null {}
function preg_replace_callback_array(array $pattern, array|string $subject, int $limit = -1, &$count): array|string|null {}
/**
* Perform a regular expression search and replace
@ -425,13 +500,7 @@ function preg_replace_callback_array(
* is returned when <i>subject</i> is an array
* or <b>NULL</b> otherwise.
*/
function preg_filter(
array|string $pattern,
array|string $replacement,
array|string $subject,
int $limit = -1,
&$count
): array|string|null {}
function preg_filter(array|string $pattern, array|string $replacement, array|string $subject, int $limit = -1, &$count): array|string|null {}
/**
* Split string by a regular expression
@ -513,138 +582,3 @@ function preg_grep(string $pattern, array $array, int $flags = 0): array|false {
*/
#[Pure(true)]
function preg_last_error(): int {}
/**
* Returns the error message of the last PCRE regex execution
*
* @return string one of the error messages or "No error" if there is no error.
* @since 8.0
*/
#[Pure(true)]
function preg_last_error_msg(): string {}
/**
* Orders results so that $matches[0] is an array of full pattern
* matches, $matches[1] is an array of strings matched by the first
* parenthesized subpattern, and so on. This flag is only used with
* <b>preg_match_all</b>.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_PATTERN_ORDER', 1);
/**
* Returned by {@see preg_last_error()} if the last PCRE function failed due to limited JIT stack space.
* @since 7.0
*/
define('PREG_JIT_STACKLIMIT_ERROR', 6);
/**
* Orders results so that $matches[0] is an array of first set of
* matches, $matches[1] is an array of second set of matches, and so
* on. This flag is only used with <b>preg_match_all</b>.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_SET_ORDER', 2);
/**
* See the description of
* <b>PREG_SPLIT_OFFSET_CAPTURE</b>.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_OFFSET_CAPTURE', 256);
/**
* This flag tells <b>preg_split</b> to return only non-empty
* pieces.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_SPLIT_NO_EMPTY', 1);
/**
* This flag tells <b>preg_split</b> to capture
* parenthesized expression in the delimiter pattern as well.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_SPLIT_DELIM_CAPTURE', 2);
/**
* If this flag is set, for every occurring match the appendant string
* offset will also be returned. Note that this changes the return
* values in an array where every element is an array consisting of the
* matched string at offset 0 and its string offset within subject at
* offset 1. This flag is only used for <b>preg_split</b>.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_SPLIT_OFFSET_CAPTURE', 4);
define('PREG_GREP_INVERT', 1);
/**
* Returned by <b>preg_last_error</b> if there were no
* errors.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_NO_ERROR', 0);
/**
* Returned by <b>preg_last_error</b> if there was an
* internal PCRE error.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_INTERNAL_ERROR', 1);
/**
* Returned by <b>preg_last_error</b> if backtrack limit was exhausted.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_BACKTRACK_LIMIT_ERROR', 2);
/**
* Returned by <b>preg_last_error</b> if recursion limit was exhausted.
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_RECURSION_LIMIT_ERROR', 3);
/**
* Returned by <b>preg_last_error</b> if the last error was
* caused by malformed UTF-8 data (only when running a regex in UTF-8 mode).
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_BAD_UTF8_ERROR', 4);
/**
* Returned by <b>preg_last_error</b> if the offset didn't
* correspond to the begin of a valid UTF-8 code point (only when running
* a regex in UTF-8
* mode).
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PREG_BAD_UTF8_OFFSET_ERROR', 5);
/**
* This flag tells {@see preg_match()} and {@see preg_match_all()}
* to include unmatched subpatterns in <b>$matches</b> as NULL values.
* Without this flag, unmatched subpatterns are reported as empty strings,
* as if they were empty matches. Setting this flag allows to distinguish between these two cases.
* @since 7.2
*/
define('PREG_UNMATCHED_AS_NULL', 512);
/**
* PCRE version and release date (e.g. "7.0 18-Dec-2006").
* @link https://php.net/manual/en/pcre.constants.php
*/
define('PCRE_VERSION', "8.31 2012-07-06");
/**
* @since 7.3
*/
define('PCRE_VERSION_MAJOR', 10);
/**
* @since 7.3
*/
define('PCRE_VERSION_MINOR', 40);
/**
* @since 7.3
*/
define('PCRE_JIT_SUPPORT', 1);
// End of pcre v.

View File

@ -1,7 +1,3 @@
<?php
// Start of pdo_ibm v.1.2.3
function confirm_pdo_ibm_compiled() {}
// End of pdo_ibm v.1.2.3

View File

@ -1,4 +0,0 @@
<?php
// Start of pdo_mysql v.1.0.2
// End of pdo_mysql v.1.0.2

View File

@ -1,4 +0,0 @@
<?php
// Start of pdo_pgsql v.1.0.2
// End of pdo_pgsql v.1.0.2

View File

@ -1,4 +0,0 @@
<?php
// Start of pdo_sqlite v.1.0.1
// End of pdo_sqlite v.1.0.1

File diff suppressed because it is too large Load Diff

View File

@ -1,24 +0,0 @@
<?php
namespace PgSql;
/**
* A fully opaque class which replaces a pgsql result resource as of PHP 8.1.0.
* @since 8.1
* @link https://www.php.net/manual/en/class.pgsql-result.php
*/
final class Result {}
/**
* A fully opaque class which replaces a pgsql large object resource as of PHP 8.1.0.
* @since 8.1
* @link https://www.php.net/manual/en/class.pgsql-lob.php
*/
final class Lob {}
/**
* A fully opaque class which replaces a pgsql link resource as of PHP 8.1.0.
* @since 8.1
* @link https://www.php.net/manual/en/class.pgsql-connection.php
*/
final class Connection {}

View File

@ -7,7 +7,6 @@
<testsuite name="Structure">
<file>tests/CheckStubMapTest.php</file>
<file>tests/StubsStructureTest.php</file>
<file>tests/StubsReflectionClassesTest.php</file>
</testsuite>
</testsuites>
</phpunit>

View File

@ -1,9 +1,174 @@
<?php
// Start of posix v.
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\Pure;
/**
* Check whether the file exists.
* @link https://php.net/manual/en/posix.constants.php
*/
define('POSIX_F_OK', 0);
/**
* Check whether the file exists and has execute permissions.
* @link https://php.net/manual/en/posix.constants.php
*/
define('POSIX_X_OK', 1);
/**
* Check whether the file exists and has write permissions.
* @link https://php.net/manual/en/posix.constants.php
*/
define('POSIX_W_OK', 2);
/**
* Check whether the file exists and has read permissions.
* @link https://php.net/manual/en/posix.constants.php
*/
define('POSIX_R_OK', 4);
/**
* Normal file
* @link https://php.net/manual/en/posix.constants.php
*/
define('POSIX_S_IFREG', 32768);
/**
* Character special file
* @link https://php.net/manual/en/posix.constants.php
*/
define('POSIX_S_IFCHR', 8192);
/**
* Block special file
* @link https://php.net/manual/en/posix.constants.php
*/
define('POSIX_S_IFBLK', 24576);
/**
* FIFO (named pipe) special file
* @link https://php.net/manual/en/posix.constants.php
*/
define('POSIX_S_IFIFO', 4096);
/**
* Socket
* @link https://php.net/manual/en/posix.constants.php
*/
define('POSIX_S_IFSOCK', 49152);
/**
* The maximum size of the process's address space in bytes. See also PHP's memory_limit configuration directive.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_AS', 5);
/**
* The maximum size of a core file. If the limit is set to 0, no core file will be generated.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_CORE', 4);
/**
* The maximum amount of CPU time that the process can use, in seconds.
* When the soft limit is hit, a SIGXCPU signal will be sent, which can be caught with pcntl_signal().
* Depending on the operating system, additional SIGXCPU signals may be sent each second until the hard limit is hit,
* at which point an uncatchable SIGKILL signal is sent. See also set_time_limit().
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_CPU', 0);
/**
* The maximum size of the process's data segment, in bytes.
* It is extremely unlikely that this will have any effect on
* the execution of PHP unless an extension is in use that calls brk() or sbrk().
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_DATA', 2);
/**
* The maximum size of files that the process can create, in bytes.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_FSIZE', 1);
/**
* The maximum number of locks that the process can create.
* This is only supported on extremely old Linux kernels.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_LOCKS', 10);
/**
* The maximum number of bytes that can be allocated for POSIX message queues.
* PHP does not ship with support for POSIX message queues,
* so this limit will not have any effect unless you are using an extension that implements that support.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_MSGQUEUE', 12);
/**
* The maximum value to which the process can be <a href="https://php.net/manual/en/function.pcntl-setpriority.php"> reniced</a> to. The value that will be used will be 20 - limit, as resource limit values cannot be negative.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_NICE', 13);
/**
* The maximum real time priority that can be set via the sched_setscheduler() and sched_setparam() system calls.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_RTPRIO', 14);
/**
* The maximum amount of CPU time, in microseconds,
* that the process can consume without making a blocking system call if it is using real time scheduling.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_RTTIME', 15);
/**
* The maximum number of signals that can be queued for the real user ID of the process.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_SIGPENDING', 11);
/**
* The maximum number of bytes that can be locked into memory.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_MEMLOCK', 6);
/**
* A value one greater than the maximum file descriptor number that can be opened by this process.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_NOFILE', 8);
/**
* The maximum number of processes (and/or threads, on some operating systems)
* that can be created for the real user ID of the process.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_NPROC', 7);
/**
* The maximum size of the process's resident set, in pages.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_RSS', 5);
/**
* The maximum size of the process stack, in bytes.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_STACK', 3);
/**
* Used to indicate an infinite value for a resource limit.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_INFINITY', 9223372036854775807);
/**
* Send a signal to a process
* @link https://php.net/manual/en/function.posix-kill.php
@ -69,21 +234,6 @@ function posix_geteuid(): int {}
*/
function posix_seteuid(int $user_id): bool {}
/**
* Set system resource limits
* @link https://php.net/manual/en/function.posix-setrlimit.php
* @param int $resource <p>
* The
* {@link https://php.net/manual/en/posix.constants.setrlimit.php resource limit constant}
* corresponding to the limit that is being set.
* </p>
* @param int $soft_limit The soft limit, in whatever unit the resource limit requires, or POSIX_RLIMIT_INFINITY.
* @param int $hard_limit The hard limit, in whatever unit the resource limit requires, or POSIX_RLIMIT_INFINITY.
* @return bool Returns TRUE on success or FALSE on failure.
* @since 7.0
*/
function posix_setrlimit(int $resource, int $soft_limit, int $hard_limit): bool {}
/**
* Return the real group ID of the current process
* @link https://php.net/manual/en/function.posix-getgid.php
@ -209,14 +359,7 @@ function posix_getsid(int $process_id): int|false {}
* libc.
*/
#[Pure]
#[ArrayShape([
'sysname' => 'string',
'nodename' => 'string',
'release' => 'string',
'version' => 'string',
'machine' => 'string',
'domainname' => 'string',
])]
#[ArrayShape(["sysname" => "string", "nodename" => "string", "release" => "string", "version" => "string", "machine" => "string", "domainname" => "string"])]
function posix_uname(): array|false {}
/**
@ -232,13 +375,7 @@ function posix_uname(): array|false {}
* cstime - system time used by current process and children.
*/
#[Pure]
#[ArrayShape([
'ticks' => 'int',
'utime' => 'int',
'stime' => 'int',
'cutime' => 'int',
'cstime' => 'int'
])]
#[ArrayShape(["ticks" => "int", "utime" => "int", "stime" => "int", "cutime" => "int", "cstime" => "int"])]
function posix_times(): array|false {}
/**
@ -522,15 +659,7 @@ function posix_getgrgid(int $group_id): array|false {}
* </table>
*/
#[Pure]
#[ArrayShape([
"name" => "string",
"passwd" => "string",
"uid" => "int",
"gid" => "int",
"gecos" => "string",
"dir" => "string",
"shell" => "string",
])]
#[ArrayShape(["name" => "string", "passwd" => "string", "uid" => "int", "gid" => "int", "gecos" => "string", "dir" => "string", "shell" => "string"])]
function posix_getpwnam(string $username): array|false {}
/**
@ -607,15 +736,7 @@ function posix_getpwnam(string $username): array|false {}
* </table>
*/
#[Pure]
#[ArrayShape([
'name' => 'string',
'passwd' => 'string',
'uid' => 'int',
'gid' => 'int',
'gecos' => 'string',
'dir' => 'string',
'shell' => 'string',
])]
#[ArrayShape(["name" => "string", "passwd" => "string", "uid" => "int", "gid" => "int", "gecos" => "string", "dir" => "string", "shell" => "string"])]
function posix_getpwuid(int $user_id): array|false {}
/**
@ -745,170 +866,3 @@ function posix_strerror(int $error_code): string {}
*/
#[Pure]
function posix_initgroups(string $username, int $group_id): bool {}
/**
* Check whether the file exists.
* @link https://php.net/manual/en/posix.constants.php
*/
define('POSIX_F_OK', 0);
/**
* Check whether the file exists and has execute permissions.
* @link https://php.net/manual/en/posix.constants.php
*/
define('POSIX_X_OK', 1);
/**
* Check whether the file exists and has write permissions.
* @link https://php.net/manual/en/posix.constants.php
*/
define('POSIX_W_OK', 2);
/**
* Check whether the file exists and has read permissions.
* @link https://php.net/manual/en/posix.constants.php
*/
define('POSIX_R_OK', 4);
/**
* Normal file
* @link https://php.net/manual/en/posix.constants.php
*/
define('POSIX_S_IFREG', 32768);
/**
* Character special file
* @link https://php.net/manual/en/posix.constants.php
*/
define('POSIX_S_IFCHR', 8192);
/**
* Block special file
* @link https://php.net/manual/en/posix.constants.php
*/
define('POSIX_S_IFBLK', 24576);
/**
* FIFO (named pipe) special file
* @link https://php.net/manual/en/posix.constants.php
*/
define('POSIX_S_IFIFO', 4096);
/**
* Socket
* @link https://php.net/manual/en/posix.constants.php
*/
define('POSIX_S_IFSOCK', 49152);
/**
* The maximum size of the process's address space in bytes. See also PHP's memory_limit configuration directive.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_AS', 5);
/**
* The maximum size of a core file. If the limit is set to 0, no core file will be generated.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_CORE', 4);
/**
* The maximum amount of CPU time that the process can use, in seconds.
* When the soft limit is hit, a SIGXCPU signal will be sent, which can be caught with pcntl_signal().
* Depending on the operating system, additional SIGXCPU signals may be sent each second until the hard limit is hit,
* at which point an uncatchable SIGKILL signal is sent. See also set_time_limit().
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_CPU', 0);
/**
* The maximum size of the process's data segment, in bytes.
* It is extremely unlikely that this will have any effect on
* the execution of PHP unless an extension is in use that calls brk() or sbrk().
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_DATA', 2);
/**
* The maximum size of files that the process can create, in bytes.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_FSIZE', 1);
/**
* The maximum number of locks that the process can create.
* This is only supported on extremely old Linux kernels.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_LOCKS', 10);
/**
* The maximum number of bytes that can be allocated for POSIX message queues.
* PHP does not ship with support for POSIX message queues,
* so this limit will not have any effect unless you are using an extension that implements that support.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_MSGQUEUE', 12);
/**
* The maximum value to which the process can be <a href="https://php.net/manual/en/function.pcntl-setpriority.php"> reniced</a> to. The value that will be used will be 20 - limit, as resource limit values cannot be negative.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_NICE', 13);
/**
* The maximum real time priority that can be set via the sched_setscheduler() and sched_setparam() system calls.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_RTPRIO', 14);
/**
* The maximum amount of CPU time, in microseconds,
* that the process can consume without making a blocking system call if it is using real time scheduling.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_RTTIME', 15);
/**
* The maximum number of signals that can be queued for the real user ID of the process.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_SIGPENDING', 11);
/**
* The maximum number of bytes that can be locked into memory.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_MEMLOCK', 6);
/**
* A value one greater than the maximum file descriptor number that can be opened by this process.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_NOFILE', 8);
/**
* The maximum number of processes (and/or threads, on some operating systems)
* that can be created for the real user ID of the process.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_NPROC', 7);
/**
* The maximum size of the process's resident set, in pages.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_RSS', 5);
/**
* The maximum size of the process stack, in bytes.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_STACK', 3);
/**
* Used to indicate an infinite value for a resource limit.
* @link https://php.net/manual/en/posix.constants.setrlimit.php
*/
define('POSIX_RLIMIT_INFINITY', 9223372036854775807);
// End of posix v.

View File

@ -1,7 +1,12 @@
<?php
// Start of pspell v.
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
define('PSPELL_FAST', 1);
define('PSPELL_NORMAL', 2);
define('PSPELL_BAD_SPELLERS', 3);
define('PSPELL_RUN_TOGETHER', 8);
/**
* Load a new dictionary
@ -35,14 +40,7 @@ use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
* suggestions)</p>
* @return int|false the dictionary link identifier on success or <b>FALSE</b> on failure.
*/
#[LanguageLevelTypeAware(['8.1' => 'PSpell\Dictionary|false'], default: 'int|false')]
function pspell_new(
string $language,
string $spelling = "",
string $jargon = "",
string $encoding = "",
int $mode = 0
) {}
function pspell_new(string $language, string $spelling = '', string $jargon = '', string $encoding = '', int $mode = 0): int|false {}
/**
* Load a new dictionary with personal wordlist
@ -79,15 +77,7 @@ function pspell_new(
* suggestions)</p>
* @return int|false the dictionary link identifier for use in other pspell functions.
*/
#[LanguageLevelTypeAware(['8.1' => 'PSpell\Dictionary|false'], default: 'int|false')]
function pspell_new_personal(
string $filename,
string $language,
string $spelling = "",
string $jargon = "",
string $encoding = "",
int $mode = 0
) {}
function pspell_new_personal(string $filename, string $language, string $spelling = '', string $jargon = '', string $encoding = '', int $mode = 0): int|false {}
/**
* Load a new dictionary with settings based on a given config
@ -98,8 +88,7 @@ function pspell_new_personal(
* </p>
* @return int|false a dictionary link identifier on success.
*/
#[LanguageLevelTypeAware(['8.1' => 'PSpell\Dictionary|false'], default: 'int|false')]
function pspell_new_config(#[LanguageLevelTypeAware(['8.1' => 'PSpell\Config'], default: 'int')] $config) {}
function pspell_new_config(int $config): int|false {}
/**
* Check a word
@ -110,10 +99,7 @@ function pspell_new_config(#[LanguageLevelTypeAware(['8.1' => 'PSpell\Config'],
* </p>
* @return bool <b>TRUE</b> if the spelling is correct, <b>FALSE</b> if not.
*/
function pspell_check(
#[LanguageLevelTypeAware(['8.1' => 'PSpell\Dictionary'], default: 'int')] $dictionary,
string $word
): bool {}
function pspell_check(int $dictionary, string $word): bool {}
/**
* Suggest spellings of a word
@ -124,10 +110,7 @@ function pspell_check(
* </p>
* @return array|false an array of possible spellings.
*/
function pspell_suggest(
#[LanguageLevelTypeAware(['8.1' => 'PSpell\Dictionary'], default: 'int')] $dictionary,
string $word
): array|false {}
function pspell_suggest(int $dictionary, string $word): array|false {}
/**
* Store a replacement pair for a word
@ -144,11 +127,7 @@ function pspell_suggest(
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function pspell_store_replacement(
#[LanguageLevelTypeAware(['8.1' => 'PSpell\Dictionary'], default: 'int')] $dictionary,
string $misspelled,
string $correct
): bool {}
function pspell_store_replacement(int $dictionary, string $misspelled, string $correct): bool {}
/**
* Add the word to a personal wordlist
@ -159,10 +138,7 @@ function pspell_store_replacement(
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function pspell_add_to_personal(
#[LanguageLevelTypeAware(['8.1' => 'PSpell\Dictionary'], default: 'int')] $dictionary,
string $word
): bool {}
function pspell_add_to_personal(int $dictionary, string $word): bool {}
/**
* Add the word to the wordlist in the current session
@ -173,10 +149,7 @@ function pspell_add_to_personal(
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function pspell_add_to_session(
#[LanguageLevelTypeAware(['8.1' => 'PSpell\Dictionary'], default: 'int')] $dictionary,
string $word
): bool {}
function pspell_add_to_session(int $dictionary, string $word): bool {}
/**
* Clear the current session
@ -184,7 +157,7 @@ function pspell_add_to_session(
* @param int $dictionary
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function pspell_clear_session(#[LanguageLevelTypeAware(['8.1' => 'PSpell\Dictionary'], default: 'int')] $dictionary): bool {}
function pspell_clear_session(int $dictionary): bool {}
/**
* Save the personal wordlist to a file
@ -195,7 +168,7 @@ function pspell_clear_session(#[LanguageLevelTypeAware(['8.1' => 'PSpell\Diction
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function pspell_save_wordlist(#[LanguageLevelTypeAware(['8.1' => 'PSpell\Dictionary'], default: 'int')] $dictionary): bool {}
function pspell_save_wordlist(int $dictionary): bool {}
/**
* Create a config used to open a dictionary
@ -224,8 +197,7 @@ function pspell_save_wordlist(#[LanguageLevelTypeAware(['8.1' => 'PSpell\Diction
* </p>
* @return int Retuns a pspell config identifier.
*/
#[LanguageLevelTypeAware(['8.1' => 'PSpell\Config'], default: 'int')]
function pspell_config_create(string $language, string $spelling = "", string $jargon = "", string $encoding = "") {}
function pspell_config_create(string $language, string $spelling = '', string $jargon = '', string $encoding = ''): int {}
/**
* Consider run-together words as valid compounds
@ -237,10 +209,7 @@ function pspell_config_create(string $language, string $spelling = "", string $j
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function pspell_config_runtogether(
#[LanguageLevelTypeAware(['8.1' => 'PSpell\Config'], default: 'int')] $config,
bool $allow
): bool {}
function pspell_config_runtogether(int $config, bool $allow): bool {}
/**
* Change the mode number of suggestions returned
@ -253,10 +222,7 @@ function pspell_config_runtogether(
* suggestions)</p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function pspell_config_mode(
#[LanguageLevelTypeAware(['8.1' => 'PSpell\Config'], default: 'int')] $config,
int $mode
): bool {}
function pspell_config_mode(int $config, int $mode): bool {}
/**
* Ignore words less than N characters long
@ -267,10 +233,7 @@ function pspell_config_mode(
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function pspell_config_ignore(
#[LanguageLevelTypeAware(['8.1' => 'PSpell\Config'], default: 'int')] $config,
int $min_length
): bool {}
function pspell_config_ignore(int $config, int $min_length): bool {}
/**
* Set a file that contains personal wordlist
@ -282,10 +245,7 @@ function pspell_config_ignore(
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function pspell_config_personal(
#[LanguageLevelTypeAware(['8.1' => 'PSpell\Config'], default: 'int')] $config,
string $filename
): bool {}
function pspell_config_personal(int $config, string $filename): bool {}
/**
* Location of the main word list
@ -294,10 +254,7 @@ function pspell_config_personal(
* @param string $directory
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function pspell_config_dict_dir(
#[LanguageLevelTypeAware(['8.1' => 'PSpell\Config'], default: 'int')] $config,
string $directory
): bool {}
function pspell_config_dict_dir(int $config, string $directory): bool {}
/**
* location of language data files
@ -306,10 +263,7 @@ function pspell_config_dict_dir(
* @param string $directory
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function pspell_config_data_dir(
#[LanguageLevelTypeAware(['8.1' => 'PSpell\Config'], default: 'int')] $config,
string $directory
): bool {}
function pspell_config_data_dir(int $config, string $directory): bool {}
/**
* Set a file that contains replacement pairs
@ -320,10 +274,7 @@ function pspell_config_data_dir(
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function pspell_config_repl(
#[LanguageLevelTypeAware(['8.1' => 'PSpell\Config'], default: 'int')] $config,
string $filename
): bool {}
function pspell_config_repl(int $config, string $filename): bool {}
/**
* Determine whether to save a replacement pairs list
@ -335,14 +286,4 @@ function pspell_config_repl(
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function pspell_config_save_repl(
#[LanguageLevelTypeAware(['8.1' => 'PSpell\Config'], default: 'int')] $config,
bool $save
): bool {}
define('PSPELL_FAST', 1);
define('PSPELL_NORMAL', 2);
define('PSPELL_BAD_SPELLERS', 3);
define('PSPELL_RUN_TOGETHER', 8);
// End of pspell v.
function pspell_config_save_repl(int $config, bool $save): bool {}

View File

@ -1,15 +0,0 @@
<?php
namespace PSpell;
/**
* A fully opaque class which replaces a pspell resource as of PHP 8.1.0.
* @since 8.1
*/
final class Dictionary {}
/**
* A fully opaque class which replaces a pspell config resource as of PHP 8.1.0.
* @since 8.1
*/
final class Config {}

Some files were not shown because too many files have changed in this diff Show More