Bug #19677 [Bgs->Fbk]: MDB2-2.5.0b4 breaks roundcubemail
| From: | till@php.net | Date: | Sun, 28 Oct 2012 19:50:39 +0000 |
| Subject: | Bug #19677 [Bgs->Fbk]: MDB2-2.5.0b4 breaks roundcubemail | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-9261@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19677&edit=1
ID: 19677
Updated by: till@php.net
Reported By: spam2 at rhsoft dot net
Summary: MDB2-2.5.0b4 breaks roundcubemail
-Status: Bogus
+Status: Feedback
Type: Bug
Package: MDB2
Operating System: Linux
PHP Version: 5.3.18
Assigned To: danielc
Roadmap Versions:
New Comment:
-Status: Bogus
+Status: Feedback
@Daniel @Christian
I agree that if a method was public before, it shouldn't be gone all of
a sudden. Even
if it was used wrong which of course is unfortunate.
I am guessing MDB2 stopped extending PEAR somewhere in between? Hence
the
method is gone?
Previous Comments:
------------------------------------------------------------------------
[2012-10-28 13:18:49] rhsoftware
and that is why is is now HARD broken instead having a compatible MDB2
version which is throwing an DEPRECATED message since years? sorry but
YOUR understanding of quality and compatibility is far away from mine
* declare methods as private if you do not want them accessed
* do not define/use static methods at all in code which is typically
instantiated
* do NOT break with "fatal error" without warnings in previous releases
------------------------------------------------------------------------
[2012-10-28 13:12:10] danielc
> PEAR does incompatible changing interfaces but a bugreport is bogus
> and a long tme working application faulty?
MDB2 did not change it's _defined_ interface. The isError() method has
always been static method of the MDB2 class. Roundcube made a mistake
by calling the method on an instantiated MDB2_Driver_mysqli object.
------------------------------------------------------------------------
[2012-10-28 09:12:23] cweiske
> aaah - PEAR does incompatible changing interfaces
According to our version policy, normal beta versions may not break BC:
http://pear.php.net/group/docs/20040226-vn.php
------------------------------------------------------------------------
[2012-10-28 08:43:31] rhsoftware
> The version of Roundcube does matter.
> The 0.8.2 release was improperly using the isError() method.
what exavtly did you not undersatnd in the fact
that the pear-update breeaks 0..x too?
> There are two $this->db_handle->isError() calls in
> ./program/include/rcube_mdb2.php.
hmmm
> That has been removed in master.
aaah - PEAR does incompatible changing interfaces
but a bugreport is bogus and a long tme working
application faulty?
the typical PHP attitude............
> Please open a ticket with Roundcube to get them to
> change the calls to MDB2::isError()
why do you not do this?
becasue YOU can explain them why THEY have to fix YOUR
incompaible change
------------------------------------------------------------------------
[2012-10-28 02:54:32] danielc
-Status: Feedback
+Status: Bogus
The version of Roundcube does matter. The 0.8.2 release was improperly
using the isError() method. There are two $this->db_handle->isError()
calls in ./program/include/rcube_mdb2.php. That has been removed in
master. Please open a ticket with Roundcube to get them to change the
calls to MDB2::isError().
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=19677
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19677&edit=1