Forgotten to cc to internals list:
Am 25.2.2013 um 19:50 schrieb Stas Malyshev <smalys...@sugarcrm.com>: > Hi! > >> You may use recursive functions (which are limited by the memory_limit), >> but if you use recursive magics, it's a design error. This is not the purpose >> of magics (, call_user_func(_array)?) and simply an abuse of the language. > > I think you are confusing magic functions with internal functions and > functions being called from internal functions. These are different > things. Looking at your patch, you are changing zend_call_function, > which can be called in many situations, every time engine code calls any > function which is not from a userspace context (i.e. PHP code). Limiting > it to any arbitrary number can (and does) break code, that's why it > wasn't done (it's not like it wasn't knows for years) and there are > extensions - like xdebug - which do introduce such limits. In any case, > 100 is way, way too low. Hi! I quickly looked over http://lxr.php.net/search?q=zend_call_function but I didn't find any case where it may call itself recursively without "wrong" user-input. I can increase the default limit to 1000, but if it is too high it has exactly no sense. (Btw. you've seen that the counter is decremented just before returning and don't assume I'd like to create a global maximum? It's only affecting recursions...) We don't discuss about xDebug, but about integrating it into the core? Bob -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php