#37894 [Opn->Fbk]: failed to open stream: HTTP request failed!
| From: | tony2001@php.net | Date: | Fri, 23 Jun 2006 14:39:57 +0000 |
| Subject: | #37894 [Opn->Fbk]: failed to open stream: HTTP request failed! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-98716@lists.php.net to get a copy of this message | ||
ID: 37894
Updated by: tony2001@php.net
Reported By: roclar at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: Solaris 10
PHP Version: 4.4.2
New Comment:
What is the web-server used on this host (aka "example.com") and are
you able to connect to it using telnet or something else?
Previous Comments:
------------------------------------------------------------------------
[2006-06-23 14:22:01] roclar at gmail dot com
Recompiled with the same options with the same result though
the error messages seemed to be formatted slightly
different:
Warning: main(http://www.example.com/) [function.main]:
failed to open stream: HTTP request failed! in /path/to/
script/testit.php on line 3
Warning: main() [function.include]: Failed opening 'http://
www.example.com/' for inclusion (include_path='.:/usr/local/
php/lib/php') in /path/to/script/testit.php on line 3
------------------------------------------------------------------------
[2006-06-22 20:30:29] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2006-06-22 20:13:11] roclar at gmail dot com
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 this bug report at http://bugs.php.net/?id=37894&edit=1