For Programmers: Free Programming Magazines  


Home > Archive > PHP PEAR Questions and Answers > October 2004 > Re: [PEAR-QA] call to action for PEAR 1.3.2









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR-QA] call to action for PEAR 1.3.2
Arnaud Limbourg

2004-10-22, 3:56 pm

Everything is tried under Linux using php 5.0.1


1. Gopear

I used ~/testbed/pear/go-pear as a prefix. Everything went right except the files are not there. I don't know where they got installed or if they even did.

I tried again with /home/arnaud/testbed/pear/go-pear and it worked.

Upgraded to 1.3.2 by checking out PEAR_1_3 of pear-core with pear install -f package-PEAR.xml.


3. The install command still downloads then checks dependencies (see [5])

4. It would be nice if the fail on a dependency that does not match the preferred_state could happen before the actual download (see [1])

Setting the state to something lower makes it work as it should. So the command is behaving correctly except the error message popping up late in the process (after the download). See [2]

5. Only required dependencies work well. See [4]


6. Upgrade scenario see [6]. Result of pear upgrade OK see [7]

7. Pear upgrade-all works see [8]. I didn't try with a package that fails.

8. pear remote-list

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3735552 bytes) in /usr/lib/php/XML/RPC.php(750) : eval()'d code on line 766
Allowed memory size of 8388608 bytes exhausted (tried to allocate 256 bytes)

I didn't try all the other commands but i got a couple of those in the remote-acting commands.

Hope that helps.


[1]
pear install -a SOAP
No release with state equal to: 'stable' found for 'SOAP'
development/pear-core> pear install -a SOAP-beta
downloading SOAP-0.8RC3.tgz ...
Starting to download SOAP-0.8RC3.tgz (67,608 bytes)
..................done: 67,608 bytes
downloading Mail_Mime-1.2.1.tgz ...
Starting to download Mail_Mime-1.2.1.tgz (15,268 bytes)
....done: 15,268 bytes
downloading HTTP_Request-1.2.3.tgz ...
Starting to download HTTP_Request-1.2.3.tgz (12,823 bytes)
....done: 12,823 bytes
downloading Net_URL-1.0.14.tgz ...
Starting to download Net_URL-1.0.14.tgz (5,173 bytes)
....done: 5,173 bytes
downloading Net_Socket-1.0.2.tgz ...
Starting to download Net_Socket-1.0.2.tgz (3,706 bytes)
....done: 3,706 bytes
Release for 'soap' dependency 'Net_DIME' has state 'beta', requires 'stable'
install failed
development/pear-core>



[2]
pear config-set preferred_state devel
development/pear-core> sudo pear install -a liveuser-beta
downloading LiveUser-0.13.2.tgz ...
Starting to download LiveUser-0.13.2.tgz (173,325 bytes)
......................................done: 173,325 bytes
downloading MDB-1.3.0.tgz ...
Starting to download MDB-1.3.0.tgz (218,957 bytes)
....done: 218,957 bytes
downloading XML_Tree-2.0.0RC2.tgz ...
Starting to download XML_Tree-2.0.0RC2.tgz (8,827 bytes)
....done: 8,827 bytes
downloading Crypt_RC4-1.0.2.tgz ...
Starting to download Crypt_RC4-1.0.2.tgz (1,850 bytes)
....done: 1,850 bytes
install ok: Crypt_RC4 1.0.2
install ok: XML_Tree 2.0.0RC2
install ok: MDB 1.3.0
install ok: LiveUser 0.13.2


[3]
development/pear-core> sudo pear install -o liveuser-beta
downloading LiveUser-0.13.2.tgz ...
Starting to download LiveUser-0.13.2.tgz (173,325 bytes)
......................................done: 173,325 bytes
skipping Package 'liveuser' optional dependency 'DB'
skipping Package 'liveuser' optional dependency 'MDB'
skipping Package 'liveuser' optional dependency 'XML_Tree'
skipping Package 'liveuser' optional dependency 'Crypt_RC4'
skipping Package 'liveuser' optional dependency 'MDB2'
install ok: LiveUser 0.13.2

The following is modified package.xml to have a required and optional dependency in the smae package.

sudo pear install -o package.xml
skipping Package 'liveuser' optional dependency 'MDB'
skipping Package 'liveuser' optional dependency 'XML_Tree'
skipping Package 'liveuser' optional dependency 'MDB2'
install ok: LiveUser 0.13.2


[5]

sudo pear install http://pear.php.net/get/HTML_QuickForm-3.2.2.tgz
downloading HTML_QuickForm-3.2.2.tgz ...
Starting to download HTML_QuickForm-3.2.2.tgz (88,941 bytes)
......................done: 88,941 bytes
requires package `HTML_Common' >= 1.2.1
HTML_QuickForm: Dependencies failed


[6]
pear list-upgrades Available Upgrades (devel, alpha, beta, stable):
========================================
========
Package Local Remote Size
Config 1.10.1 (stable) 1.10.3 (stable) 18.0kB
HTML_QuickForm 3.2.2 (stable) 3.2.4pl1 (stable) 91kB
MDB2 2.0.0alpha1 (alpha) 2.0.0beta2 (beta) 173kB


[7]
sudo pear upgrade config
downloading Config-1.10.3.tgz ...
Starting to download Config-1.10.3.tgz (18,349 bytes)
.......done: 18,349 bytes
upgrade ok: Config 1.10.3


[8]
sudo pear upgrade-all
Will upgrade html_quickform
Will upgrade mdb2
downloading HTML_QuickForm-3.2.4pl1.tgz ...
Starting to download HTML_QuickForm-3.2.4pl1.tgz (93,144 bytes)
......................done: 93,144 bytes
downloading MDB2-2.0.0beta2.tgz ...
Starting to download MDB2-2.0.0beta2.tgz (176,377 bytes)
....done: 176,377 bytes
upgrade-all ok: MDB2 2.0.0beta2
upgrade-all ok: HTML_QuickForm 3.2.4pl1

On Fri, 22 Oct 2004 02:15:59 -0400
Greg Beaver <cellog@php.net> wrote:

> Hi,
>
> It's that time again. I will release PEAR 1.3.2 in 2 days unless you
> QAers find any issues. Tests that must be run:
>
> 1) go-pear with the current PEAR
> a) on linux
> b) on windows
>
> 2) make install with php4 and php5 (linux)
>
> 3) pear install
>
> 4) pear install -a
>
> 5) pear install -o
>
> 6) pear upgrade
>
> 7) pear upgrade-all (this should work even if a single package fails)
>
> 8) try the other commands out, make sure there's no fatal errors
>
> Greg
>
> --
> PEAR QA Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Greg Beaver

2004-10-22, 8:55 pm

Arnaud Limbourg wrote:
> Everything is tried under Linux using php 5.0.1
>
>
> 1. Gopear
>
> I used ~/testbed/pear/go-pear as a prefix. Everything went right except the files are not there. I don't know where they got installed or if they even did.
>
> I tried again with /home/arnaud/testbed/pear/go-pear and it worked.


This may be a bug in PHP - not sure though.

> 3. The install command still downloads then checks dependencies (see [5])


This is not fixable in 1.3, but was a primary goal of 1.4. To fix it
requires a rewrite of the installer/downloader (which I have completed).

> 4. It would be nice if the fail on a dependency that does not match the preferred_state could happen before the actual download (see [1])


same answer :)

> Setting the state to something lower makes it work as it should. So the command is behaving correctly except the error message popping up late in the process (after the download). See [2]
>
> 5. Only required dependencies work well. See [4]


this is more serious. I'll see if I can scrape a fix up.

> 8. pear remote-list
>
> Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3735552 bytes) in /usr/lib/php/XML/RPC.php(750) : eval()'d code on line 766
> Allowed memory size of 8388608 bytes exhausted (tried to allocate 256 bytes)
>
> I didn't try all the other commands but i got a couple of those in the remote-acting commands.


This is a bug in the XML_RPC class that is because of the design choices
made, and would require a complete rewrite of XML_RPC to fix :(.

> Hope that helps.


it does :)

> [1]
> pear install -a SOAP
> No release with state equal to: 'stable' found for 'SOAP'
> development/pear-core> pear install -a SOAP-beta
> downloading SOAP-0.8RC3.tgz ...
> Starting to download SOAP-0.8RC3.tgz (67,608 bytes)
> .................done: 67,608 bytes
> downloading Mail_Mime-1.2.1.tgz ...
> Starting to download Mail_Mime-1.2.1.tgz (15,268 bytes)
> ...done: 15,268 bytes
> downloading HTTP_Request-1.2.3.tgz ...
> Starting to download HTTP_Request-1.2.3.tgz (12,823 bytes)
> ...done: 12,823 bytes
> downloading Net_URL-1.0.14.tgz ...
> Starting to download Net_URL-1.0.14.tgz (5,173 bytes)
> ...done: 5,173 bytes
> downloading Net_Socket-1.0.2.tgz ...
> Starting to download Net_Socket-1.0.2.tgz (3,706 bytes)
> ...done: 3,706 bytes
> Release for 'soap' dependency 'Net_DIME' has state 'beta', requires 'stable'
> install failed


This, however, might be fixable, I'll see if I can do it without a rewrite.

> The following is modified package.xml to have a required and optional dependency in the smae package.
>
> sudo pear install -o package.xml
> skipping Package 'liveuser' optional dependency 'MDB'
> skipping Package 'liveuser' optional dependency 'XML_Tree'
> skipping Package 'liveuser' optional dependency 'MDB2'
> install ok: LiveUser 0.13.2


what was the required dep?

Greg
Greg Beaver

2004-10-22, 8:55 pm

Arnaud Limbourg wrote:
> pear install -a SOAP
> No release with state equal to: 'stable' found for 'SOAP'
> development/pear-core> pear install -a SOAP-beta
> downloading SOAP-0.8RC3.tgz ...
> Starting to download SOAP-0.8RC3.tgz (67,608 bytes)
> .................done: 67,608 bytes
> downloading Mail_Mime-1.2.1.tgz ...
> Starting to download Mail_Mime-1.2.1.tgz (15,268 bytes)
> ...done: 15,268 bytes
> downloading HTTP_Request-1.2.3.tgz ...
> Starting to download HTTP_Request-1.2.3.tgz (12,823 bytes)
> ...done: 12,823 bytes
> downloading Net_URL-1.0.14.tgz ...
> Starting to download Net_URL-1.0.14.tgz (5,173 bytes)
> ...done: 5,173 bytes
> downloading Net_Socket-1.0.2.tgz ...
> Starting to download Net_Socket-1.0.2.tgz (3,706 bytes)
> ...done: 3,706 bytes
> Release for 'soap' dependency 'Net_DIME' has state 'beta', requires 'stable'
> install failed


fixed in cvs, and in about 5 minutes of trying (thank you Zend IDE!)

Greg
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com