On 14 Sep 2014, at 01:07, Alain Williams <a...@phcomp.co.uk> wrote: > You give an option for float to int casting to truncate.
Where? oa-res-27-90:php-src ajf$ sapi/cli/php -r 'function foobar(int $a) { var_dump($a); } foobar(1.5);' Catchable fatal error: Argument 1 passed to foobar() must be of the type int, float given, called in Command line code on line 1 and defined in Command line code on line 1 If you mean under possible changes, it’s not a change that’s been made. It’d only be worth discussing within the context of making it truncate or round. -- Andrea Faulds http://ajf.me/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php