PEAR is archived and read-only

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

Home » XML » XML_Parser » Bug #2451

Socket timeout

Details

Request #2451Socket timeout
Submitted2004-10-04 21:10 UTC
Fromeh at escio dot no
Assignedschst
StatusWont fix
PackageXML_Parser
PHP Version4.3.7
OSWIn XP
Roadmaps(Not assigned)

Comments

[2004-10-04 21:10 UTC] eh at escio dot no

Description:
------------
XML_Parser::setInputFile will try to fopen for default_socket_timeout seconds (from php.ini). When working with remote files it should be possible to set a shorter timeout-period in case the remote resource is not available - or be other means do more errorchecking for remote connections.

Suggest to add method for setting timeout period (default: use default_socket_timeout from php.ini):

setTimeoutPeriod($timeout)