PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Web Services » XML_RPC » Bug #4833

Wrong PHP version dependency

Details

Submitted2005-07-14 13:01 UTC
Fromnkahn at cmd dot lu
Assigneddanielc
StatusDuplicate
PackageXML_RPC
PHP Version4.2.2
OSRed Hat Linux 9 (Shrike)
Roadmaps(Not assigned)

Comments

[2005-07-14 13:01 UTC] nkahn at cmd dot lu

Description:
------------
Since version 1.3.0 of XML_RPC package PHP Stream functions are used (stream_set_timeout and stream_get_meta_data in file RPC.php). These functions were introduced with PHP 4.3.0 so there are not available in previous PHP version. However the PHP version dependency of the XML_RPC package hasn't been updated and is still configured with "PHP 4.2.0 or newer" which is wrong.
The main problem is that this package seems to be used by pear command line tools to manage pear packages upgrade and installation. So when version 1.3.0 or newer of XML_RPC package is installed on a system which runs PHP 4.2.2 or older then pear command-line tool couldn't be used anymore.
Could you have a look at it please ?
Thank you.
Best regards,

Nicolas Kahn

[2005-07-15 07:08 UTC] nkahn at cmd dot lu

Sorry for the duplication of bug report.
Problem of dependency still remains for function "stream_get_meta_data".
If you only use "timed_out" item returned by that function, you should use "socket_get_status" instead since it's compatible with any PHP 4 version.