Suggestions regarding Pear & PHP5
| From: | Thomas Svenson | Date: | Thu, 18 Dec 2003 15:07:56 +0000 |
| Subject: | Suggestions regarding Pear & PHP5 | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-9657@lists.php.net to get a copy of this message | ||
Since PHP5 has a very improved oo model, I think it would be a good idea to
create a compatibility scheme for Pear projects.
I would like to suggest the following:
PHP4 = Requires PHP v4.x
PHP4+5 = Works with both PHP v4.x and v5.x
PHP5 = Optimized/rewritten to take full advantage of PHP5
Adding to this it would be nice if every package in the Pear project had a
setting for this, plus official PHP releases it is verified to work with.
Then it would be very simple to add a filter to the Packages section of
pear.php.net. This filter will simply let me set the version of PHP I use
and only list items that is verified to be compatible with it.
Another very nice feature would be if it was possible to select x number of
packages (those I plan to use) and then get a list of requirement for these
packages. These requirements would be dependencies of other needed packages,
what PHP needs (compile options) and php.ini settings.
Unless PhpDocumentor already supports it, it would be very nice to be able
to document these dependencies directly in the source code as well.
Another Pear module could then be able to extract this documentation and
thus quickly give me a dependency and requirement list for my installation.
Would this be overkill you think? For me it would most likely save a lot of
time testing packages to check if they work with my PHP, just to discover
later into the project that features doesn't work with the PHP I use and
thus risk to force me to restart development for parts of it.
/Thomas