#36860 [NEW]: file:// does not work with allow_url_fopen=Off
| From: | php-bugs at t43 dot mine dot nu | Date: | Sat, 25 Mar 2006 21:26:06 +0000 |
| Subject: | #36860 [NEW]: file:// does not work with allow_url_fopen=Off | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-94877@lists.php.net to get a copy of this message | ||
From: php-bugs at t43 dot mine dot nu
Operating system: Windows
PHP version: 5.1.2
PHP Bug Type: Feature/Change Request
Bug description: file:// does not work with allow_url_fopen=Off
Description:
------------
As I set allow_url_fopen=Off,the stream prefix file:// is not accepted.
In addition, relative paths do not work with allow_url_fopen=On.
i.e. require('file://include.inc.php') obtains an error,
but require('file://c:/mydirectories/public/include.inc.php') does work
perfectly.
The error message to require('file://include.inc.php') is:
Warning: require() [function.require]: remote host file access not
supported, file://include.inc.php in C:\mydirectories\public\myscript.php
on line 999
Reproduce code:
---------------
require('file://include.inc.php');
Expected result:
----------------
same as when doing
require('include.inc.php');
and additionally no matter if allow_url_fopen=On/Off
--
Edit bug report at http://bugs.php.net/?id=36860&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36860&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36860&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36860&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36860&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36860&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36860&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36860&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36860&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36860&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36860&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36860&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36860&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36860&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36860&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36860&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36860&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36860&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36860&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36860&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36860&r=mysqlcfg