Mantis - php5
Viewing Issue Advanced Details
5164 regular use major always 2014-04-15 23:43 2016-10-08 22:44
ace808  
dam  
normal  
closed  
fixed  
none    
none  
0005164: http wrapper not found
Trying to use composer to update php libraries yeilds an error:
Unable to find the wrapper "http" - did you forget to enable it when you configured PHP?

Executing var_dump(stream_get_wrappers()); yeilds

array(10) {
  [0]=>
  string(13) "compress.zlib"
  [1]=>
  string(14) "compress.bzip2"
  [2]=>
  string(5) "https"
  [3]=>
  string(4) "ftps"
  [4]=>
  string(3) "php"
  [5]=>
  string(4) "file"
  [6]=>
  string(4) "glob"
  [7]=>
  string(4) "data"
  [8]=>
  string(3) "zip"
  [9]=>
  string(4) "phar"
}

There's no http wrapper. Is there some sort of way to add it?
Issue History
2014-04-15 23:43 ace808 New Issue
2014-04-15 23:46 dam Status new => assigned
2014-04-15 23:46 dam Assigned To => dam
2014-04-15 23:48 dam Note Added: 0010800
2014-04-15 23:48 dam Status assigned => feedback
2014-04-16 17:28 ace808 Note Added: 0010801
2016-10-08 22:42 dam Note Added: 0011202
2016-10-08 22:42 dam Status feedback => closed
2016-10-08 22:42 dam Resolution open => fixed
2016-10-08 22:44 dam Note Added: 0011203

Notes
(0010800)
dam   
2014-04-15 23:48   
You can see the configure options for php in the build recipe:
  https://buildfarm.opencsw.org/source/xref/opencsw/csw/mgar/pkg/php5/trunk/Makefile [^]
Some of the modules for php are factored out to separate packages:
  http://www.opencsw.org/packages/ [^]
Please take a look at php5_*
(0010801)
ace808   
2014-04-16 17:28   
Thank you very much for getting back to me so fast.

Unfortunately, doing further research indicates the problem is with the

CONFIGURE_ARGS += --with-curlwrappers

line. Apparently I'm getting improper responses from sites because of this.

See: https://www.facebook.com/note.php?note_id=290180466652 [^] at the bottom of the page for some more details.

Another example my specific problem can be found here:

http://www.inmotionhosting.com/support/community-support/how-to/how-to-disable-withcurlwrappers-on-php-compile-on-my-vps [^]

But the solution provided doesn't apply in this case.

There have been some other issues relating to including curlwrappers as well I have found.

I can try to recompile using the php5_dev package without curlwrappers and see if that fixes the problem.

Thanks again for your attention.
(0011202)
dam   
2016-10-08 22:42   
This is fixed in CSWphp5-curl 5.6.26,REV=2016.10.07
(0011203)
dam   
2016-10-08 22:44   
Standard wrappers from CSWphp5 are:

dam@unstable10s [unstable10s]:/home/dam > php -r "var_dump(stream_get_wrappers()); "
array(8) {
  [0]=>
  string(13) "compress.zlib"
  [1]=>
  string(3) "php"
  [2]=>
  string(4) "file"
  [3]=>
  string(4) "glob"
  [4]=>
  string(4) "data"
  [5]=>
  string(4) "http"
  [6]=>
  string(3) "ftp"
  [7]=>
  string(3) "zip"
}