From e349d92d34ae21199778801afbee394c200a680e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 4 Sep 2023 12:02:36 +0200 Subject: add patch for PHP 8.3 from ammended https://github.com/cataphract/php-rar/pull/18 build out of sources tree --- REFLECTION | 125 +++++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 85 insertions(+), 40 deletions(-) (limited to 'REFLECTION') diff --git a/REFLECTION b/REFLECTION index ba9be69..c8cc94d 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #117 rar version 4.2.0 ] { +Extension [ extension #125 rar version 4.2.0 ] { - Constants [6] { Constant [ int RAR_HOST_MSDOS ] { 0 } @@ -14,8 +14,8 @@ Extension [ extension #117 rar version 4.2.0 ] { - Parameters [3] { Parameter #0 [ $filename ] - Parameter #1 [ $password ] - Parameter #2 [ $volume_callback ] + Parameter #1 [ $password = ] + Parameter #2 [ $volume_callback = ] } } Function [ function rar_list ] { @@ -70,7 +70,7 @@ Extension [ extension #117 rar version 4.2.0 ] { } - Classes [3] { - Class [ final class RarArchive implements Traversable ] { + Class [ final class RarArchive implements Stringable, IteratorAggregate, Traversable ] { - Constants [0] { } @@ -83,8 +83,8 @@ Extension [ extension #117 rar version 4.2.0 ] { - Parameters [3] { Parameter #0 [ $filename ] - Parameter #1 [ $password ] - Parameter #2 [ $volume_callback ] + Parameter #1 [ $password = ] + Parameter #2 [ $volume_callback = ] } } } @@ -92,7 +92,7 @@ Extension [ extension #117 rar version 4.2.0 ] { - Properties [0] { } - - Methods [9] { + - Methods [10] { Method [ public method getEntries ] { - Parameters [0] { @@ -137,10 +137,11 @@ Extension [ extension #117 rar version 4.2.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ private method __construct ] { @@ -148,10 +149,17 @@ Extension [ extension #117 rar version 4.2.0 ] { - Parameters [0] { } } + + Method [ public method getIterator ] { + + - Parameters [0] { + } + - Return [ Traversable ] + } } } - Class [ final class RarEntry ] { + Class [ final class RarEntry implements Stringable ] { - Constants [46] { Constant [ public int HOST_MSDOS ] { 0 } @@ -209,32 +217,33 @@ Extension [ extension #117 rar version 4.2.0 ] { } - Properties [15] { - Property [ private $rarfile ] - Property [ private $position ] - Property [ private $name ] - Property [ private $unpacked_size ] - Property [ private $packed_size ] - Property [ private $host_os ] - Property [ private $file_time ] - Property [ private $crc ] - Property [ private $attr ] - Property [ private $version ] - Property [ private $method ] - Property [ private $flags ] - Property [ private $redir_type ] - Property [ private $redir_to_directory ] - Property [ private $redir_target ] + Property [ private $rarfile = NULL ] + Property [ private $position = NULL ] + Property [ private $name = NULL ] + Property [ private $unpacked_size = NULL ] + Property [ private $packed_size = NULL ] + Property [ private $host_os = NULL ] + Property [ private $file_time = NULL ] + Property [ private $crc = NULL ] + Property [ private $attr = NULL ] + Property [ private $version = NULL ] + Property [ private $method = NULL ] + Property [ private $flags = NULL ] + Property [ private $redir_type = NULL ] + Property [ private $redir_to_directory = NULL ] + Property [ private $redir_target = NULL ] } - Methods [19] { Method [ public method extract ] { - Parameters [4] { - Parameter #0 [ $path ] - Parameter #1 [ $filename ] - Parameter #2 [ $password ] - Parameter #3 [ $extended_data ] + Parameter #0 [ ?string $dir ] + Parameter #1 [ ?string $filepath = '' ] + Parameter #2 [ ?string $password = null ] + Parameter #3 [ bool $extended_data = false ] } + - Return [ bool ] } Method [ public method getPosition ] { @@ -300,7 +309,7 @@ Extension [ extension #117 rar version 4.2.0 ] { Method [ public method getStream ] { - Parameters [1] { - Parameter #0 [ $password ] + Parameter #0 [ $password = ] } } @@ -334,10 +343,11 @@ Extension [ extension #117 rar version 4.2.0 ] { } } - Method [ public method __toString ] { + Method [ public method __toString ] { - Parameters [0] { } + - Return [ string ] } Method [ private method __construct ] { @@ -348,13 +358,13 @@ Extension [ extension #117 rar version 4.2.0 ] { } } - Class [ final class RarException extends Exception implements Throwable ] { + Class [ final class RarException extends Exception implements Throwable, Stringable ] { - Constants [0] { } - Static properties [1] { - Property [ public static $usingExceptions ] + Property [ public static $usingExceptions = false ] } - Static methods [2] { @@ -373,47 +383,82 @@ Extension [ extension #117 rar version 4.2.0 ] { } - Properties [4] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected string $file = '' ] + Property [ protected int $line = 0 ] } - Methods [10] { Method [ public method __construct ] { - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + Parameter #0 [ string $message = "" ] + Parameter #1 [ int $code = 0 ] + Parameter #2 [ ?Throwable $previous = null ] } } Method [ public method __wakeup ] { + + - Parameters [0] { + } + - Tentative return [ void ] } Method [ final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ final public method getCode ] { + + - Parameters [0] { + } } Method [ final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] } Method [ final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] } Method [ final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] } Method [ final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ public method __toString ] { + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] } } } -- cgit