Welcome Guest, Not a member yet? Register   Sign In
URI.php error when passing parameter with : (colon)
#2

[eluser]zivel[/eluser]
I have the same behavior. Is this a PHP Bug?
Because after some investigation I found out:

Code:
WORKS:
/object/:LOR:1
/object/LOR::1
/object/LOR:1:
/object/LOR:
/object/LO:RA3
and
Code:
DOES NOT WORK
/object/LOR:1
/object/LOR2:3
/object/LORA:3

any idea?
(here my testcode)
Code:
$url= array(
    "/object/:LOR:1"
    ,"/object/LOR::1"
    ,"/object/LOR:1:"
    ,"/object/LOR:"
    ,"/object/LO:RA3"
    ,"/object/LOR:1"
    ,"/object/LORA:3"
    ,"/object/LOR2:3");
foreach( $url as $v ){
  echo $v ." is: ";
  var_dump( parse_url( $v, PHP_URL_PATH ) );
}


Messages In This Thread
URI.php error when passing parameter with : (colon) - by El Forum - 03-10-2011, 03:34 AM
URI.php error when passing parameter with : (colon) - by El Forum - 04-19-2011, 08:47 AM
URI.php error when passing parameter with : (colon) - by El Forum - 04-19-2011, 01:09 PM
URI.php error when passing parameter with : (colon) - by El Forum - 04-20-2011, 02:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB