Re: Summary: dependencies and Applications
| From: | Stefan Neufeind | Date: | Thu, 21 Aug 2003 19:16:19 +0000 |
| Subject: | Re: Summary: dependencies and Applications | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-20338@lists.php.net to get a copy of this message | ||
On 21 Aug 2003 at 20:02, David Grant wrote:
> On Thursday 21 August 2003 18:44, Greg Beaver wrote:
> > OK, here is an attempted summary of the ideas that were ruled at the
> > very least feasible:
> >
> > #1) (Many people)
> >
> > Immediately move all packages into directories separated by major
> > version number
> >
> > PhpDocumentor 1.x would be in PEAR/1.0/PhpDocumentor
> > PhpDocumentor 2.x woudl be in PEAR/2.0/PhpDocumentor
> >
> > have a placeholder file named PhpDocumentor.php which contains this
> > code:
> >
> > <?php
> > trigger_error('WARNING: require_once "PhpDocumentor.php" is
> > deprecated, use require_once "PEAR/majorversion/PhpDocumentor.php"
> > as in require_once "PEAR/1/PhpDocumentor.php"', E_USER_WARNING);
> > define('INCLUDE_PATH_SEPARATOR', substr(PHP_OS, 0, 3) == 'WIN' ?
> > ';'
> > : ':'); // set the include path so that it works without
> > modification to the package // this will not work on some systems,
> > so it may be best to instead modify a package
> > set_include_path(dirname(__FILE__) . '/1' . INCLUDE_PATH_SEPARATOR .
> > get_include_path()); ?>
>
> Please clarify: one example states PEAR/1.0/, the other PEAR/1/.
As stated earlier: 1.0 classifies 1.x - meaning: major-version 1. So
1.0 and 1 are "virtually the same" (means: have the same meaning
here).