Re: cvs: php4 /main streams.c

From: Date: Wed, 19 Jun 2002 00:35:19 +0000
Subject: Re: cvs: php4 /main streams.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-12415@lists.php.net to get a copy of this message
I tested this and it works now fine also with settings in .htaccess files..which it didn't do before this fix as the wrappers weren't registered at all. --Jani On Wed, 19 Jun 2002, Edin Kadribasic wrote: >edink Tue Jun 18 20:31:32 2002 EDT > > Modified files: > /php4/main streams.c > Log: > No need to check for allow_url_fopen here. > #This closes two bugs which I cannot find right now courtesy our buggy bug > #database. > > >Index: php4/main/streams.c >diff -u php4/main/streams.c:1.56 php4/main/streams.c:1.57 >--- php4/main/streams.c:1.56 Tue Jun 11 17:22:12 2002 >+++ php4/main/streams.c Tue Jun 18 20:31:30 2002 >@@ -20,7 +20,7 @@ > +----------------------------------------------------------------------+ > */ > >-/* $Id: streams.c,v 1.56 2002/06/11 21:22:12 mfischer Exp $ */ >+/* $Id: streams.c,v 1.57 2002/06/19 00:31:30 edink Exp $ */ > > #define _GNU_SOURCE > #include "php.h" >@@ -1047,9 +1047,6 @@ > > PHPAPI int php_register_url_stream_wrapper(char *protocol, php_stream_wrapper *wrapper > TSRMLS_DC) > { >- if (!PG(allow_url_fopen) && wrapper->is_url) >- return FAILURE; >- > return zend_hash_add(&url_stream_wrappers_hash, protocol, strlen(protocol), wrapper, > sizeof(*wrapper), NULL); > } > > > > > --

« previous php.cvs (#12415) next »