Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Version warning http:// wrapper is disabled in the server configuration by allow_url_fopen=0 #4610

Closed
xorock opened this issue Jun 8, 2013 · 1 comment
Milestone

Comments

@xorock
Copy link

xorock commented Jun 8, 2013

Please add an additional check to eliminate warning:

Warning: fopen(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in .../Zend/Version/Version.php on line 95
Warning: fopen(http://framework.zend.com/api/zf-version?v=2): failed to open stream: no suitable wrapper could be found in .../Zend/Version/Version.php on line 95

@weierophinney
Copy link
Member

I'd argue we should check that INI setting and issue an E_USER_WARNING in that situation, returning a boolean false. Alternately, or additionally, we should allow passing an HTTP client as a second argument to the method, which would allow you to continue to contact the service when the stream wrapper is unavailable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants