php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #65316 Missing CURLOPT_IPRESOLVE option in the documentation
Submitted: 2013-07-23 15:57 UTC Modified: 2013-10-04 16:18 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: benjamin dot morel at gmail dot com Assigned: krakjoe (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: benjamin dot morel at gmail dot com
New email:
PHP Version: OS:

 

 [2013-07-23 15:57 UTC] benjamin dot morel at gmail dot com
Description:
------------
The doc page for curl_setopt():
http://php.net/manual/en/function.curl-setopt.php

Does not document the following entry: CURLOPT_IPRESOLVE, which can map to 
CURL_IPRESOLVE_V4 or CURL_IPRESOLVE_V6, even though these 3 constants exist in 
PHP, and work fine.

It would be nice to update the documentation to include these.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-04 16:18 UTC] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&revision=331661
Log: fix #65316 additional info into curlopts
 [2013-10-04 16:18 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2013-10-04 16:18 UTC] krakjoe@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2013-10-29 10:48 UTC] bart at cybox dot nl
The CURLOPT_IPRESOLVE has been addded to the curl_setopt() documentation but the possible values are incorrect!

It says: "possible values are CURLOPT_IPRESOLVE_WHATEVER, CURLOPT_IPRESOLVE_V4, CURLOPT_IPRESOLVE_V6, by default CURLOPT_IPRESOLVE_WHATEVER."

These are incorrect, they are undefined. 
Correct values are:
CURL_IPRESOLVE_WHATEVER, CURL_IPRESOLVE_V4, CURL_IPRESOLVE_V6

(So, as you can see, the prefixes to these constants are CURL_ not CURLOPT_)
 [2013-10-29 11:20 UTC] benjamin dot morel at gmail dot com
@bart Well spotted, could you please open a new bug and give the link here?
 [2013-10-29 11:53 UTC] bart at cybox dot nl
https://bugs.php.net/bug.php?id=65993
 [2020-02-07 06:08 UTC] phpdocbot@php.net
Automatic comment on behalf of krakjoe
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=9810b1ec48a0a84fe7c5cbfd5dd0b15277057ce6
Log: fix #65316 additional info into curlopts
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 08:00:02 2026 UTC