#26016 [Com]: Warning: fsockopen(): Bug
| From: | andrew at shh dot fi | Date: | Fri, 19 Mar 2004 08:39:54 +0000 |
| Subject: | #26016 [Com]: Warning: fsockopen(): Bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-56664@lists.php.net to get a copy of this message | ||
ID: 26016
Comment by: andrew at shh dot fi
Reported By: hill at bluecarrots dot com
Status: No Feedback
Bug Type: *General Issues
Operating System: Linux
PHP Version: 4.3.3
New Comment:
The error is real except this guy has the wrong script.
I have the same problem - this is the script:
$method = "ssl://";
$host = "myserver.com";
$port = 443;
$fp = fsockopen($method.$host, $port, $errno, $errstr, $timeout = 30);
I get the error:
Warning: fsockopen(): no SSL support in this build
AND SSL is loaded in php. Its a bug I patch on windows, but need one
for linux
Previous Comments:
------------------------------------------------------------------------
[2003-11-03 14:06:38] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2003-10-28 04:44:03] alan_k@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
please provide a sample script to illustrate the problem
------------------------------------------------------------------------
[2003-10-28 04:40:30] hill at bluecarrots dot com
Description:
------------
I get the warning at the top of the page. Several refreshes of the
browser rectifies.
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed:
Name or service not known in /home/.sites/.blah....php on line 14
Warning: fsockopen(): unable to connect to blah.com:80 in
/home/.sites/blah.....php on line 14
Resource temporarily unavailable (11)
Reproduce code:
---------------
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed:
Name or service not known in /home/.sites/.blah....php on line 14
Warning: fsockopen(): unable to connect to blah.com:80 in
/home/.sites/blah.....php on line 14
Resource temporarily unavailable (11)
Expected result:
----------------
I expect the page to connect securely to a secure server and send some
secure details.
I get the warning at the top of the page. Several refreshes of the
browser rectifies. I have to use this PHP code, which has been provided
by the Payment provider, to get to a server that takes online payments,
some information is first sent securely in order to reach the payment
page on the Payment providers server.
Actual result:
--------------
The simle page takes time to load and when it does the fsockopen
warning is present.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26016&edit=1