Re: Re: PEAR 1.5.0a1 release checklist

From: Date: Sun, 24 Sep 2006 23:13:34 +0000
Subject: Re: Re: PEAR 1.5.0a1 release checklist
References: 1 2 3 4 5 6  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-3927@lists.php.net to get a copy of this message
Pierre wrote: > I do accept Exceptions in PEAR. A couple of people (you incl.) seem to > be sure that I do not want exceptions in pear, you should read the > numerous discussions about this topic. Hm, I did not start any of > them, maybe I'm not that wrong to consider exceptions *usage* is not > that clear in PEAR. But there is another discussion (again) about this > topic, let discuss that there if you like. > >> Of course I know what code branches are. You still are not really >> explaining what "branch support" in the PEAR package is. Does it >> include multiple branches of code in one tarball and install the one >> specific to....something? PHP version? > > > Multiple branches of code in one tarbal. Each branches are defined > using dependencies. > >> When was this discussed? > > > Check the archives. > >> It sounds like it could have some pitfalls. > > > There is, that's why it has to be in the first 1.5.0 alpha release. This is the first I've heard about Pierre's multiple branch idea, but I don't think we need to worry about it. Multiple branches for different PHP versions is already supported in package.xml version 2, it just requires some work. Here's how it works: your dir structure would be: ext/ php4/ php5/ php6/ php4/ would contain the PHP_4 branch of the pecl ext, php5/ the PHP_5, and so on <contents> contains all files then, multiple <extsrcrelease> tags are used with <installcondition> <extsrcrelease> <installconditions> <php> <min>4.3.0</min> <max>5.0.0</max> <exclude>5.0.0</exclude> </php> </installconditions> <install as name="php4/file.c" as="file.c" /> ... </extsrcrelease> For each branch, this tag would need to be duplicated with the appropriate PHP install condition. Creating the file for the first time would be a pain, however, using PEAR_PFM would make this much easier, so I don't think there is anything to complain about. In short, this feature is already implemented and has been available since 1.4.9 when multiple <extsrcrelease> tags were allowed again in package.xml 2.0, we need not hold up 1.5.0 for it. Thanks, Greg

« previous php.pear.qa (#3927) next »