Bug #16510: fopen to a URL containing spaces fails
| From: | davidviner at puggle dot freeserve dot co dot uk | Date: | Tue, 09 Apr 2002 10:13:44 +0000 |
| Subject: | Bug #16510: fopen to a URL containing spaces fails | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-4414@lists.php.net to get a copy of this message | ||
From: davidviner@puggle.freeserve.co.uk
Operating system: Windows NT
PHP version: 4.1.1
PHP Bug Type: Filesystem function related
Bug description: fopen to a URL containing spaces fails
Using fopen to access a remote file will fail if the URL path contains
spaces.
A server contains the following files:
/Test Dir/default.asp
/TestDir/default.asp
The following fopen will succeed:
$f = fopen ("http://server/TestDir/default.asp",
"r");
while this one will fail:
$f = fopen ("http://server/Test Dir/default.asp",
"r");
I have tried replacing them with "%20" and escaping the spaces "\ " but
neither succeed.
The above fails on both IIS and PWS.
--
Edit bug report at http://bugs.php.net/?id=16510&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16510&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16510&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16510&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16510&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16510&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16510&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16510&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16510&r=submittedtwice