On 14 Jul 2014, at 16:39, Lester Caine <les...@lsces.co.uk> wrote:

> The irritating thing here is HAVING to add the error_handler which may
> well have been installed already for other reasons ... possibly in some
> third party library to compensate for other changes?

The intention is obviously that you wouldn’t skip the E_RECOVERABLE_ERROR, but 
my point was that if you really wanted to, you could. The other type hints are 
strict, hence this one is too, it’s just tolerant of equivalent values that can 
be losslessly converted.

If you want to pass user data safely to such a function, (int) or (float) first 
is probably a good idea.

--
Andrea Faulds
http://ajf.me/





--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to