Page MenuHomePhorge

Fix deprecation-warning log spam
ClosedPublic

Authored by sicherha on Dec 7 2016, 9:47 PM.
Tags
None
Referenced Files
F11597067: D339.id750.diff
Fri, Mar 29, 3:16 PM
F11589003: D339.id.diff
Thu, Mar 28, 9:54 PM
Unknown Object (File)
Wed, Mar 20, 7:47 AM
Unknown Object (File)
Tue, Mar 19, 9:56 PM
Unknown Object (File)
Sun, Mar 17, 2:36 PM
Unknown Object (File)
Sun, Mar 17, 12:22 PM
Unknown Object (File)
Fri, Mar 1, 6:02 AM
Unknown Object (File)
Fri, Mar 1, 1:02 AM
Subscribers

Details

Summary

This patch prevents the iRony logs from being filled up with the following deprecation warning:
PHP Deprecated: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context

Diff Detail

Repository
rI iRony
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sicherha retitled this revision from to Fix deprecation-warning log spam.
sicherha updated this object.
sicherha edited the test plan for this revision. (Show Details)
sicherha set the repository for this revision to rI iRony.

What distro are you using? I guess it would be better to update PEAR package. It should not throw warnings with pear-1.10.x.

I didn't know this warning is fixed in newer versions of PEAR - the warning message suggested the opposite. :-)
I'm on Debian 8, which ships an older version of PEAR (see https://packages.debian.org/jessie/php-pear).

So I guess we can scratch this patch and either provide a newer version of PEAR (yay, more packages!) or patch iRony for the distros that ship PEAR < 1.10.1? If possible, I'd favour the latter because I'd like to keep the deviation from distro packages as small as possible (i.e., provide own packages only for functional reasons, not for non-functional ones).

This revision was automatically updated to reflect the committed changes.