PHP exploit – any recommendations to block?

http://www.securityweek.com/official-fix-php-flaw-easily-bypassed-researchers-say

Not pretty. Not pretty at all.