Hi! > I think the idea is good. > I'm not sure about implementation. > Additional check for ZEND_NULL_FUNCTION in DO_FCALL may be expensive. > I think it must be better to use special predefined function (see > "zend_pass_function" usage in zend_vm_def.h).
I've moved the condition after internal & user function, so the slowdown would almost never happen and will be very minimal. But if you prefer, I can do the other one, I actually implemented it first with the function but then removed it since I thought ability to skip a function call may be faster and also prove useful in other cases. I'll try to do another version with zend_pass_function and see if I see any difference. -- Stas Malyshev smalys...@gmail.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php