ID: 41165 User updated by: JimmyPaterson at gmx dot de Reported By: JimmyPaterson at gmx dot de Status: Open Bug Type: Reproducible crash Operating System: Fedora Core 6 PHP Version: 5CVS-2007-04-22 (snap) New Comment:
Um. Yes. Example 1662 on http://de2.php.net/manual/en/function.preg-replace-callback.php does pretty much the same. Previous Comments: ------------------------------------------------------------------------ [2007-05-07 20:35:19] [EMAIL PROTECTED] Can you simplify it to something less than 340 lines of code? ------------------------------------------------------------------------ [2007-05-03 22:54:53] JimmyPaterson at gmx dot de Oh, sorry about that - this time I've uploaded it as a downloadable file on my own webspace: http://mhooo.mirrormoon.org/dload/template.bugged.class.inc.php (don't mind the .php extension, it won't execute but download instead). ------------------------------------------------------------------------ [2007-05-03 17:54:02] [EMAIL PROTECTED] I can't download the reproduction code from that link. ------------------------------------------------------------------------ [2007-04-23 18:54:55] JimmyPaterson at gmx dot de My code however does the same thing example 1662 on http://de2.php.net/manual/en/function.preg-replace-callback.php does. So is that an infinite recursion as well? Why is there an example to infinite recursion if the actual depth of recursion is limited (to whatever depth) and why is there no notice on that matter :?x thanks for helping, joreji ------------------------------------------------------------------------ [2007-04-23 16:22:58] [EMAIL PROTECTED] >Why is it expected to cause a stack overflow? Why infinite loop is expected to cause stack overflow? Because that's how stack works. >It is not infinite after all PCRE itself uses stack pretty hard. And it is infinite, yes. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/41165 -- Edit this bug report at http://bugs.php.net/?id=41165&edit=1