ID: 49930
User updated by: admin at nexcast dot net
Reported By: admin at nexcast dot net
-Status: Open
+Status: Bogus
Bug Type: Streams related
Operating System: Linux 2.6.18-92.el5
PHP Version: 5.3SVN-2009-10-20 (SVN)
New Comment:
Wrong comparison
Previous Comments:
------------------------------------------------------------------------
[2009-10-20 02:47:56] admin at nexcast dot net
Description:
------------
-------------
Configure Line
-------------
Configure Command './configure' '--prefix=/usr/local/php'
'--disable-all' '--with-sqlite' '--enable-fastcgi' '--with-pcre-regex'
'--with-curl' '--with-mysql' '--enable-filter'
--------------
Stream Transports
--------------
Registered PHP Streams php, file, glob, data, http, ftp
PHP However still reports that it does not exist.
Reproduce code:
---------------
<?php
if(fsockopen("http://google.com", 80)) {
echo "Opened.";
} else {
echo "Not opened.";
}
?>
Expected result:
----------------
Opened.
Actual result:
--------------
PHP Warning: fsockopen(): unable to connect to http://google.com:80
(Unable to find the socket transport "http" - did you forget to enable
it when you configured PHP?) in /root/test.php on line 2\
Not opened.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49930&edit=1