Skip to content
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

Curl socket issue #214

Closed
kszucs opened this issue Dec 13, 2011 · 3 comments
Closed

Curl socket issue #214

kszucs opened this issue Dec 13, 2011 · 3 comments
Labels
Milestone

Comments

@kszucs
Copy link

kszucs commented Dec 13, 2011

$pThumb = Environment::get('import.src.remote.thumb') . "/$data->pic";
$pFlash = Environment::get('import.src.remote.flash') . "/$data->swf";

$service = new Service(array(
    'host' => Environment::get('import.src.remote.host'),
    'socket' => 'Curl
));

if (
    !file_put_contents($dThumb, $service->get($pThumb)) ||  
    !file_put_contents($dFlash, $service->get($pFlash)) 
) {
    $success = false;
}

Both responses are equal, but the sources are different.
With Context socket it works fine.

@daschl
Copy link
Contributor

daschl commented Dec 13, 2011

Can you please provide more information on the problem itself? A more verbose problem description and a stack trace would be great. If you can, please provide a test case so we can reproduce the problem (but this is of course not mandatory)

Thanks,
Michael

mackstar added a commit to mackstar/lithium that referenced this issue Jan 12, 2012
@mackstar
Copy link
Member

I have posted a patch and test, will close this when verified and merged.

mackstar added a commit to mackstar/lithium that referenced this issue Jan 24, 2012
gwoo added a commit that referenced this issue Jan 24, 2012
@nateabele
Copy link
Member

Fixed!

rmarscher pushed a commit to rmarscher/lithium that referenced this issue Feb 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants