Are you talking about your own extension or ext/domxml ? I
think (but could be wrong) that sooner or later streams
should be used everyone for consistency.
- Markus
On Sat, Jun 08, 2002 at 07:22:25AM -0400, Rob Richards wrote :
> I think using stream functions may be overkill for what I need to do.
> While fixing an issue with using relative paths in domxml and decided to add
> filesecurity features in at the same time.
> The file path comes in as a string and is sent directly to libxml as such.
>
> also, going through the locate_url_wrapper function, it looks like it
> defines acceptable protocols to use.
> Also, libxml has its own routines for remote file access, so in the event a
> new protocol is used (right now it is just http and ftp), should the
> extension disallow the use of other protocols if it is not supported in php?
> may not be an issue.
>
> right now I am using the following to test for a remote path:
> if (!strncasecmp(file,"http://", 7) || !strncasecmp(file,"ftp://", 6)) {
> which could be expanded upon if additional protocols are added to libxml.
>
> I could be wrong (wouldn't be the first time), but I am not sure if I really
> need to use the streams functions as I wont be doing anything with the
> returned wrapper.
>
> Thanks
>
> Rob
>
> ----- Original Message -----
> From: "Markus Fischer" <[EMAIL PROTECTED]>
>
> >
> > In CVS HEAD we've a new, generic implemention called
> > 'streams'. The streams implementation takes care of this. See
> > main/streams.c in locate_url_wrapper (which is called when
> > you create a new stream):
> >
> > if (wrapper && wrapper->is_url && !PG(allow_url_fopen)) {
> > zend_error(E_WARNING, "URL file-access is disabled in the server
> configuration");
> > return NULL;
> > }
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
--
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
Did I help you? http://guru.josefine.at/wish_en
Konnte ich helfen? http://guru.josefine.at/wish_de
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php