Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions pear/HTTP/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 6 additions & 0 deletions pear/HTTP/Upload/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
6 changes: 4 additions & 2 deletions pear/PEAR.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
/**
Expand Down Expand Up @@ -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)
);
}
Expand All @@ -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)
);
}
Expand Down Expand Up @@ -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 = '';
Expand Down