Re: PHP5 and namespaces for PEAR packages.

From: Date: Sat, 05 Apr 2003 09:45:31 +0000
Subject: Re: PHP5 and namespaces for PEAR packages.
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-14909@lists.php.net to get a copy of this message
--- George Schlossnagle <george@omniti.com> wrote: > > On Saturday, April 5, 2003, at 01:14 AM, Sebastian Bergmann wrote: > > > Shane Caraveo wrote: > >> We also need a standard PHP_5 branch for pear (if one does not already > >> exist). > > > > Such a branch should rather be per package (as with PHPUnit and XML > > Transformer) than global. > > Why should the branch not be global? Whether it is acted on in a > particular extension is immaterial. A global branch provides good > consistency. My guess is that it can be done in 2 ways. In the first there is a global ZEND2 or PHP5 branch of the whole pear repository, and then packages move to that branch as they get converted, this would keep consistency accross the repository. The second option is to let each package have ZEND1/PHP4 and ZEND2/PHP5 branches, this is easier to do for any developer familiar w/ CVS, but may cause some inconsistencies, in particular among pacakges that depend on each other, nothing unsolvable IMHO. Another, more radical option, is to have 2 pear CVS trees, reserving the one we already have for the code that will work with PHP4 or PHP5 (i.e. the one that does not use namespaces, private/protected/public, etc.), and a new one for the packages that will only work with PHP5. Not sure if that would cause more confusion than the branching approaches, after all in the package.xml we can require PHP5 for any new release of a particular package. BTW, I wrote a blurb on object comparison in PHP4 for the PHP manual, and now I am adding another for PHP5 (will include a note saying that the information is still 'Experimental'). ===== --- Jesus M. Castagnetto (jcastagnetto@yahoo.com) Research: http://metallo.scripps.edu/ Personal: http://www.castagnetto.org/ __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com

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