Re: [patch] BC breakage check

From: Date: Sat, 20 Sep 2003 15:17:32 +0000
Subject: Re: [patch] BC breakage check
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-21840@lists.php.net to get a copy of this message
File attached now. Oops. Greg Beaver wrote: > Hi all, > > I've coded the first step in BC enforcement. The attached patch made > against current PEAR CVS does a couple of things: > > - It adds saving of major version number as a part of the registry so > that <replace type="package-info" from="@API-VER@" > to="majorversion" /> > will allow the apiVersion() method to always return the major version > installed, without programmer brain needed. you would code this method: > > function apiVersion() > { > return '@API-VER@'; > } > > - It adds a check on upgrade to make sure that the major version has not > increased, and fails if so > - If passed --force, it will install anyways with only a warning. > > These changes mean that users must consider the consequences of > upgrading to a major version. > > I'm only posting the patch here because I want to make sure it looks > spectacular to everyone, before committing it, not just PEAR core folks. :) > > Greg

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