From: Laurent Laville on
Hi all,

While I read PEAR Manual, REST section [1], and have a look on my PEAR
1.7.1 copy I've suddenly a doubt about REST implementation.

Does I missed something or is this just a bug in PEAR REST implementation ?

On history there is first protocol REST version 1.0, then 1.1, 1.2 and
finally 1.3

When I have a look on php files in my PEAR 1.7.1 local copy I get :

PEAR\REST\10.php class PEAR_REST_10
PEAR\REST\11.php class PEAR_REST_11
PEAR\REST\13.php class PEAR_REST_13 extends PEAR_REST_10

First question : where is the file REAR\REST\12.php ?
// I'm expected to see something for REST 1.2 implementation


Second question : Why REST 1.1 implementation does not extend base of
class REST 1.0 like REST 1.3 did


Thanks in advance if someone can clarify this situation
It will help me a lot on my PEAR_PackageUpdate works !


Regards
Laurent Laville

[1] http://pear.php.net/manual/en/core.rest.php
From: Christian Weiske on
Hello Laurent,


> While I read PEAR Manual, REST section [1], and have a look on my
> PEAR 1.7.1 copy I've suddenly a doubt about REST implementation.
> Does I missed something or is this just a bug in PEAR REST
> implementation ?

I am the one writing the docs. I took it from Greg's book and from what
people told me. It may be inaccurate or even wrong - nobody ever
reviewed the docs.

I guess 1.1 doesn't extend 1.0 because the changes were too big, and
using 1.1 gives you much more efficient code than rest 1.0.

--
Regards/Mit freundlichen Grüßen
Christian Weiske
From: Laurent Laville on
Christian Weiske a écrit :
> Hello Laurent,
>
>
>> While I read PEAR Manual, REST section [1], and have a look on my
>> PEAR 1.7.1 copy I've suddenly a doubt about REST implementation.
>> Does I missed something or is this just a bug in PEAR REST
>> implementation ?
>
> I am the one writing the docs. I took it from Greg's book and from what
> people told me. It may be inaccurate or even wrong - nobody ever
> reviewed the docs.
>
> I guess 1.1 doesn't extend 1.0 because the changes were too big, and
> using 1.1 gives you much more efficient code than rest 1.0.
>

Hello Christian,

Thanks for your reply. I appreciated a lot !

Ok so I think in my idea to allow using all REST versions on future
version of PPU (PEAR_PackageUpdate), is not bad but ...

As packageInfo() method is now implemented on REST 1.1 I see no
improvement here if someone want only a package information
and not all packages info from a category , as explained in [1]


[1] http://pear.php.net/manual/en/core.rest.directorystructure.php
c/$CategoryName/packagesinfo.xml Info about all packages