PHP Bug
Found what I'd call a rather anoying bug in PHP. Because of the historic way of passing POST and GET values through global variables instead of the $_POST and $_GET autoglobals everyone uses nowadays, any character that is not valid in the name of a variable is replaced with an underscore...
For example, if you have a form with <input name="cmi.session_time" value="P1Y3M2DT3H" type="hidden"> you'll get $_POST['cmi_session_time']. Not very usefull at all (spot the dot that became an underscore)...
Let's just hope it gets fixed someday.
Funilly enough, the bug reported on bugs.php.net got numbered 40000... lucky number !

0 Comments:
Post a Comment
<< Home