diff --git a/pear/HTTP/Upload.php b/pear/HTTP/Upload.php index ca89df2..3324540 100644 --- a/pear/HTTP/Upload.php +++ b/pear/HTTP/Upload.php @@ -81,6 +81,18 @@ class HTTP_Upload extends HTTP_Upload_Error 'append' => '', ); + /** + * Missing declaration for PHP > 8.2 + * @var array + */ + protected array $post_files = []; + + /** + * Missing declaration for PHP > 8.2 + * @var string + */ + protected $content_type; + /** * Whether or not to consider multiple extensions * e.g. file.txt.foo would have 'txt' and 'foo' diff --git a/pear/HTTP/Upload/Error.php b/pear/HTTP/Upload/Error.php index ff9f727..82906bd 100644 --- a/pear/HTTP/Upload/Error.php +++ b/pear/HTTP/Upload/Error.php @@ -41,6 +41,12 @@ class HTTP_Upload_Error extends PEAR */ protected $error_codes; + /** + * Missing declaration for PHP > 8.2 + * @var int + */ + public $_maxsize; + /** * PHP5 Constructor * diff --git a/pear/PEAR.php b/pear/PEAR.php index f2d6a8a..3b3fbf6 100644 --- a/pear/PEAR.php +++ b/pear/PEAR.php @@ -81,6 +81,7 @@ * @since Class available since PHP 4.0.2 * @link http://pear.php.net/manual/en/core.pear.php#core.pear.pear */ +#[AllowDynamicProperties] class PEAR { /** @@ -219,7 +220,7 @@ public function __call($method, $arguments) ); } return call_user_func_array( - array(get_class(), '_' . $method), + array(get_class($this), '_' . $method), array_merge(array($this), $arguments) ); } @@ -232,7 +233,7 @@ public static function __callStatic($method, $arguments) ); } return call_user_func_array( - array(get_class(), '_' . $method), + array(get_class($this), '_' . $method), array_merge(array(null), $arguments) ); } @@ -828,6 +829,7 @@ function _PEAR_call_destructors() * @see PEAR::raiseError(), PEAR::throwError() * @since Class available since PHP 4.0.2 */ +#[AllowDynamicProperties] class PEAR_Error { var $error_message_prefix = '';