Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.16

Bug #6106 Notices by list-upgrades (caused by time-outs ?)
Submitted: 2005-11-29 14:02 UTC
From: toggg Assigned: cellog
Status: Closed Package: PEAR
PHP Version: 4.3.11 OS: FC3
Roadmaps: (Not assigned)    
Subscription  


 [2005-11-29 14:02 UTC] toggg
Description: ------------ # pear -d preferred_state=alpha list-upgrades Notice: Array to string conversion in PEAR/XMLParser.php on line 91 Notice: Array to string conversion in PEAR/XMLParser.php on line 106 Notice: Array to string conversion in PEAR/XMLParser.php on line 91 Notice: Array to string conversion in PEAR/XMLParser.php on line 106 pear.php.net Available Upgrades (alpha, beta, stable): ====================================================== Channel Package Local Remote Size pear.php.net Auth 1.2.3 (stable) 1.3.0r3 (beta) 34kB pear.php.net Cache_Lite 1.5.2 (stable) 1.6.0beta2 (beta) 26kB pear.php.net Net_DNS 1.0.0rc1 (beta) 1.0.0b3 (beta) 26kB pear.php.net Net_IPv6 1.0.5 (stable) 1.1.0RC1 (beta) 4.7kB pear.php.net PhpDocumentor 1.3.0RC3 (beta) 1.3.0RC4 (beta) 2664kB pear.php.net XML_RPC 1.4.3 (stable) 1.4.4 (stable) 24kB At this moment, the pear server was peculiarly slow, the list took 40 minutes (more than 200 packages installed) against 2 or 3 minutes normally. I could not reproduce it when server was back in normal conditions.

Comments

 [2005-11-29 14:04 UTC] toggg
s/updates/upgrades/ in summary
 [2005-11-29 14:14 UTC] toggg
Forgot to tell it's a pear 1.4.6 from CVS
 [2005-11-30 06:03 UTC] cellog
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.
 [2005-12-02 17:12 UTC] toggg
Sorry that did it again (cvs updated): # pear -d preferred_state=alpha list-upgrades Notice: Array to string conversion in PEAR/XMLParser.php on line 91 Notice: Array to string conversion in PEAR/XMLParser.php on line 106 Notice: Array to string conversion in PEAR/XMLParser.php on line 91 Notice: Array to string conversion in PEAR/XMLParser.php on line 106 pear.php.net Available Upgrades (alpha, beta, stable): ====================================================== Channel Package Local Remote Size pear.php.net Auth 1.2.3 (stable) 1.3.0r3 (beta) 34kB pear.php.net Cache_Lite 1.5.2 (stable) 1.6.0beta2 (beta) 26kB pear.php.net HTML_QuickForm_advmultiselect 1.0.0 (stable) 1.1.0 (stable) 302kB pear.php.net Net_DNS 1.0.0rc1 (beta) 1.0.0rc3 (beta) 27kB pear.php.net Net_IPv4 1.2 (stable) 1.3.0 (stable) 4.6kB pear.php.net Net_IPv6 1.0.5 (stable) 1.1.0RC1 (beta) 4.7kB pear.php.net PhpDocumentor 1.3.0RC3 (beta) 1.3.0RC4 (beta) 2664kB
 [2005-12-03 00:15 UTC] cellog
I need more information, please insert !is_array($data) or var_dump($data); so we can see what is going on.
 [2005-12-03 08:30 UTC] toggg
Unfortunately I can't give more feedback. This problem occured only once (again) , certainly related to server response time. Nothing easy to trap.
 [2005-12-07 12:28 UTC] fsteinel
I've added the !is_array var_dump in XMLPraser.php on line 91 and 106, here is the output: pear upgrade Cache_Lite string(936) "<commands version="1.0"> <login> <summary>Connects and authenticates to remote server</summary> <shortcut>li</shortcut> <function>doLogin</function> <options /> <doc> Log in to the remote server. To use remote functions in the installer that require any kind of privileges, you need to log in first. The username and password you enter here will be stored in your per-user PEAR configuration (~/.pearrc on Unix-like systems). After logging in, your username and password will be sent along in subsequent operations on the remote server.</doc> </login> <logout> <summary>Logs out from the remote server</summary> <shortcut>lo</shortcut> <function>doLogout</function> <options /> <doc> Logs out from the remote server. This command does not actually connect to the remote server, it only deletes the stored username and password from your user configuration.</doc> </logout> </commands>" resource(32) of type (xml) string(269) "<commands version="1.0"> <build> <summary>Build an Extension From C Source</summary> <function>doBuild</function> <shortcut>b</shortcut> <options /> <doc>[package.xml] Builds one or more extensions contained in a package.</doc> </build> </commands>" resource(34) of type (xml) string(5955) "<commands version="1.0"> <package> <summary>Build Package</summary> <function>doPackage</function> <shortcut>p</shortcut> <options> <nocompress> <shortopt>Z</shortopt> <doc>Do not gzip the package file</doc> </nocompress> <showname> <shortopt>n</shortopt> <doc>Print the name of the packaged file.</doc> </showname> </options> ... and up to 1017 lines of xml code follows...
 [2005-12-07 12:45 UTC] fsteinel
Ohh, pear.php.net has currently a very slow connection, so here the error with var_dump: Note: Line 91 is if (!is_array($data)) var_dump($data); and Line 106 if (!is_array($xp)) var_dump($xp); --------------------------------------- resource(1004) of type (xml) Notice: Array to string conversion in PEAR/XMLParser.php on line 92 resource(1013) of type (xml) Notice: Array to string conversion in PEAR/XMLParser.php on line 108 Notice: Array to string conversion in PEAR/XMLParser.php on line 92 resource(1064) of type (xml) Notice: Array to string conversion in PEAR/XMLParser.php on line 108 Notice: Array to string conversion in PEAR/XMLParser.php on line 92 resource(1072) of type (xml) Notice: Array to string conversion in PEAR/XMLParser.php on line 108 Notice: Array to string conversion in PEAR/XMLParser.php on line 92 resource(1080) of type (xml) Notice: Array to string conversion in PEAR/XMLParser.php on line 108 Notice: Array to string conversion in PEAR/XMLParser.php on line 92 resource(1088) of type (xml) Notice: Array to string conversion in PEAR/XMLParser.php on line 108
 [2005-12-07 13:36 UTC] toggg
I've inserted: if(is_array($data)) {var_dump($data);} before the lines 91 and 106 in PEAR/XMLParser.php # pear -d preferred_state=alpha list-upgrades WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update array(3) { [0]=> string(209) "HTTP/1.1 304 Not Modified Date: Wed, 07 Dec 2005 13:04:10 GMT Server: Apache/1.3.33 (Unix) mod_ssl/2.8.24 OpenSSL/0.9.7d mod_deflate/1.0.21 PHP/4.4.1RC2-dev Connection: close ETag: "5d355-26b-436064df" " [1]=> array(2) { ["ETag"]=> string(20) ""5d355-26b-436064df"" ["Last-Modified"]=> string(29) "Thu, 27 Oct 2005 05:25:51 GMT" } [2]=> array(0) { } } Notice: Array to string conversion in PEAR/XMLParser.php on line 92 array(3) { [0]=> string(209) "HTTP/1.1 304 Not Modified Date: Wed, 07 Dec 2005 13:04:10 GMT Server: Apache/1.3.33 (Unix) mod_ssl/2.8.24 OpenSSL/0.9.7d mod_deflate/1.0.21 PHP/4.4.1RC2-dev Connection: close ETag: "5d355-26b-436064df" " [1]=> array(2) { ["ETag"]=> string(20) ""5d355-26b-436064df"" ["Last-Modified"]=> string(29) "Thu, 27 Oct 2005 05:25:51 GMT" } [2]=> array(0) { } } Notice: Array to string conversion in PEAR/XMLParser.php on line 108
 [2006-01-02 18:21 UTC] cellog
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. finally caught it :)