>--Cross-Post from php-doc discussion thread--
>
> You may want to mention what the following means, this is
> from a phpinfo() on www.php.net:
>
> Registered PHP Streams: http
>                         php
>                         ftp
>                         https
>                         compress.zlib
>
I mention using phpinfo() to see what wrappers are available, but not
detail on all the builtin streams.  I've got references (w/ links) to
Apendix I for that.

> Is there a function to get this specific information?  Would
> that be useful?  Maybe something like get_registered_streams().
>
That does sound like it'd be useful... Unfortunately there isn't a
userland function for that.  There *IS* however, a PHPAPI call for it:

PHPAPI HashTable *php_stream_get_url_stream_wrappers_hash();

It wouldn't take much to make a userland wrapper for it since it already
returns a hash table...

stream_get_wrappers();  sounds like an appropriate name

> When are certain streams not available, like, I assume
> allow_url_fopen dictates the availability of the http stream?
> FTP module for ftp, etc.
>
This is all documented in Apendix I (which is linked a couple times from
ref.stream), do you think we need to go into it in detail on ref.stream as
well?

-Pollita

Cross posting to php-dev re: addition of stream_get_wrappers() addition.




-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to