[bug-notifications] [php5 0004627]: No http wrapper for fopen?
Mantis Bug Tracker
noreply at opencsw.org
Mon Dec 6 21:24:21 CET 2010
The following issue has been SUBMITTED.
======================================================================
https://www.opencsw.org/mantis/view.php?id=4627
======================================================================
Reported By: Chris Majewski
Assigned To:
======================================================================
Project: php5
Issue ID: 4627
Category: regular use
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2010-12-06 21:24 CET
Last Modified: 2010-12-06 21:24 CET
======================================================================
Summary: No http wrapper for fopen?
Description:
Code:
$data = file_get_contents('http://cnn.com');
print "DATA:$data:<br/>\n";
produces:
DATA::<br/>
Error:
[Mon Dec 06 20:19:22 2010] [error] [client 132.xx.yy.zz] PHP Notice:
file_get_contents() [<a
href='function.file-get-contents'>function.file-get-contents</a>]: Unable
to find the wrapper "http" - did you forget to enable it when you
configured PHP? in /xx/yy/zz.php on line ##
[Mon Dec 06 20:19:22 2010] [error] [client 132.xx.yy.zz] PHP Warning:
file_get_contents(http://cnn.com) [<a
href='function.file-get-contents'>function.file-get-contents</a>]: failed
to open stream: No such file or directory in /xx/yy/zz.php on line ##
Code to confirm:
<?php var_dump(stream_get_wrappers()); ?>
Produces:
array(4) {
[0]=>
string(3) "php"
[1]=>
string(4) "file"
[2]=>
string(4) "data"
[3]=>
string(13) "compress.zlib"
}
No http, should this not be standard?
======================================================================
More information about the bug-notifications
mailing list