Using recursive functions without any constraint is a bad programming practice, period. You should always implement a pop/push stack in those situations to avoid getting into infinite or near infinite recursion.

Ilia

OK, but the good compilers/interpreters don't segfault..

This time its my turn to produce a patch :) It plays with signals & such. I've discovered that zend_bailout() does everything I needed :)
http://mega.ist.utl.pt/~ncpl/zend_stack_protection.txt

Ah, I've read Stefan's Hardened patch, and yes, it is much simpler & superior than the patch that Michael Vergoz proposed.

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

Reply via email to