#41165 [Opn->Fbk]: Segmentation fault in single script

From: Date: Tue, 08 May 2007 00:06:59 +0000
Subject: #41165 [Opn->Fbk]: Segmentation fault in single script
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-112379@lists.php.net to get a copy of this message
ID: 41165 Updated by: scottmac@php.net Reported By: JimmyPaterson at gmx dot de -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Fedora Core 6 PHP Version: 5CVS-2007-04-22 (snap) New Comment: The example for "preg_replace_callback() using recursive structure to handle encapsulated BB code" doesn't segfault on my current build of 5.2.2. Previous Comments: ------------------------------------------------------------------------ [2007-05-07 23:04:02] JimmyPaterson at gmx dot de Um. Yes. Example 1662 on http://de2.php.net/manual/en/function.preg-replace-callback.php does pretty much the same. ------------------------------------------------------------------------ [2007-05-07 20:35:19] andrei@php.net 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] andrei@php.net 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 ------------------------------------------------------------------------ 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

« previous php.bugs (#112379) next »