#31571 [Bgs]: < in parameter to a function does not work

From: Date: Sun, 16 Jan 2005 14:47:45 +0000
Subject: #31571 [Bgs]: < in parameter to a function does not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72249@lists.php.net to get a copy of this message
 ID:               31571
 User updated by:  srabol at mail dot tele dot dk
 Reported By:      srabol at mail dot tele dot dk
 Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Windows 2000
 PHP Version:      4.3.9
 New Comment:

Ups... I'm very sorry, my mistake


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

[2005-01-16 15:38:43] derick@php.net

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php

Use \"view source\" in your browser...

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

[2005-01-16 15:33:10] srabol at mail dot tele dot dk

Description:
------------
If you have < as a charater in string and use that string as parameter
to a function call, then the parameter is empty

Reproduce code:
---------------
<?php
function foo($p_parm)
{
    echo "Parameter : $p_parm<br>";
}
foo("<noreply>");
foo('<noreply>');
foo("<noreply");
foo('<noreply');
?>

Expected result:
----------------
Parameter : <noreply>
Parameter : <noreply>
Parameter : <noreply
Parameter : <noreply


Actual result:
--------------
Parameter : 
Parameter : 
Parameter : Parameter : 


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


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


Thread (3 messages)

« previous php.bugs (#72249) next »