Re: PHP 5
| From: | Antonio Carlos Venancio Junior | Date: | Sun, 10 Feb 2002 10:55:53 +0000 |
| Subject: | Re: PHP 5 | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-4542@lists.php.net to get a copy of this message | ||
Martin,
"Martin Jansen" <mail@martin-jansen.de> wrote:
| On 05 Feb 2002 10:14:47 +0100, Stig S. Bakken wrote:
|
| >1. Namespaces: we should migrate our current naming scheme to a
| >namespace-based one. HTML_Form becomes HTML::Form, and so on. This
| >can not be done in a portable way without automatically converting
| >files, or something like that. We could provide a code "downgrading"
| >tool converting from PHP 5 to PHP 4 syntax, and integrate it in either
| >the packaging or installation process.
|
| +1 for putting a conversion routine in the installation process.
|
| >And the $10,000 question: how much work should we put into giving
| >people a smooth migration path? I would like to get everyone running
| >PHP 5 ASAP, but this is of course utopic.
|
| A lot of people will not install PHP 5 vey quickly, because it will
| break a lot of their scripts and they simply don't have the time to
| change them all (*). I expect a big % of people to stick to the latest
| version of PHP 4 for a pretty long time, until they finally decide
| to use PHP 5.
But I know that mid/large providers that have thousands of clients
running at the same server will add support to PHP 5 to their servers
without leave the support in Apache for PHP 4 and PHP 3. And that
providers are more than 70% of the "market" I think.
I have some things coded in PHP 3 that are still running. Only the PHP 2
things are down. =)
So I think the best thing to do is to make PEAR "php-5-ready" as the time
goes.
| So I don't think we can make PEAR _only_ compatible with PHP 5 in
| the short term: IMO it is really nice of us if we change the
| existing stuff (like DB etc.) in a way, so that it is still
| compatible to PHP 4 (with some conversion routines during the
| installation perhaps), but also takes some advantages of the kewl
| new PHP 5 features. I don't know how far this will work, but hope is
| not forbidden, no? ;-).
|
| All new stuff that comes to PEAR, after a stable version of PHP 5 has
| been released, does not need to run with PHP 4 of course.
|
| - Martin
|
| (*) Unless they are one of the start-ups that have more free time as
| they want. :-)
Cya
Antonio
.-===================================================================-.
| Can't buy what I want because its FREE! - Pearl Jam |
|-===================================================================-|
| ICQ# 9253680 | Floripa | MySQL | PHP | FreeBSD - The Power to Serve |
`-===================================================================-'