Public bug reported:

Binary package hint: php-pear

When using PEAR with PHP5, I get the following error:

Strict standards: Assigning the return value of new by reference is
deprecated in /usr/share/php/PEAR.php on line 563 / 566

On line 562 the reference & must be removed:

        if ($skipmsg) {
            $a = new $ec($code, $mode, $options, $userinfo);
            return $a;
        } else {
            $a = new $ec($message, $code, $mode, $options, $userinfo);
            return $a;
        }

After that, everything works and the error goes away.

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
PEAR causes error with E_STRICT and PHP5
https://launchpad.net/bugs/79417

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to