Browse Source

fixes PHP 7.3

tags/ConLite_2.1.0
Oldperl 10 months ago
parent
commit
bd9d965d92
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      pear/PEAR.php
  2. +2
    -2
      pear/XML/Parser.php

+ 2
- 2
pear/PEAR.php View File

@@ -137,7 +137,7 @@ class PEAR
* @access public
* @return void
*/
function PEAR($error_class = null)
function __construct($error_class = null)
{
$classname = get_class($this);
if ($this->_debug) {
@@ -715,7 +715,7 @@ class PEAR_Error
* @access public
*
*/
function PEAR_Error($message = 'unknown error', $code = null,
function __construct($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null)
{
if ($mode === null) {


+ 2
- 2
pear/XML/Parser.php View File

@@ -106,7 +106,7 @@ class XML_Parser extends PEAR
*
* @see xml_parser_create
*/
function XML_Parser($srcenc = null, $mode = "event", $tgtenc = null)
function __construct($srcenc = null, $mode = "event", $tgtenc = null)
{
$this->PEAR('XML_Parser_Error');

@@ -339,7 +339,7 @@ class XML_Parser_Error extends PEAR_Error
// }}}
// {{{ constructor()

function XML_Parser_Error($msgorparser = 'unknown error', $code = 0, $mode = PEAR_ERROR_RETURN, $level = E_USER_NOTICE)
function __construct($msgorparser = 'unknown error', $code = 0, $mode = PEAR_ERROR_RETURN, $level = E_USER_NOTICE)
{
if (is_resource($msgorparser)) {
$code = xml_get_error_code($msgorparser);


Loading…
Cancel
Save