Re: deprecating

From: Date: Tue, 19 Jul 2005 17:14:49 +0000
Subject: Re: deprecating
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-38721@lists.php.net to get a copy of this message
Joe Stump wrote:
OK, On another note, what if I have an old package (I do) that has a function named foo_bar(). This package has only one stable release (0.2) and one beta release (1.0.1beta). Can I deprecate foo_bar(), have it call fooBar() and then throw a notice that it's deprecated when it's used? If so, then how long do I have to wait to finally remove the deprecated function? One release? Two?
IMHO you cant deprecate a method inside a major version, since that is effectively a BC break. regards, Lukas

« previous php.pear.dev (#38721) next »