Publié peut être trop précipitamment, PHP 5.1.3 possédait un buG assez critique au niveau de la variable $_POST
. Tout comme dans la sapi FastCGI qui comportait aussi quelques problèmes. On remarque aussi qu’un buG au niveau de la fonction highlight_string() a aussi été corrigé, tout comme les drivers PDO ODBC qui présentaient de sérieux problèmes.
Le buG qui touché la variable $_POST
était assez rigolo. Il suffisait d’avoir un formulaire tout banal :
<div class="html4strict">
<span class="sc2">
<a target="_blank" href="http://december.com/html/4/element/html.html">
<span class="kw2"><html></a> <span class="sc2">
<a target="_blank" href="http://december.com/html/4/element/head.html">
<span class="kw2"><head></a> <span class="sc2">
<a target="_blank" href="http://december.com/html/4/element/title.html">
<span class="kw2"><title></a>test<span class="sc2">
<span class="kw2"></title> <span class="sc2">
<a target="_blank" href="http://december.com/html/4/element/meta.html">
<span class="kw2"><meta</a> <span class="kw3">http-equiv=<span class="st0">"Content-Type" <span class="kw3">content=<span class="st0">"text/html; charset=utf-8" /<span class="kw2">></a> <span class="sc2">
<span class="kw2"></head> <span class="sc2">
<a target="_blank" href="http://december.com/html/4/element/body.html">
<span class="kw2"><body></a> <span class="sc2">
<a target="_blank" href="http://december.com/html/4/element/form.html">
<span class="kw2"><form</a> <span class="kw3">method=<span class="st0">"post" <span class="kw3">action=<span class="st0">"" <span class="kw3">enctype=<span class="st0">"multipart/form-data"<span class="kw2">></a> <span class="sc2">
<a target="_blank" href="http://december.com/html/4/element/input.html">
<span class="kw2"><input</a> <span class="kw3">type=<span class="st0">"text" <span class="kw3">name=<span class="st0">"masivasid[id_1]" <span class="kw3">value=<span class="st0">"Nzzz1"/<span class="kw2">></a>
<span class="sc2">
<a target="_blank" href="http://december.com/html/4/element/br.html">
<span class="kw2"><br</a>/<span class="kw2">></a> <span class="sc2">
<a target="_blank" href="http://december.com/html/4/element/input.html">
<span class="kw2"><input</a> <span class="kw3">type=<span class="st0">"text" <span class="kw3">name=<span class="st0">"masivasid[id_2]" <span class="kw3">value=<span class="st0">"Nzzz2"/<span class="kw2">></a>
<span class="sc2">
<a target="_blank" href="http://december.com/html/4/element/br.html">
<span class="kw2"><br</a>/<span class="kw2">></a> <span class="sc2">
<a target="_blank" href="http://december.com/html/4/element/input.html">
<span class="kw2"><input</a> <span class="kw3">type=<span class="st0">"submit"/<span class="kw2">></a> <span class="sc2">
<span class="kw2"></form> <span class="sc2">
<span class="kw2"></body> <span class="sc2">
<span class="kw2"></html></div>`` Et lors de la soumission la variable $_POST contenait : **php** ``<div class="php">
<a target="_blank" href="http://www.php.net/array">
<span class="kw3">Array</a> <span class="br0">( <span class="br0">[masivasid<span class="br0">] => <a target="_blank" href="http://www.php.net/array">
<span class="kw3">Array</a> <span class="br0">( <span class="br0">[id_<span class="nu0">1<span class="br0">] => Nzzz1 <span class="br0">[id_<span class="nu0">2<span class="br0">] => <a target="_blank" href="http://www.php.net/array">
<span class="kw3">Array</a> <span class="br0">( <span class="br0">[id_<span class="nu0">1<span class="br0">] => Nzzz2 <span class="br0">) <span class="br0">) <span class="br0">)</div>`` Au lieu de : **php** ``<div class="php">
<a target="_blank" href="http://www.php.net/array">
<span class="kw3">Array</a> <span class="br0">( <span class="br0">[masivasid<span class="br0">] => <a target="_blank" href="http://www.php.net/array">
<span class="kw3">Array</a> <span class="br0">( <span class="br0">[id_<span class="nu0">1<span class="br0">] => Nzzz1 <span class="br0">[id_<span class="nu0">2<span class="br0">] => Nzzz2 <span class="br0">) <span class="br0">)</div>
Tous les utilisateurs de PHP sont invités à mettre à jour leur version.