ID:               38661
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mail at bjoern-kahl dot de
-Status:           Open
+Status:           Assigned
 Bug Type:         Streams related
 Operating System: Linux 2.6.x  (Debian Sarge, x86)
 PHP Version:      5.1.6
-Assigned To:      
+Assigned To:      pollita
 New Comment:

Assigned to the maintainer.


Previous Comments:
------------------------------------------------------------------------

[2006-08-30 20:58:57] mail at bjoern-kahl dot de

Description:
------------
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.

(See http://www.rfc-editor.org/rfc/std/std66.txt)

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



Reproduce code:
---------------
This will not work:

<?
error_reporting(E_ALL);
echo file("hTtp://www.php.net");
?>


This works as expected:
<?
error_reporting(E_ALL);
echo file("http://www.php.net";);
?>

Note the capital "T" in "hTtp://" in the first example.

Expected result:
----------------
First example should show the same behaviour as the second one. Both
examples should complete without error.



Actual result:
--------------
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




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38661&edit=1

Reply via email to