Hi!
I agree. We won't be able to use an int type for something which should take an int. That might not matter in user code, but if we cannot actually type hint internals functions then its a problem.
Internal functions have types, however parameters of different types are usually converted, not rejected.
My feeling is that scalars should be automatically coerced to the correct type, if it makes sense to do so. (ie reject non-numeric
That (coercion) is what internal functions do, but not what the proposed patch does (except for "numeric" hint).
-- Stanislav Malyshev, Zend Software Architect s...@zend.com http://www.zend.com/ (408)253-8829 MSN: s...@zend.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php