From:             coadmin at hostings dot pl
Operating system: FreeBSD 4.9 and 5.2.1
PHP version:      4CVS-2004-04-16 (stable)
PHP Bug Type:     URL related
Bug description:  HTTP request failed!

Description:
------------
PHP randomly crashes(?) and some functions couldn't open HTTP connection.
I found these are bad:

getimagesize()

fopen()

fsockopen()

and others...



I checked two different servers with different hardware and different
systems: FreeBSD 4.9-STABLE and FreeBSD 5.2.1-p3. I checked following PHP
versions: 4.3.3, 4.3.4, 4.3.5, 4.3.6, 4.3.7-dev. All are affected. Apache
version is 1.3.29. PHP is compiled as mod_php.





Reproduce code:
---------------
URL requests crashes about a few minutes to a few hours after starting
apache. Apache restart is helpfull and make functions working again for
next a few hours. After it is the same, next restart, works for some time,
and the same... During crash others PHP functions works well.

Actual result:
--------------
Sample logs:



[1]



PHP Warning:  getimagesize(http://foo.com/image.jpg): failed to open
stream: HTTP request failed! ^L°^R^A in /home/foo/public_html/index.php on
line 1053



[2]



PHP Warning:  fopen(http://foo.com/check.php?id=111&code=xxx): failed to
open stream: HTTP request failed! @Áå^L in /home/foo/public_html/check.php
on line 19



[3]



PHP Warning:  copy(http://foo.com/file.php?board=2700&zip=1): failed to
open stream: HTTP request failed! ^LpLÒ^K in

 /home/foo/public_html/zip.php on line 44



And many others... I'm always receiving strange code after the "HTTP
request failed!" info.

-- 
Edit bug report at http://bugs.php.net/?id=28029&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28029&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28029&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28029&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28029&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28029&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28029&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28029&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28029&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28029&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28029&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28029&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28029&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28029&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28029&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28029&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28029&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28029&r=float

Reply via email to