php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49930 Failed to detect socket transport
Submitted: 2009-10-20 02:47 UTC Modified: 2009-10-20 03:14 UTC
From: admin at nexcast dot net Assigned:
Status: Not a bug Package: Streams related
PHP Version: 5.3SVN-2009-10-20 (SVN) OS: Linux 2.6.18-92.el5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
16 - 13 = ?
Subscribe to this entry?

 
 [2009-10-20 02:47 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-20 03:14 UTC] admin at nexcast dot net
Wrong comparison
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 13:01:30 2024 UTC