anamikabir / solr-php-client

solr-php-client
Other
0 stars 0 forks source link

--with-curlwrappers causes missing content stream error #56

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. compile php --with-curlwrappers
2. issue an optimize call to solr
3. get a missing content stream error

The issue seems to be that when php is compiled --with-curlwrappers the options 
that have to be set on the stream context require a different structure. Do 
note however that --with-curlwrappers is an experimental PHP feature. so maybe 
its just a documentation or error reporting issue.

Original issue reported on code.google.com by lukas.smith@gmail.com on 14 Nov 2010 at 5:04

GoogleCodeExporter commented 8 years ago
I have a feeling that you're experiencing this problem on PHP version >= 5.2.6 
and < 5.2.10.  In those versions there was a problem where the http context 
options were not treated as documented when curl wrappers were enabled in the 
compile.

See the comment here: http://www.php.net/manual/en/context.curl.php#85551 

Original comment by donovan....@gmail.com on 2 Dec 2010 at 5:52