Skip to content

curl_seek bug #47204 #581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

curl_seek bug #47204 #581

wants to merge 1 commit into from

Conversation

bhoehl
Copy link

@bhoehl bhoehl commented Feb 5, 2014

current curl extension does not work with file upload to servers which
do a redirect like Amazon web services S3
added curl seek callback functionality to fix this
seek callback function must return a bool

current curl extension does not work with  file upload to servers which
do a redirect like Amazon web services S3
added curl seek callback functionality to fix this
seek callback function must return a bool
@php-pulls php-pulls mentioned this pull request Apr 20, 2014
@bhoehl
Copy link
Author

bhoehl commented Jun 24, 2014

What is missing for this request to be merged ?
Do you mean to add a NEWS file to the top or modify the existing one ?

curl_setopt($ch, CURLOPT_UPLOAD, 1);
curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SEEKFUNCTION, 'seek_callback');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about a closure callback?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bhoehl he means something like that

curl_setopt($ch, CURLOPT_SEEKFUNCTION, function() {
  // my seek function code here
});

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, is that supported?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@laruence
as closures for sure are handled differently than a string callback, I assume not.
I need to lookup and add, if wanted

@krakjoe
Copy link
Member

krakjoe commented Jan 4, 2017

Since this targets PHP 5, which is now in security fix only release cycle, I'm closing this PR.

Please take this action as encouragement to push forward with the feature, by creating a clean PR against a supported version of PHP.

@krakjoe krakjoe closed this Jan 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants