OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005164 [php5] regular use major always 2014-04-15 23:43 2016-10-08 22:44
Reporter ace808 View Status public  
Assigned To dam
Priority normal Resolution fixed  
Status closed  
Summary 0005164: http wrapper not found
Description 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?
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0010800)
dam (administrator)
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 (reporter)
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 (administrator)
2016-10-08 22:42

This is fixed in CSWphp5-curl 5.6.26,REV=2016.10.07
(0011203)
dam (administrator)
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"
}


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker