php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #47739 Missing cURL option do disable IPv6
Submitted: 2009-03-20 23:05 UTC Modified: 2009-05-04 12:15 UTC
From: gem at rellim dot com Assigned: pajoye (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 5.2.9 OS: Linux
Private report: No CVE-ID: None
 [2009-03-20 23:05 UTC] gem at rellim dot com
Description:
------------
I am working with a remote web server, not under my control, that has broken IPv6 support.  So I need to make a cURL connection and force an IPv4 connection.  The CLI 'curl' has the '-4' option.  The C API has
the CURL_IPRESOLVE_V4  option.  But I can not see how to force this option using the PHP cURL API.

In a perfect world this would not be required, but I need IPv6 for other things so I can not just diable IPv6 in my PHP.  I can not fix the remote server.  So I need the CURL_IPRESOLVE_V4 option.

Somewhat related to bugs #39637 and #39933


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-04 12:15 UTC] pajoye@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Added to 5.3+
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 03:01:29 2024 UTC