Hi! > Before making more extensive use of arginfo types, I think we should first > do some adjustments to the way they are handled. In particular adding types > means that internal fcalls will take the branch in > http://lxr.php.net/xref/PHP_TRUNK/Zend/zend_vm_def.h#3669. As this is hot > code, it is likely important to avoid doing those duplicate type checks > (that will also happen in zpp anyway). As such I would suggest to make > arginfo for internal functions reflection-only. Return type hints are > already only enforced in debug mode.
Agreed, for internals arginfo types should be reflection-only. I imagine that would be very easy to fix just by checking for function type? -- Stas Malyshev smalys...@gmail.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php