0x0+2 produces 4. The parser considers the 2 as both part of the hex literal and a separate decimal literal, treating this as 0x002 + 2. 0x0+0x2 displays the same problem. Strangely, 0x0 +2 is still 4, but 0x0+ 2 is correctly 2. (This is fixed in PHP 5.4. But it’s also re-broken in PHP 5.4, with the new 0b literal prefix: 0b0+1 produces 2.)
[^] # Re: Bouleversifiant
Posté par Zylabon . En réponse au journal Nous les intellectuels autoproclamés du numérique. Évalué à 9.
Ils ont écrit un parseur qui louche !!!! Deux fois !
http://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
Please do not feed the trolls