go to bug id or search bugs for
The url wrapper support in php does not ignore case of the scheme part of URLs.
According to RFC-3986 (aka. STD-66), Sec. 3.1, the scheme in an URL is case-insensitive and therefore should be matched in a case-insensitive manner.
This problem is present in both, php-4.4.4 and php-5.1.6.
PHP compiled from source with ./configure --disable-cgi --enable-cli --disable-ipv6 --disable-all --without-pear
This will not work:
This works as expected:
Note the capital "T" in "hTtp://" in the first example.
First example should show the same behaviour as the second one. Both examples should complete without error.
First example returns:
Notice: file(): Unable to find the wrapper "hTtp" - did you forget to enable it when you configured PHP? in xxx on line 3
Warning: file(hTtp://www.php.net): failed to open stream: No such file or directory in xxx- on line 3
Add a Patch
Add a Pull Request
Assigned to the maintainer.
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.