• [^] # Re: Bouleversifiant

    Posté par . En réponse au journal Nous les intellectuels autoproclamés du numérique. Évalué à 9.

    Je ne crois pas qu'ils aient commis assez de crime pour les forcer à faire du ruby.

    Ils ont écrit un parseur qui louche !!!! Deux fois !

    http://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/

    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.)

    Please do not feed the trolls