<?php // https://bugs.php.net/bug.php?id=66011 // Test script as provided in original bug report $a = strval(round(1 / 3, 2)); var_dump($a, serialize($a)); // Code which does show this behaviour // Behaviour as expected, see the warning at http://php.net/manual/en/language.types.float.php $a = round(1 / 3, 2); var_dump($a, serialize($a));
You have javascript disabled. You will not be able to edit any code.