#37901 [NEW]: Unable to find the wrapper "file"
| From: | techtonik@php.net | Date: | Fri, 23 Jun 2006 12:30:10 +0000 |
| Subject: | #37901 [NEW]: Unable to find the wrapper "file" | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-98714@lists.php.net to get a copy of this message | ||
From: techtonik@php.net
Operating system: Windows2000
PHP version: 4.4.2
PHP Bug Type: Streams related
Bug description: Unable to find the wrapper "file"
Description:
------------
file:// wrapper doesn't work on PHP 4.x.x, but it should according to docs
http://php.net/opendir
Reproduce code:
---------------
<?php
file_get_contents('file://C:/autoexec.bat');
file_get_contents('file://C:\autoexec.bat');
file_get_contents('file:///autoexec.bat');
$dh = opendir('file://C:\temp');
Actual result:
--------------
PHP Notice: file_get_contents(): Unable to find the wrapper "file" - did
you forget to enable it when you configured PHP? in c:\test.php on line 3
PHP Warning: file_get_contents(file://C:/autoexec.bat): failed to open
stream: Invalid argument in c:\test.php on line 3
PHP Notice: file_get_contents(): Unable to find the wrapper "file" - did
you forget to enable it when you configured PHP? in c:\test.php on line 4
PHP Warning: file_get_contents(file://C:\autoexec.bat): failed to open
stream: Invalid argument in c:\test.php on line 4
PHP Notice: file_get_contents(): Unable to find the wrapper "file" - did
you forget to enable it when you configured PHP? in c:\test.php on line 5
PHP Warning: file_get_contents(file:///autoexec.bat): failed to open
stream: Invalid argument in c:\test.php on line 5
PHP Notice: opendir(): Unable to find the wrapper "file" - did you forget
to enable it when you configured PHP? in c:\test.php on line 7
PHP Warning: opendir(file://C:\temp): failed to open dir: Invalid
argument in c:\test.php on line 7
--
Edit bug report at http://bugs.php.net/?id=37901&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37901&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37901&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37901&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37901&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37901&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37901&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37901&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37901&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37901&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37901&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37901&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37901&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37901&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37901&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37901&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37901&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37901&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37901&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37901&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37901&r=mysqlcfg