Fixed bug #64290 (behavior change of converting to long)

convert_to_long behavior has been improved
As Cataphrace said in IRC, the test should be fixed.
Merge branch 'PHP-5.5'