php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23345 Streams not working, fails with Undefined function
Submitted: 2003-04-25 08:42 UTC Modified: 2003-04-25 09:15 UTC
From: markus dot lervik at vaasa dot fi Assigned:
Status: Not a bug Package: Network related
PHP Version: 4.3.0 OS: FreeBSD 4.7-RELEASE
Private report: No CVE-ID: None
 [2003-04-25 08:42 UTC] markus dot lervik at vaasa dot fi
I'm not sure if this is only error in the documentation,
but I decided to file it under Network Related anyway.

According to the manual,

"Streams are an integral part of PHP  as of version 4.3.0. No steps are required to enable them."

When I try a simple

<?php

 $f = stream_get_wrappers();
 echo '<pre>';
 print_r($f);
 echo '</pre>';

?>

all I get is 

Fatal error:  Call to undefined function: stream_get_wrappers()

./configure --help doesn't mention streams anywhere,
nor does phpinfo() mention anything about it either
(apart from "Registered PHP Streams").

According to the linker, main/streams.lo is linked. 

I haven't been able to find anything on the web about it either, nor did the good people on EFNet's #php channel know anything about it.

My configure line is 

'./configure' 
'--with-mysql=/usr/local/mysql/' 
'--with-gd' 
'--with-ldap' 
'--with-sockets' 
'--with-xml' 
'--with-dom' 
'--with-freetype' 
'--with-apxs2=/usr/local/apache2/bin/apxs' 
'--with-zlib' 
'--with-bz2' 
'--with-ssl' 
'--with-tsrm-pth' 
'--with-cli' 
'--disable-cgi' 
'--with-pdflib' 
'--with-pgsql' 
'--with-wddx' 
'--with-curl' 
'--with-curlwrappers'


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-25 09:15 UTC] jay@php.net
Also according to the manual 
(http://www.php.net/stream_get_wrappers): 
 
"stream_get_wrappers 
 
(PHP 5 CVS only)" 
 
This function doesn't exist in PHP 4.3.0.  
 
J 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC