Re: BC rules for existing package and HTML_Progress real case
| From: | Laurent Laville | Date: | Mon, 09 Aug 2004 22:01:53 +0000 |
| Subject: | Re: BC rules for existing package and HTML_Progress real case | ||
| References: | 1 2 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-1797@lists.php.net to get a copy of this message | ||
> Laurent Laville wrote:
>
> > I've a question for the QA team.
> >
> > After 3 release candidate of package HTML_Progress, i've decided to let
down
> > for a while
> > usage of PEAR_ErrorStack for error management (until it become stable).
> > So i've wrote a plugin architecture to allows any error handling system.
> >
> > On my way to rewrite a version without PEAR dependency, i've completed
today
> > on my localhost a merge version of the 3 main classes
> > HTML_Progress + HTML_Progress_UI + HTML_Progress_DM
> > into the same classe : HTML_Progress
> > All methods in UI and DM (that are not yet present in core) are now
included
> > in main (core) class HTML_Progress.
> >
> > Is it a BC rule ?
> > Shall i change the version to HTML_Progress2
> > or may i just use the version 1.2.0 ready to publish ?
> >
> > I've still to complete the doc, but all code is ready to be commit to
CVS.
> >
> > What should i do ?
>
Arnaud Limbourg wrote:
> First I would like to point I will only express my opinion and not QA
> team as as a whole.
>
> The problem is twofold I believe. On one hand you have people using
> HTML_Progress, are these people affected by the changes ? will their
> code run without any change ?
My answer to this question is YES, except that warning will raise to keep
them
aware no to use the deprecated method, such as :
$progress = new HTML_Progress();
...
$ui = & $progress->getUI(); // since the merge of 3 classes
before i got $ui = instance of HTML_Progress_UI
now i'll get $ui = instance of HTML_Progress
and also for same reason
$dm = & $progress->getDM();
>
> On the other hand you have people extending HTML_progress. Are these
> people affected by the changes ?
Probably because to include HTML_Progress_UI inside HTML_Progress
i 've extends HTML_common
class HTML_Progress extends HTML_Common
> Did you modify the public API that they
> will need to modify their code ? I know PHP4 does not make any
> difference between public and private but if the methods are documented
> that's fine.
No change on public API
>
> If the answer to any of these question is yes than I would consider it a
> BC break. In any case the matter needs to be furthered considered.
>
> Arnaud.
Thanks for your point of view Arnaud :)
Laurent