You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the internal database code, you're calling PEAR::isError exclusively statically. You've changed also the PEAR classes in 3rdparty to represent this fact and that sucks: You made yourself incompatible with upstream libraries. That leads to funny php errors like this, if try to replace i.e. 3rdparty/PEAR.php with the genuine version:
PHP Strict standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /usr/share/owncloud/lib/MDB2/Driver/sqlite3.php on line 1209
3rdparty is called 3rdparty for an reason. You should not change the code arbitrary to your liking. For me, as a Fedora packager, this makes life very hard, if I try to unbundle the 3rdparty code.
@BrummbQ I'm aware the situation with pear in 3rdparty is messed up, the reason those changes were made is because PEAR (and MDB2) itself are inconsistent with it's use of static functions.
Inside the PEAR/MDB2 code isError get's called both statically and non statically, the changes to PEAR were made to solve the strict standard errors that upstream MDB2/PEAR were generating.
Activity
BernhardPosselt commentedon Feb 27, 2013
Great! :) I was wondering how this error appeared, I think it happened in the beginning when the oC people decided to use static for everything ;D
cc @icewind1991
BernhardPosselt commentedon Feb 27, 2013
cc @bartv2
icewind1991 commentedon Feb 27, 2013
@BrummbQ I'm aware the situation with pear in 3rdparty is messed up, the reason those changes were made is because PEAR (and MDB2) itself are inconsistent with it's use of static functions.
Inside the PEAR/MDB2 code isError get's called both statically and non statically, the changes to PEAR were made to solve the strict standard errors that upstream MDB2/PEAR were generating.
BrummbQ commentedon Feb 28, 2013
all right, in that case the new function signatures should be pushed upstream. Someone of you working in this? If not I would volunteer.
BernhardPosselt commentedon Mar 18, 2013
@BrummbQ im closing this because we will move to doctrine, unneeded work.