php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33557 fsocketopen does not open connections
Submitted: 2005-07-03 20:59 UTC Modified: 2005-08-22 01:00 UTC
Votes:4
Avg. Score:4.5 ± 0.9
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:1 (25.0%)
From: dominic at authorsoftware dot com Assigned:
Status: No Feedback Package: Network related
PHP Version: 5.0.4 OS: Windows Server 2003
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-07-03 20:59 UTC] dominic at authorsoftware dot com
Description:
------------
Using fsockopen on Windows Server 2003 from the CLI, appears not to work at all, php returns with a unable to connect.

using either local loopback, IP address or hostnames



Expected result:
----------------
It should at least try and connect, however it returns immediately saying it can't connect, it doesn't appear to even try.

I went back to PHP 4.3.11 on the server at it all works fine with that version.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-03 21:00 UTC] dominic at authorsoftware dot com
This is applicable to TCP connections havn't tested UDP.
 [2005-07-03 21:18 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [2005-07-11 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2005-08-14 18:57 UTC] peter dot westwood at ftwr dot co dot uk
Hi.

I was seing this problem on WindowsXP using XAMPP 1.4.13 with bundled PHP5 (v5.0.4) using PHP with apache2 updating to the referred CVS snapshot doesn't fix this issue.

Looking at the Ethernet Comms with Ethereal with both v5.0.4 and the CVS snapshot the SYN for the connection is sent and the SYN-ACK recieved from the remote host together with the ACK to the SYN-ACK being sent before PHP gives up and returns the following error:

Warning: fsockopen() [function.fsockopen]: unable to connect to sandbox.ftwr.co.uk:80 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:\apachefriends\xampp\htdocs\wordpress\wp-includes\class-IXR.php on line 514

Cheers
-- 
Peter
 [2005-08-15 00:39 UTC] wez@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.


A sample script would be helpful.
 [2005-08-22 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 11:01:27 2024 UTC