PEAR causes error with E_STRICT and PHP5
Bug #79417 reported by
hackel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
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/
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.
To post a comment you must log in.
FYI using php-pear 5.1.6-1ubuntu2.1 on Edgy