| Bug #45785 | Configurable timeout on XMLReader->open() | ||||
|---|---|---|---|---|---|
| Submitted: | 11 Aug 2008 11:38am UTC | Modified: | 10 Jul 1:49pm UTC | ||
| From: | bugzilla-php at roosnl dot com | Assigned to: | |||
| Status: | Bogus | Category: | Feature/Change Request | ||
| Version: | 5.2.6 | OS: | Linux | ||
| Votes: | 5 | Avg. Score: | 4.8 ± 0.4 | Reproduced: | 5 of 5 (100.0%) |
| Same Version: | 4 (80.0%) | Same OS: | 4 (80.0%) | ||
[11 Aug 2008 11:38am UTC] bugzilla-php at roosnl dot com
[10 Jul 10:52am UTC] nick at ihighteam dot com
For me, this has caused a partial site outage on a big project where multiple Apache processes are hung up on PHP waiting to open a remote XML feed that happens to be inaccessible.
[10 Jul 11:31am UTC] pajoye@php.net
All XML extensions use the PHP streams. You can define a shorter timeout using php.ini. Not a bug > bogus.
[10 Jul 1:49pm UTC] rasmus@php.net
Or by setting it in the default stream context just before the open.
