mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Add missing visibility modifiers in stubs
This commit is contained in:
parent
1d05771a70
commit
ca006e54e3
12 changed files with 219 additions and 219 deletions
|
@ -5,17 +5,17 @@ Class Closure
|
||||||
private function __construct() {}
|
private function __construct() {}
|
||||||
|
|
||||||
/** @return ?Closure */
|
/** @return ?Closure */
|
||||||
static function bind(Closure $closure, ?object $newthis, $newscope = UNKNOWN) {}
|
public static function bind(Closure $closure, ?object $newthis, $newscope = UNKNOWN) {}
|
||||||
|
|
||||||
/** @return ?Closure */
|
/** @return ?Closure */
|
||||||
function bindTo(?object $newthis, $newscope = UNKNOWN) {}
|
public function bindTo(?object $newthis, $newscope = UNKNOWN) {}
|
||||||
|
|
||||||
/** @return mixed */
|
/** @return mixed */
|
||||||
function call(object $newthis, ...$parameters) {}
|
public function call(object $newthis, ...$parameters) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param callable $callable Not a proper type annotation due to bug #78770
|
* @param callable $callable Not a proper type annotation due to bug #78770
|
||||||
* @return Closure
|
* @return Closure
|
||||||
*/
|
*/
|
||||||
function fromCallable($callable) {}
|
public function fromCallable($callable) {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,63 +3,63 @@
|
||||||
interface Throwable extends Stringable
|
interface Throwable extends Stringable
|
||||||
{
|
{
|
||||||
/** @return string */
|
/** @return string */
|
||||||
function getMessage();
|
public function getMessage();
|
||||||
|
|
||||||
/** @return int */
|
/** @return int */
|
||||||
function getCode();
|
public function getCode();
|
||||||
|
|
||||||
/** @return string */
|
/** @return string */
|
||||||
function getFile();
|
public function getFile();
|
||||||
|
|
||||||
/** @return int */
|
/** @return int */
|
||||||
function getLine();
|
public function getLine();
|
||||||
|
|
||||||
/** @return array */
|
/** @return array */
|
||||||
function getTrace();
|
public function getTrace();
|
||||||
|
|
||||||
/** @return ?Throwable */
|
/** @return ?Throwable */
|
||||||
function getPrevious();
|
public function getPrevious();
|
||||||
|
|
||||||
/** @return string */
|
/** @return string */
|
||||||
function getTraceAsString();
|
public function getTraceAsString();
|
||||||
}
|
}
|
||||||
|
|
||||||
class Exception implements Throwable
|
class Exception implements Throwable
|
||||||
{
|
{
|
||||||
final private function __clone() {}
|
final private function __clone() {}
|
||||||
|
|
||||||
function __construct(string $message = UNKNOWN, int $code = 0, ?Throwable $previous = null) {}
|
public function __construct(string $message = UNKNOWN, int $code = 0, ?Throwable $previous = null) {}
|
||||||
|
|
||||||
function __wakeup() {}
|
public function __wakeup() {}
|
||||||
|
|
||||||
/** @return string */
|
/** @return string */
|
||||||
final function getMessage() {}
|
final public function getMessage() {}
|
||||||
|
|
||||||
/** @return int */
|
/** @return int */
|
||||||
final function getCode() {}
|
final public function getCode() {}
|
||||||
|
|
||||||
/** @return string */
|
/** @return string */
|
||||||
final function getFile() {}
|
final public function getFile() {}
|
||||||
|
|
||||||
/** @return int */
|
/** @return int */
|
||||||
final function getLine() {}
|
final public function getLine() {}
|
||||||
|
|
||||||
/** @return array */
|
/** @return array */
|
||||||
final function getTrace() {}
|
final public function getTrace() {}
|
||||||
|
|
||||||
/** @return ?Throwable */
|
/** @return ?Throwable */
|
||||||
final function getPrevious() {}
|
final public function getPrevious() {}
|
||||||
|
|
||||||
/** @return string */
|
/** @return string */
|
||||||
final function getTraceAsString() {}
|
final public function getTraceAsString() {}
|
||||||
|
|
||||||
function __toString(): string {}
|
public function __toString(): string {}
|
||||||
}
|
}
|
||||||
|
|
||||||
class ErrorException extends Exception
|
class ErrorException extends Exception
|
||||||
{
|
{
|
||||||
function __construct(string $message = UNKNOWN, int $code = 0, int $severity = E_ERROR, string $filename = UNKNOWN, int $lineno = 0, ?Throwable $previous = null) {}
|
public function __construct(string $message = UNKNOWN, int $code = 0, int $severity = E_ERROR, string $filename = UNKNOWN, int $lineno = 0, ?Throwable $previous = null) {}
|
||||||
|
|
||||||
/** @return int */
|
/** @return int */
|
||||||
final function getSeverity() {}
|
final public function getSeverity() {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,24 +2,24 @@
|
||||||
|
|
||||||
final class Generator implements Iterator
|
final class Generator implements Iterator
|
||||||
{
|
{
|
||||||
function rewind(): void {}
|
public function rewind(): void {}
|
||||||
|
|
||||||
function valid(): bool {}
|
public function valid(): bool {}
|
||||||
|
|
||||||
/** @return mixed */
|
/** @return mixed */
|
||||||
function current() {}
|
public function current() {}
|
||||||
|
|
||||||
/** @return mixed */
|
/** @return mixed */
|
||||||
function key() {}
|
public function key() {}
|
||||||
|
|
||||||
function next(): void {}
|
public function next(): void {}
|
||||||
|
|
||||||
/** @return mixed */
|
/** @return mixed */
|
||||||
function send($value) {}
|
public function send($value) {}
|
||||||
|
|
||||||
/** @return mixed */
|
/** @return mixed */
|
||||||
function throw(Throwable $exception) {}
|
public function throw(Throwable $exception) {}
|
||||||
|
|
||||||
/** @return mixed */
|
/** @return mixed */
|
||||||
function getReturn() {}
|
public function getReturn() {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,59 +5,59 @@ interface Traversable {}
|
||||||
interface IteratorAggregate extends Traversable
|
interface IteratorAggregate extends Traversable
|
||||||
{
|
{
|
||||||
/** @return Traversable */
|
/** @return Traversable */
|
||||||
function getIterator();
|
public function getIterator();
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Iterator extends Traversable
|
interface Iterator extends Traversable
|
||||||
{
|
{
|
||||||
/** @return mixed */
|
/** @return mixed */
|
||||||
function current();
|
public function current();
|
||||||
|
|
||||||
/** @return void */
|
/** @return void */
|
||||||
function next();
|
public function next();
|
||||||
|
|
||||||
/** @return mixed */
|
/** @return mixed */
|
||||||
function key();
|
public function key();
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function valid();
|
public function valid();
|
||||||
|
|
||||||
/** @return void */
|
/** @return void */
|
||||||
function rewind();
|
public function rewind();
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ArrayAccess
|
interface ArrayAccess
|
||||||
{
|
{
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function offsetExists($offset);
|
public function offsetExists($offset);
|
||||||
|
|
||||||
/* actually this should be return by ref but atm cannot be */
|
/* actually this should be return by ref but atm cannot be */
|
||||||
/** @return mixed */
|
/** @return mixed */
|
||||||
function offsetGet($offset);
|
public function offsetGet($offset);
|
||||||
|
|
||||||
/** @return void */
|
/** @return void */
|
||||||
function offsetSet($offset, $value);
|
public function offsetSet($offset, $value);
|
||||||
|
|
||||||
/** @return void */
|
/** @return void */
|
||||||
function offsetUnset($offset);
|
public function offsetUnset($offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Serializable
|
interface Serializable
|
||||||
{
|
{
|
||||||
/** @return string */
|
/** @return string */
|
||||||
function serialize();
|
public function serialize();
|
||||||
|
|
||||||
/** @return void */
|
/** @return void */
|
||||||
function unserialize(string $serialized);
|
public function unserialize(string $serialized);
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Countable
|
interface Countable
|
||||||
{
|
{
|
||||||
/** @return int */
|
/** @return int */
|
||||||
function count();
|
public function count();
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Stringable
|
interface Stringable
|
||||||
{
|
{
|
||||||
function __toString(): string;
|
public function __toString(): string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,46 +2,46 @@
|
||||||
|
|
||||||
final class FFI
|
final class FFI
|
||||||
{
|
{
|
||||||
static function cdef(string $code = UNKNOWN, string $lib = UNKNOWN): ?FFI {}
|
public static function cdef(string $code = UNKNOWN, string $lib = UNKNOWN): ?FFI {}
|
||||||
|
|
||||||
static function load(string $filename): ?FFI {}
|
public static function load(string $filename): ?FFI {}
|
||||||
|
|
||||||
static function scope(string $scope_name): ?FFI {}
|
public static function scope(string $scope_name): ?FFI {}
|
||||||
|
|
||||||
/** @param FFI\CType|string $type */
|
/** @param FFI\CType|string $type */
|
||||||
static function new($type, bool $owned = true, bool $persistent = false): ?FFI\CData {}
|
public static function new($type, bool $owned = true, bool $persistent = false): ?FFI\CData {}
|
||||||
|
|
||||||
/** @prefer-ref $ptr */
|
/** @prefer-ref $ptr */
|
||||||
static function free(FFI\CData $ptr): void {}
|
public static function free(FFI\CData $ptr): void {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param FFI\CType|string $type
|
* @param FFI\CType|string $type
|
||||||
* @prefer-ref $ptr
|
* @prefer-ref $ptr
|
||||||
*/
|
*/
|
||||||
static function cast($type, $ptr): ?FFI\CData {}
|
public static function cast($type, $ptr): ?FFI\CData {}
|
||||||
|
|
||||||
static function type(string $type): ?FFI\CType {}
|
public static function type(string $type): ?FFI\CType {}
|
||||||
|
|
||||||
/** @prefer-ref $ptr */
|
/** @prefer-ref $ptr */
|
||||||
static function typeof(FFI\CData $ptr): ?FFI\CType {}
|
public static function typeof(FFI\CData $ptr): ?FFI\CType {}
|
||||||
|
|
||||||
static function arrayType(FFI\CType $type, array $dims): ?FFI\CType {}
|
public static function arrayType(FFI\CType $type, array $dims): ?FFI\CType {}
|
||||||
|
|
||||||
/** @prefer-ref $ptr */
|
/** @prefer-ref $ptr */
|
||||||
static function addr(FFI\CData $ptr): FFI\CData {}
|
public static function addr(FFI\CData $ptr): FFI\CData {}
|
||||||
|
|
||||||
/** @prefer-ref $ptr */
|
/** @prefer-ref $ptr */
|
||||||
static function sizeof(object $ptr): ?int {}
|
public static function sizeof(object $ptr): ?int {}
|
||||||
|
|
||||||
/** @prefer-ref $ptr */
|
/** @prefer-ref $ptr */
|
||||||
static function alignof(object $ptr): ?int {}
|
public static function alignof(object $ptr): ?int {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @prefer-ref $dst
|
* @prefer-ref $dst
|
||||||
* @prefer-ref $src
|
* @prefer-ref $src
|
||||||
* @param string|FFI\CData $dst
|
* @param string|FFI\CData $dst
|
||||||
*/
|
*/
|
||||||
static function memcpy(FFI\CData $dst, $src, int $size): void {}
|
public static function memcpy(FFI\CData $dst, $src, int $size): void {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @prefer-ref $ptr1
|
* @prefer-ref $ptr1
|
||||||
|
@ -49,14 +49,14 @@ final class FFI
|
||||||
* @prefer-ref $ptr2
|
* @prefer-ref $ptr2
|
||||||
* @param string|FFI\CData $ptr2
|
* @param string|FFI\CData $ptr2
|
||||||
*/
|
*/
|
||||||
static function memcmp($ptr1, $ptr2, int $size): ?int {}
|
public static function memcmp($ptr1, $ptr2, int $size): ?int {}
|
||||||
|
|
||||||
/** @prefer-ref $ptr */
|
/** @prefer-ref $ptr */
|
||||||
static function memset(FFI\CData $ptr, int $ch, int $size): void {}
|
public static function memset(FFI\CData $ptr, int $ch, int $size): void {}
|
||||||
|
|
||||||
/** @prefer-ref $ptr */
|
/** @prefer-ref $ptr */
|
||||||
static function string(FFI\CData $ptr, int $size = UNKNOWN): ?string {}
|
public static function string(FFI\CData $ptr, int $size = UNKNOWN): ?string {}
|
||||||
|
|
||||||
/** @prefer-ref $ptr */
|
/** @prefer-ref $ptr */
|
||||||
static function isNull(FFI\CData $ptr): bool {}
|
public static function isNull(FFI\CData $ptr): bool {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,22 +4,22 @@
|
||||||
|
|
||||||
class finfo
|
class finfo
|
||||||
{
|
{
|
||||||
function __construct(int $options = FILEINFO_NONE, string $arg = "") {}
|
public function __construct(int $options = FILEINFO_NONE, string $arg = "") {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ?resource $context
|
* @param ?resource $context
|
||||||
* @return string|false
|
* @return string|false
|
||||||
*/
|
*/
|
||||||
function file(string $file_name, int $options = FILEINFO_NONE, $context = null) {}
|
public function file(string $file_name, int $options = FILEINFO_NONE, $context = null) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ?resource $context
|
* @param ?resource $context
|
||||||
* @return string|false
|
* @return string|false
|
||||||
*/
|
*/
|
||||||
function buffer(string $string, int $options = FILEINFO_NONE, $context = null) {}
|
public function buffer(string $string, int $options = FILEINFO_NONE, $context = null) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function set_flags(int $options) {}
|
public function set_flags(int $options) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @return resource|false */
|
/** @return resource|false */
|
||||||
|
|
|
@ -50,35 +50,35 @@ function session_start(array $options = []): bool {}
|
||||||
interface SessionHandlerInterface
|
interface SessionHandlerInterface
|
||||||
{
|
{
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function open(string $save_path, string $session_name);
|
public function open(string $save_path, string $session_name);
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function close();
|
public function close();
|
||||||
|
|
||||||
/** @return string */
|
/** @return string */
|
||||||
function read(string $key);
|
public function read(string $key);
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function write(string $key, string $val);
|
public function write(string $key, string $val);
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function destroy(string $key);
|
public function destroy(string $key);
|
||||||
|
|
||||||
/** @return int|bool */
|
/** @return int|bool */
|
||||||
function gc(int $maxlifetime);
|
public function gc(int $maxlifetime);
|
||||||
}
|
}
|
||||||
|
|
||||||
interface SessionIdInterface
|
interface SessionIdInterface
|
||||||
{
|
{
|
||||||
/** @return string */
|
/** @return string */
|
||||||
function create_sid();
|
public function create_sid();
|
||||||
}
|
}
|
||||||
|
|
||||||
interface SessionUpdateTimestampHandlerInterface
|
interface SessionUpdateTimestampHandlerInterface
|
||||||
{
|
{
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function validateId(string $key);
|
public function validateId(string $key);
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function updateTimestamp(string $key, string $val);
|
public function updateTimestamp(string $key, string $val);
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,31 +82,31 @@ function snmp_read_mib(string $filename): bool {}
|
||||||
|
|
||||||
class SNMP
|
class SNMP
|
||||||
{
|
{
|
||||||
function __construct(int $version, string $host, string $community, int $timeout = UNKNOWN, int $retries = UNKNOWN) {}
|
public function __construct(int $version, string $host, string $community, int $timeout = UNKNOWN, int $retries = UNKNOWN) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function close() {}
|
public function close() {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function setSecurity(string $sec_level, string $auth_protocol = '', string $auth_passphrase = '', string $priv_protocol = '', string $priv_passphrase = '', string $contextName = '', string $contextEngineID = '') {}
|
public function setSecurity(string $sec_level, string $auth_protocol = '', string $auth_passphrase = '', string $priv_protocol = '', string $priv_passphrase = '', string $contextName = '', string $contextEngineID = '') {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array|string $object_id
|
* @param array|string $object_id
|
||||||
* @return array|bool
|
* @return array|bool
|
||||||
*/
|
*/
|
||||||
function get($object_id, bool $use_orignames = false) {}
|
public function get($object_id, bool $use_orignames = false) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array|string $object_id
|
* @param array|string $object_id
|
||||||
* @return array|bool
|
* @return array|bool
|
||||||
*/
|
*/
|
||||||
function getnext($object_id) {}
|
public function getnext($object_id) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array|string $object_id
|
* @param array|string $object_id
|
||||||
* @return array|bool
|
* @return array|bool
|
||||||
*/
|
*/
|
||||||
function walk($object_id, bool $suffix_keys = false, int $max_repetitions = UNKNOWN, int $non_repeaters = UNKNOWN) {}
|
public function walk($object_id, bool $suffix_keys = false, int $max_repetitions = UNKNOWN, int $non_repeaters = UNKNOWN) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array|string $object_id
|
* @param array|string $object_id
|
||||||
|
@ -114,11 +114,11 @@ class SNMP
|
||||||
* @param array|string $value
|
* @param array|string $value
|
||||||
* @return array|bool
|
* @return array|bool
|
||||||
*/
|
*/
|
||||||
function set($object_id, $type, $value) {}
|
public function set($object_id, $type, $value) {}
|
||||||
|
|
||||||
/** @return int */
|
/** @return int */
|
||||||
function getErrno() {}
|
public function getErrno() {}
|
||||||
|
|
||||||
/** @return string */
|
/** @return string */
|
||||||
function getError() {}
|
public function getError() {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,95 +6,95 @@ function is_soap_fault($object): bool {}
|
||||||
|
|
||||||
class SoapParam
|
class SoapParam
|
||||||
{
|
{
|
||||||
function __construct($data, string $name);
|
public function __construct($data, string $name);
|
||||||
}
|
}
|
||||||
|
|
||||||
class SoapHeader
|
class SoapHeader
|
||||||
{
|
{
|
||||||
function __construct(string $namespace, string $name, $data = UNKNOWN, bool $mustunderstand = false, $actor = UNKNOWN);
|
public function __construct(string $namespace, string $name, $data = UNKNOWN, bool $mustunderstand = false, $actor = UNKNOWN);
|
||||||
}
|
}
|
||||||
|
|
||||||
class SoapFault extends Exception
|
class SoapFault extends Exception
|
||||||
{
|
{
|
||||||
function __construct($faultcode, string $faultstring, ?string $faultactor = null, $detail = null, ?string $faultname = null, $headerfault = null);
|
public function __construct($faultcode, string $faultstring, ?string $faultactor = null, $detail = null, ?string $faultname = null, $headerfault = null);
|
||||||
|
|
||||||
function __toString(): string;
|
public function __toString(): string;
|
||||||
}
|
}
|
||||||
|
|
||||||
class SoapVar
|
class SoapVar
|
||||||
{
|
{
|
||||||
function __construct($data, $encoding, string $type_name = "", string $type_namespace = "", string $node_name = "", string $node_namespace = "");
|
public function __construct($data, $encoding, string $type_name = "", string $type_namespace = "", string $node_name = "", string $node_namespace = "");
|
||||||
}
|
}
|
||||||
|
|
||||||
class SoapServer
|
class SoapServer
|
||||||
{
|
{
|
||||||
function __construct($wsdl, array $options = []);
|
public function __construct($wsdl, array $options = []);
|
||||||
|
|
||||||
/** @return void */
|
/** @return void */
|
||||||
function fault(string $code, string $string, string $actor = "", $details = null, string $name = "");
|
public function fault(string $code, string $string, string $actor = "", $details = null, string $name = "");
|
||||||
|
|
||||||
/** @return void */
|
/** @return void */
|
||||||
function addSoapHeader(SoapHeader $object);
|
public function addSoapHeader(SoapHeader $object);
|
||||||
|
|
||||||
/** @return void */
|
/** @return void */
|
||||||
function setPersistence(int $mode);
|
public function setPersistence(int $mode);
|
||||||
|
|
||||||
/** @return void */
|
/** @return void */
|
||||||
function setClass(string $class_name, ...$argv);
|
public function setClass(string $class_name, ...$argv);
|
||||||
|
|
||||||
/** @return void */
|
/** @return void */
|
||||||
function setObject(object $object);
|
public function setObject(object $object);
|
||||||
|
|
||||||
/** @return array */
|
/** @return array */
|
||||||
function getFunctions();
|
public function getFunctions();
|
||||||
|
|
||||||
/** @return void */
|
/** @return void */
|
||||||
function addFunction($functions);
|
public function addFunction($functions);
|
||||||
|
|
||||||
/** @return void */
|
/** @return void */
|
||||||
function handle(string $soap_request = UNKNOWN);
|
public function handle(string $soap_request = UNKNOWN);
|
||||||
}
|
}
|
||||||
|
|
||||||
class SoapClient
|
class SoapClient
|
||||||
{
|
{
|
||||||
function __construct($wsdl, array $options = []);
|
public function __construct($wsdl, array $options = []);
|
||||||
|
|
||||||
/** @return mixed */
|
/** @return mixed */
|
||||||
function __call(string $function_name, array $arguments);
|
public function __call(string $function_name, array $arguments);
|
||||||
|
|
||||||
/** @return mixed */
|
/** @return mixed */
|
||||||
function __soapCall(string $function_name, array $arguments, ?array $options = null, $input_headers = null, $output_headers = null);
|
public function __soapCall(string $function_name, array $arguments, ?array $options = null, $input_headers = null, $output_headers = null);
|
||||||
|
|
||||||
/** @return array|null */
|
/** @return array|null */
|
||||||
function __getFunctions();
|
public function __getFunctions();
|
||||||
|
|
||||||
/** @return array|null */
|
/** @return array|null */
|
||||||
function __getTypes();
|
public function __getTypes();
|
||||||
|
|
||||||
/** @return ?string */
|
/** @return ?string */
|
||||||
function __getLastRequest();
|
public function __getLastRequest();
|
||||||
|
|
||||||
/** @return ?string */
|
/** @return ?string */
|
||||||
function __getLastResponse();
|
public function __getLastResponse();
|
||||||
|
|
||||||
/** @return ?string */
|
/** @return ?string */
|
||||||
function __getLastRequestHeaders();
|
public function __getLastRequestHeaders();
|
||||||
|
|
||||||
/** @return ?string */
|
/** @return ?string */
|
||||||
function __getLastResponseHeaders();
|
public function __getLastResponseHeaders();
|
||||||
|
|
||||||
/** @return ?string */
|
/** @return ?string */
|
||||||
function __doRequest(string $request, string $location, string $action, int $version, int $one_way = 0);
|
public function __doRequest(string $request, string $location, string $action, int $version, int $one_way = 0);
|
||||||
|
|
||||||
/** @return void */
|
/** @return void */
|
||||||
function __setCookie(string $name, ?string $value = null);
|
public function __setCookie(string $name, ?string $value = null);
|
||||||
|
|
||||||
/** @return array */
|
/** @return array */
|
||||||
function __getCookies();
|
public function __getCookies();
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function __setSoapHeaders($soapheaders = null);
|
public function __setSoapHeaders($soapheaders = null);
|
||||||
|
|
||||||
/** @return ?string */
|
/** @return ?string */
|
||||||
function __setLocation(string $new_location = "");
|
public function __setLocation(string $new_location = "");
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,130 +2,130 @@
|
||||||
|
|
||||||
class SQLite3
|
class SQLite3
|
||||||
{
|
{
|
||||||
function __construct(string $filename, int $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, string $encryption_key = '') {}
|
public function __construct(string $filename, int $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, string $encryption_key = '') {}
|
||||||
|
|
||||||
/** @return void */
|
/** @return void */
|
||||||
function open(string $filename, int $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, string $encryption_key = '') {}
|
public function open(string $filename, int $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, string $encryption_key = '') {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function close() {}
|
public function close() {}
|
||||||
|
|
||||||
/** @return array */
|
/** @return array */
|
||||||
function version() {}
|
public function version() {}
|
||||||
|
|
||||||
/** @return int */
|
/** @return int */
|
||||||
function lastInsertRowID() {}
|
public function lastInsertRowID() {}
|
||||||
|
|
||||||
/** @return int */
|
/** @return int */
|
||||||
function lastErrorCode() {}
|
public function lastErrorCode() {}
|
||||||
|
|
||||||
/** @return int */
|
/** @return int */
|
||||||
function lastExtendedErrorCode() {}
|
public function lastExtendedErrorCode() {}
|
||||||
|
|
||||||
/** @return string */
|
/** @return string */
|
||||||
function lastErrorMsg() {}
|
public function lastErrorMsg() {}
|
||||||
|
|
||||||
/** @return int */
|
/** @return int */
|
||||||
function changes() {}
|
public function changes() {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function busyTimeout(int $ms) {}
|
public function busyTimeout(int $ms) {}
|
||||||
|
|
||||||
#ifndef SQLITE_OMIT_LOAD_EXTENSION
|
#ifndef SQLITE_OMIT_LOAD_EXTENSION
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function loadExtension(string $shared_library) {}
|
public function loadExtension(string $shared_library) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if SQLITE_VERSION_NUMBER >= 3006011
|
#if SQLITE_VERSION_NUMBER >= 3006011
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function backup(SQLite3 $destination_db, string $source_dbname = "main", string $destination_dbname = "main") {}
|
public function backup(SQLite3 $destination_db, string $source_dbname = "main", string $destination_dbname = "main") {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** @return string */
|
/** @return string */
|
||||||
function escapeString(string $value) {}
|
public function escapeString(string $value) {}
|
||||||
|
|
||||||
/** @return SQLite3Stmt|false */
|
/** @return SQLite3Stmt|false */
|
||||||
function prepare(string $query) {}
|
public function prepare(string $query) {}
|
||||||
|
|
||||||
/** @return SQLite3Result|false|null */
|
/** @return SQLite3Result|false|null */
|
||||||
function query(string $query) {}
|
public function query(string $query) {}
|
||||||
|
|
||||||
/** @return mixed */
|
/** @return mixed */
|
||||||
function querySingle(string $query, bool $entire_row = false) {}
|
public function querySingle(string $query, bool $entire_row = false) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function createFunction(string $name, $callback, int $argument_count = -1, int $flags = 0) {}
|
public function createFunction(string $name, $callback, int $argument_count = -1, int $flags = 0) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function createAggregate(string $name, $step_callback, $final_callback, int $argument_count = -1) {}
|
public function createAggregate(string $name, $step_callback, $final_callback, int $argument_count = -1) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function createCollation(string $name, $callback) {}
|
public function createCollation(string $name, $callback) {}
|
||||||
|
|
||||||
/** @return resource|false */
|
/** @return resource|false */
|
||||||
function openBlob(string $table, string $column, int $rowid, string $dbname = "main", int $flags = SQLITE3_OPEN_READONLY) {}
|
public function openBlob(string $table, string $column, int $rowid, string $dbname = "main", int $flags = SQLITE3_OPEN_READONLY) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function enableExceptions(bool $enableExceptions = false) {}
|
public function enableExceptions(bool $enableExceptions = false) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function enableExtendedResultCodes(bool $enable = true) {}
|
public function enableExtendedResultCodes(bool $enable = true) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function setAuthorizer(?callable $callback) {}
|
public function setAuthorizer(?callable $callback) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
class SQLite3Stmt
|
class SQLite3Stmt
|
||||||
{
|
{
|
||||||
function __construct(SQLite3 $sqlite3, string $sql) {}
|
public function __construct(SQLite3 $sqlite3, string $sql) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function bindParam($param_number, &$param, int $type = UNKNOWN) {}
|
public function bindParam($param_number, &$param, int $type = UNKNOWN) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function bindValue($param_number, $param, int $type = UNKNOWN) {}
|
public function bindValue($param_number, $param, int $type = UNKNOWN) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function clear() {}
|
public function clear() {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function close() {}
|
public function close() {}
|
||||||
|
|
||||||
/** @return SQLite3Result|false */
|
/** @return SQLite3Result|false */
|
||||||
function execute() {}
|
public function execute() {}
|
||||||
|
|
||||||
/** @return string|false */
|
/** @return string|false */
|
||||||
function getSQL(bool $expanded = false) {}
|
public function getSQL(bool $expanded = false) {}
|
||||||
|
|
||||||
/** @return int */
|
/** @return int */
|
||||||
function paramCount() {}
|
public function paramCount() {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function readOnly() {}
|
public function readOnly() {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function reset() {}
|
public function reset() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
class SQLite3Result
|
class SQLite3Result
|
||||||
{
|
{
|
||||||
function __construct() {}
|
public function __construct() {}
|
||||||
|
|
||||||
/** @return int */
|
/** @return int */
|
||||||
function numColumns() {}
|
public function numColumns() {}
|
||||||
|
|
||||||
/** @return string|false */
|
/** @return string|false */
|
||||||
function columnName(int $column_number) {}
|
public function columnName(int $column_number) {}
|
||||||
|
|
||||||
/** @return int|false */
|
/** @return int|false */
|
||||||
function columnType(int $column_number) {}
|
public function columnType(int $column_number) {}
|
||||||
|
|
||||||
/** @return array|false */
|
/** @return array|false */
|
||||||
function fetchArray(int $mode = SQLITE3_BOTH) {}
|
public function fetchArray(int $mode = SQLITE3_BOTH) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function reset() {}
|
public function reset() {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function finalize() {}
|
public function finalize() {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,77 +3,77 @@
|
||||||
class XMLReader
|
class XMLReader
|
||||||
{
|
{
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function close() {}
|
public function close() {}
|
||||||
|
|
||||||
/** @return string|null|false */
|
/** @return string|null|false */
|
||||||
function getAttribute(string $name) {}
|
public function getAttribute(string $name) {}
|
||||||
|
|
||||||
/** @return ?string */
|
/** @return ?string */
|
||||||
function getAttributeNo(int $index) {}
|
public function getAttributeNo(int $index) {}
|
||||||
|
|
||||||
/** @return string|null|false */
|
/** @return string|null|false */
|
||||||
function getAttributeNs(string $name, string $namespaceURI) {}
|
public function getAttributeNs(string $name, string $namespaceURI) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function getParserProperty(int $property) {}
|
public function getParserProperty(int $property) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function isValid() {}
|
public function isValid() {}
|
||||||
|
|
||||||
/** @return string|null|false */
|
/** @return string|null|false */
|
||||||
function lookupNamespace(string $prefix) {}
|
public function lookupNamespace(string $prefix) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function moveToAttribute(string $name) {}
|
public function moveToAttribute(string $name) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function moveToAttributeNo(int $index) {}
|
public function moveToAttributeNo(int $index) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function moveToAttributeNs(string $name, string $namespaceURI) {}
|
public function moveToAttributeNs(string $name, string $namespaceURI) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function moveToElement() {}
|
public function moveToElement() {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function moveToFirstAttribute() {}
|
public function moveToFirstAttribute() {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function moveToNextAttribute() {}
|
public function moveToNextAttribute() {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function read() {}
|
public function read() {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function next(string $localname = UNKNOWN) {}
|
public function next(string $localname = UNKNOWN) {}
|
||||||
|
|
||||||
/** @return bool|XMLReader */
|
/** @return bool|XMLReader */
|
||||||
function open(string $URI, ?string $encoding = null, int $options = 0) {}
|
public function open(string $URI, ?string $encoding = null, int $options = 0) {}
|
||||||
|
|
||||||
/** @return string */
|
/** @return string */
|
||||||
function readInnerXml() {}
|
public function readInnerXml() {}
|
||||||
|
|
||||||
/** @return string */
|
/** @return string */
|
||||||
function readOuterXml() {}
|
public function readOuterXml() {}
|
||||||
|
|
||||||
/** @return string */
|
/** @return string */
|
||||||
function readString() {}
|
public function readString() {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function setSchema(?string $filename) {}
|
public function setSchema(?string $filename) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function setParserProperty(int $property, bool $value) {}
|
public function setParserProperty(int $property, bool $value) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function setRelaxNGSchema(?string $filename) {}
|
public function setRelaxNGSchema(?string $filename) {}
|
||||||
|
|
||||||
/** @return bool */
|
/** @return bool */
|
||||||
function setRelaxNGSchemaSource(?string $source) {}
|
public function setRelaxNGSchemaSource(?string $source) {}
|
||||||
|
|
||||||
/** @return bool|XMLReader */
|
/** @return bool|XMLReader */
|
||||||
function XML(string $source, ?string $encoding = null, int $options = 0) {}
|
public function XML(string $source, ?string $encoding = null, int $options = 0) {}
|
||||||
|
|
||||||
/** @return DOMNode|bool */
|
/** @return DOMNode|bool */
|
||||||
function expand(?DOMNode $basenode = null) {}
|
public function expand(?DOMNode $basenode = null) {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,87 +86,87 @@ function xmlwriter_flush(XMLWriter $xmlwriter, bool $empty = true): string|int {
|
||||||
|
|
||||||
class XMLWriter
|
class XMLWriter
|
||||||
{
|
{
|
||||||
function openUri(string $uri): bool {}
|
public function openUri(string $uri): bool {}
|
||||||
|
|
||||||
function openMemory(): bool {}
|
public function openMemory(): bool {}
|
||||||
|
|
||||||
function setIndent(bool $indent): bool {}
|
public function setIndent(bool $indent): bool {}
|
||||||
|
|
||||||
function setIdentString(string $indentString): bool {}
|
public function setIdentString(string $indentString): bool {}
|
||||||
|
|
||||||
function startComment(): bool {}
|
public function startComment(): bool {}
|
||||||
|
|
||||||
function endComment(): bool {}
|
public function endComment(): bool {}
|
||||||
|
|
||||||
function startAttribute(string $name): bool {}
|
public function startAttribute(string $name): bool {}
|
||||||
|
|
||||||
function endAttribute(): bool {}
|
public function endAttribute(): bool {}
|
||||||
|
|
||||||
function writeAttribute(string $name, string $value): bool {}
|
public function writeAttribute(string $name, string $value): bool {}
|
||||||
|
|
||||||
function startAttributeNs(string $prefix, string $name, ?string $uri): bool {}
|
public function startAttributeNs(string $prefix, string $name, ?string $uri): bool {}
|
||||||
|
|
||||||
function writeAttributeNs(string $prefix, string $name, ?string $uri, string $content): bool {}
|
public function writeAttributeNs(string $prefix, string $name, ?string $uri, string $content): bool {}
|
||||||
|
|
||||||
function startElement(string $name): bool {}
|
public function startElement(string $name): bool {}
|
||||||
|
|
||||||
function endElement(): bool {}
|
public function endElement(): bool {}
|
||||||
|
|
||||||
function fullEndElement(): bool {}
|
public function fullEndElement(): bool {}
|
||||||
|
|
||||||
function startElementNs(?string $prefix, string $name, ?string $uri): bool {}
|
public function startElementNs(?string $prefix, string $name, ?string $uri): bool {}
|
||||||
|
|
||||||
function writeElement(string $name, ?string $content = null): bool {}
|
public function writeElement(string $name, ?string $content = null): bool {}
|
||||||
|
|
||||||
function writeElementNs(?string $prefix, string $name, ?string $uri, ?string $content = null): bool {}
|
public function writeElementNs(?string $prefix, string $name, ?string $uri, ?string $content = null): bool {}
|
||||||
|
|
||||||
function startPi(string $target): bool {}
|
public function startPi(string $target): bool {}
|
||||||
|
|
||||||
function endPi(): bool {}
|
public function endPi(): bool {}
|
||||||
|
|
||||||
function writePi(string $target, string $content): bool {}
|
public function writePi(string $target, string $content): bool {}
|
||||||
|
|
||||||
function startCdata(): bool {}
|
public function startCdata(): bool {}
|
||||||
|
|
||||||
function endCdata(): bool {}
|
public function endCdata(): bool {}
|
||||||
|
|
||||||
function writeCdata(string $content): bool {}
|
public function writeCdata(string $content): bool {}
|
||||||
|
|
||||||
function text(string $content): bool {}
|
public function text(string $content): bool {}
|
||||||
|
|
||||||
function writeRaw(string $content): bool {}
|
public function writeRaw(string $content): bool {}
|
||||||
|
|
||||||
function startDocument(?string $version = '1.0', ?string $encoding = null, ?string $standalone = null): bool {}
|
public function startDocument(?string $version = '1.0', ?string $encoding = null, ?string $standalone = null): bool {}
|
||||||
|
|
||||||
function endDocument(): bool {}
|
public function endDocument(): bool {}
|
||||||
|
|
||||||
function writeComment(string $content): bool {}
|
public function writeComment(string $content): bool {}
|
||||||
|
|
||||||
function startDtd(string $qualifiedName, ?string $publicId = null, ?string $systemId = null): bool {}
|
public function startDtd(string $qualifiedName, ?string $publicId = null, ?string $systemId = null): bool {}
|
||||||
|
|
||||||
function endDtd(): bool {}
|
public function endDtd(): bool {}
|
||||||
|
|
||||||
function writeDtd(string $name, ?string $publicId = null, ?string $systemId = null, ?string $subset = null): bool {}
|
public function writeDtd(string $name, ?string $publicId = null, ?string $systemId = null, ?string $subset = null): bool {}
|
||||||
|
|
||||||
function startDtdElement(string $qualifiedName): bool {}
|
public function startDtdElement(string $qualifiedName): bool {}
|
||||||
|
|
||||||
function endDtdElement(): bool {}
|
public function endDtdElement(): bool {}
|
||||||
|
|
||||||
function writeDtdElement(string $name, string $content): bool {}
|
public function writeDtdElement(string $name, string $content): bool {}
|
||||||
|
|
||||||
function startDtdAttlist(string $name): bool {}
|
public function startDtdAttlist(string $name): bool {}
|
||||||
|
|
||||||
function endDtdAttlist(): bool {}
|
public function endDtdAttlist(): bool {}
|
||||||
|
|
||||||
function writeDtdAttlist(string $name, string $content): bool {}
|
public function writeDtdAttlist(string $name, string $content): bool {}
|
||||||
|
|
||||||
function startDtdEntity(string $name, bool $isparam): bool {}
|
public function startDtdEntity(string $name, bool $isparam): bool {}
|
||||||
|
|
||||||
function endDtdEntity(): bool {}
|
public function endDtdEntity(): bool {}
|
||||||
|
|
||||||
function writeDtdEntity(string $name, string $content, bool $isparam, string $publicId = UNKNOWN, string $systemId = UNKNOWN, string $ndataid = UNKNOWN): bool {}
|
public function writeDtdEntity(string $name, string $content, bool $isparam, string $publicId = UNKNOWN, string $systemId = UNKNOWN, string $ndataid = UNKNOWN): bool {}
|
||||||
|
|
||||||
function outputMemory(bool $flush = true): string {}
|
public function outputMemory(bool $flush = true): string {}
|
||||||
|
|
||||||
function flush(bool $empty = true): string|int {}
|
public function flush(bool $empty = true): string|int {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue