#36860 [Opn->Bgs]: file:// does not work with allow_url_fopen=Off

From: Date: Sun, 26 Mar 2006 00:00:28 +0000
Subject: #36860 [Opn->Bgs]: file:// does not work with allow_url_fopen=Off
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94883@lists.php.net to get a copy of this message
ID: 36860 Updated by: tony2001@php.net Reported By: php-bugs at t43 dot mine dot nu -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: Windows PHP Version: 5.1.2 New Comment: 1) file:// without c:/ or additional / is invalid URL. 2) there is allow_url_include in PHP6, but it won't be backported to 5.1. Not sure about 5.2, though. Previous Comments: ------------------------------------------------------------------------ [2006-03-25 22:26:05] php-bugs at t43 dot mine dot nu 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 this bug report at http://bugs.php.net/?id=36860&edit=1

« previous php.bugs (#94883) next »