PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Web Services » Services_ExchangeRates » Bug #703

Cache gets corrupted (?) after timeout

Details

Submitted2004-02-07 11:39 UTC
Fromgcbirzan at wolfheart dot ro
StatusSuspended
PackageServices_ExchangeRates
PHP Version4.3.6
OSLinux
Roadmaps(Not assigned)

Comments

[2004-02-07 11:39 UTC] gcbirzan at wolfheart dot ro

Description:
------------
It tries to fetch the new rates and fails to resolve the hosts. That by itself is strange, since the NS is up and running, the records cached... (No, I didn't get a tcpdump of the conversation, didn't think that far).

After that, I get similar errors to the ones posted below, which can only be fixed by removing its cache, from /tmp/.

Actual result:
--------------
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /usr/share/php/Net/Socket.php on line 108

Warning: fsockopen(): unable to connect to www.ecb.int:80 in /usr/share/php/Net/Socket.php on line 108

Warning: Invalid argument supplied for foreach() in /usr/share/php/Services/ExchangeRates/Rates_ECB.php on line 92

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /usr/share/php/Net/Socket.php on line 108

Warning: fsockopen(): unable to connect to www.unece.org:80 in /usr/share/php/Net/Socket.php on line 108

Warning: Invalid argument supplied for foreach() in /usr/share/php/Services/ExchangeRates/Currencies_UN.php on line 78

Warning: Invalid argument supplied for foreach() in /usr/share/php/Services/ExchangeRates.php on line 229

Warning: asort() expects parameter 1 to be array, null given in /usr/share/php/Services/ExchangeRates.php on line 237

Warning: array_keys(): The first argument should be an array in /usr/share/php/Services/ExchangeRates.php on line 243

Warning: in_array(): Wrong datatype for second argument in /usr/share/php/Services/ExchangeRates.php on line 243

[2004-07-08 12:55 UTC] jbaggen at ip2 dot nl

Same problem on FreeBSD 4.x with Apache/1.3.29 (Unix) PHP/4.3.6 mod_ssl/2.8.16 OpenSSL/0.9.7d

Deleting the cache solves the problem:

rm /tmp/cache_<md5>_<md5>

[2004-09-01 08:45 UTC] mstuhu at web dot de

Same problem here:

Warning: fsockopen(): unable to connect to 193.96.201.13:80 in /usr/local/lib/php/Net/Socket.php on line 108

Only deleting the cache file helps.

[2006-01-05 06:58 UTC] btree123 at gmail dot com

The same problem , any update !