#47336 [Bgs]: data: stream restricted by allow_url_fopen

From: Date: Fri, 20 Nov 2009 10:13:10 +0000
Subject: #47336 [Bgs]: data: stream restricted by allow_url_fopen
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3261@lists.php.net to get a copy of this message
 ID:               47336
 User updated by:  evert at rooftopsolutions dot nl
 Reported By:      evert at rooftopsolutions dot nl
 Status:           Bogus
 Bug Type:         Documentation problem
 Operating System: *
 PHP Version:      5.2.9RC1
 New Comment:

Dear vrana,

This is incorrect. Either the documentation or the behaviour is
broken.

The documentation states:

Restricted by allow_url_fopen  	No


Previous Comments:
------------------------------------------------------------------------

[2009-11-20 10:07:28] vrana@php.net

Documented at http://www.php.net/manual/en/wrappers.data.php

------------------------------------------------------------------------

[2009-02-07 22:33:47] evert at rooftopsolutions dot nl

Description:
------------
Looks like data: streams are restricted by allow_url_fopen, but the
documentation seems to state otherwise..

http://ca2.php.net/manual/en/wrappers.data.php

Reproduce code:
---------------
php -d allow_url_fopen=0 -r "fopen('data://text/plain,hi','r');"



Expected result:
----------------
nothing

Actual result:
--------------
Warning: fopen(): URL file-access is disabled in the server
configuration in Command line code on line 1

Call Stack:
    0.0002      47712   1. {main}() Command line code:0
    0.0003      47792   2. fopen() Command line code:1




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47336&edit=1



Thread (5 messages)

« previous php.doc.bugs (#3261) next »