cvs: php4 /main streams.c
| From: | Edin Kadribasic | Date: | Wed, 19 Jun 2002 00:31:32 +0000 |
| Subject: | cvs: php4 /main streams.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12414@lists.php.net to get a copy of this message | ||
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);
}