php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64329 CURLOPT_FTP_SKIP_PASV_IP does not exist
Submitted: 2013-03-01 04:28 UTC Modified: 2013-03-01 19:14 UTC
From: daniel at c-books dot co dot uk Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.4.12 OS: any
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: daniel at c-books dot co dot uk
New email:
PHP Version: OS:

 

 [2013-03-01 04:28 UTC] daniel at c-books dot co dot uk
Description:
------------
he CURLOPT_FTP_SKIP_PASV_IP option is part of libcurl (see http://curl.haxx.se/libcurl/c/curl_easy_setopt.html ) but no predefined constant exists for use with curl_setopt().

This was requested 2010-01-14.

https://bugs.php.net/bug.php?id=50756

No resolution has been provided to date.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-01 04:41 UTC] pierrick@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

This constant will be available in php5.5
 [2013-03-01 04:41 UTC] pierrick@php.net
-Status: Open +Status: Not a bug
 [2013-03-01 04:59 UTC] daniel at c-books dot co dot uk
I am confused how am I not using a current version of PHP?

PHP Info: PHP Version 5.4.12

PHP Downloads: PHP 5.4.12 (Current stable)
 [2013-03-01 19:14 UTC] sixd@php.net
That boiler plate might have been confusing (I believe the drop down menu that 
adds it to a bug just says "try a newer version" and doesn't mention which 
component is old). The answer is probably that your cURL version is not the most 
recent. Looking at PHP 5.4.11's ext/curl/interface.c there is code for this 
constant if your libcurl version is recent enough.

#if LIBCURL_VERSION_NUM >= 0x070f01
	REGISTER_CURL_CONSTANT(CURLOPT_FTP_FILEMETHOD);
	REGISTER_CURL_CONSTANT(CURLOPT_FTP_SKIP_PASV_IP);
#endif
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 02 14:01:31 2025 UTC