After playing around with it some more, is this that check even needed for
windows to check for remote host access?
What is the different then between doing?:

file_get_contents("\\\\remotehost\\share\\file.txt");

file_get_contents("file://\\\\remotehost\\share\\file.txt");

With the current streams code, the first one loads fine, while the 2nd one
fails with a "remote host file access not supported" error.
By removing the check, the second one loads fine as well.

Is there some other reason the remote host access check is done when called
using file:// syntax (under windows that is)?

Rob


From: Christian Schneider

> I'm not an export on that piece of code but passing file:// to this
> function could cause problems.
> You should at least move the path[n+3] != '/' to before the n+4 test and
> I think you should also make sure that n+3 is not '\0' as otherwise n+4
> could be beyond the end of the string, no?

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to