Pure PHP 5 Pear Base class

This is a discussion on Pure PHP 5 Pear Base class within the PHP and Pear General (php.pear.general) forum.

Pure PHP 5 Pear Base class

Postby Micah Gersten on Tue Dec 02, 2008 4:29 pm

Is it possible to fork the base class to have a pure PHP 5 version?
With the retirement of PHP 4 almost 4 months ago, it would seem that
everything should be moving to pure PHP 5 and beyond.

--


Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com/

Micah Gersten
 
Posts: 172
Joined: Thu Jul 17, 2008 1:42 pm

Re: [PEAR] Pure PHP 5 Pear Base class

Postby Daniel O'Connor on Tue Dec 02, 2008 5:17 pm

Yup, that's what PEAR2 will be all about.

We are:

1. Not accepting PHP4 package proposals (and haven't for some time)
2. Working on the next version of PEAR, called Pyrus
3. Encouraging authors to migrate their existing code where applicable.


On Wed, Dec 3, 2008 at 9:59 AM, Micah Gersten wrote:

> Is it possible to fork the base class to have a pure PHP 5 version?
> With the retirement of PHP 4 almost 4 months ago, it would seem that
> everything should be moving to pure PHP 5 and beyond.
>
Daniel O'Connor
 
Posts: 66
Joined: Sat Oct 14, 2006 10:37 pm

Re: [PEAR] Pure PHP 5 Pear Base class

Postby Micah Gersten on Tue Dec 02, 2008 6:26 pm

I didn't see it on the Roadmap for PEAR 2, that's why I was asking.

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com/



Daniel O'Connor wrote:
> Yup, that's what PEAR2 will be all about.
>
> We are:
>
> 1. Not accepting PHP4 package proposals (and haven't for some time)
> 2. Working on the next version of PEAR, called Pyrus
> 3. Encouraging authors to migrate their existing code where applicable.
>
>
> On Wed, Dec 3, 2008 at 9:59 AM, Micah Gersten > mailto:micah@onshore.com> wrote:
>
> Is it possible to fork the base class to have a pure PHP 5 version?
> With the retirement of PHP 4 almost 4 months ago, it would seem that
> everything should be moving to pure PHP 5 and beyond.
>
>
Micah Gersten
 
Posts: 172
Joined: Thu Jul 17, 2008 1:42 pm

Re: [PEAR] Pure PHP 5 Pear Base class

Postby Alexey Borzov on Wed Dec 03, 2008 6:44 am

Hi,

Micah Gersten wrote:
> Is it possible to fork the base class to have a pure PHP 5 version?
> With the retirement of PHP 4 almost 4 months ago, it would seem that
> everything should be moving to pure PHP 5 and beyond.

Do you mean PEAR class itself? It's not needed anymore, most of its methods
emulate stuff that is natively available in PHP5.
Alexey Borzov
 
Posts: 377
Joined: Wed Jul 16, 2003 2:40 am

Re: [PEAR] Pure PHP 5 Pear Base class

Postby Micah Gersten on Wed Dec 03, 2008 10:04 am



Alexey Borzov wrote:
> Hi,
>
> Micah Gersten wrote:
>> Is it possible to fork the base class to have a pure PHP 5 version?
>> With the retirement of PHP 4 almost 4 months ago, it would seem that
>> everything should be moving to pure PHP 5 and beyond.
>
> Do you mean PEAR class itself? It's not needed anymore, most of its
> methods emulate stuff that is natively available in PHP5.
>

Yes, that's what I meant. Even if the functions inside are no longer
needed, then it still should be upgraded to PHP 5 and just have the
emulated functions call the appropriate built in PHP 5 functions so the
API doesn't break. Anyways, someone else already said this is on task
to be completed for PEAR 2.

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com/


Micah Gersten
 
Posts: 172
Joined: Thu Jul 17, 2008 1:42 pm

Re: [PEAR] Pure PHP 5 Pear Base class

Postby Alexey Borzov on Wed Dec 03, 2008 10:11 am

Hi,

Micah Gersten wrote:
>>> Is it possible to fork the base class to have a pure PHP 5 version?
>>> With the retirement of PHP 4 almost 4 months ago, it would seem that
>>> everything should be moving to pure PHP 5 and beyond.
>> Do you mean PEAR class itself? It's not needed anymore, most of its
>> methods emulate stuff that is natively available in PHP5.
>>
>
> Yes, that's what I meant. Even if the functions inside are no longer
> needed, then it still should be upgraded to PHP 5 and just have the
> emulated functions call the appropriate built in PHP 5 functions so the
> API doesn't break.

That's not quite possible and not quite useful. Most of the functions there deal
with error handling and PHP5 error handling in PEAR is based on exceptions.

> Anyways, someone else already said this is on task
> to be completed for PEAR 2.

You misunderstood what was said. Base PEAR2 class that is backwards compatible
with base PEAR class is certainly not planned.
Alexey Borzov
 
Posts: 377
Joined: Wed Jul 16, 2003 2:40 am


Return to PHP and Pear General (php.pear.general)

Who is online

Users browsing this forum: No registered users and 0 guests