From: roclar at gmail dot com Operating system: Solaris 10 PHP version: 4.4.2 PHP Bug Type: *General Issues Bug description: failed to open stream: HTTP request failed!
Description: ------------ Doing an include('http://www.example.com/'); for names local to the server hang and eventually time out a minute later. Using include for external names as well as to localhost and 127.0.0.1 all work as expected. External servers can use include() to load pages on this server. php.ini Fopen wrappers: allow_url_fopen = On default_socket_timeout = 60 Compile time options: LD_LIBRARY_PATH=/oraclesw/instantclient_10_2 export LD_LIBRARY_PATH ./configure \ --prefix=/usr/local/$1 \ --with-apxs=/usr/local/apache/bin/apxs \ --with-ldap=/usr/local \ --with-mysql=/usr/local/mysql \ --with-oci8-instant-client=/oraclesw/ instantclient_10_2 \ --with-ftp \ --with-gd \ --with-gettext \ --with-iconv \ --with-jpeg-dir=/usr/sfw \ --with-openssl=/usr/sfw \ --with-png-dir=/usr/sfw \ --with-zlib \ --with-zlib-dir \ --with-dom=/usr/local \ --with-dom-xslt=/usr/local \ --with-dom-exslt=/usr/local \ --enable-sockets \ --enable-track-vars \ --enable-xml \ --with-expat-dir=/usr/local \ --enable-mbstring=all \ --with-pspell=/usr Reproduce code: --------------- <?php include('http://www.example.com/'); ?> Expected result: ---------------- For the page to be included successfully. Actual result: -------------- Warning: main(http://www.example.com/): failed to open stream: HTTP request failed! in /path/to/script/testit.php on line 3 Warning: main(): Failed opening 'http://www.wm.edu/it/' for inclusion (include_path='.:/usr/local/php/lib/php') in /path/ to/script/testit.php on line 3 -- Edit bug report at http://bugs.php.net/?id=37894&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37894&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37894&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37894&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37894&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37894&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37894&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37894&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37894&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37894&r=support Expected behavior: http://bugs.php.net/fix.php?id=37894&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37894&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37894&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37894&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37894&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37894&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37894&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37894&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37894&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37894&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37894&r=mysqlcfg