#19832 [Fbk]: stack overflow when using preg_match_all

From: Date: Wed, 09 Oct 2002 21:50:44 +0000
Subject: #19832 [Fbk]: stack overflow when using preg_match_all
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21992@lists.php.net to get a copy of this message
ID: 19832 Updated by: wez@php.net Reported By: dharix22@yahoo.fr Status: Feedback Bug Type: Reproducible crash Operating System: win2k / iis PHP Version: 4.2.2 New Comment: This is a known issue within the PCRE library when the pattern string is not an optimal pattern. There was another bug (I don't have the number to hand) where we looked into this; the bottom line is that you should either: 1.) Rewrite your pattern string 2.) Increase the amount of available stack space for the process. However, please submit your script/pattern string here, just in case you've found a different problem. Previous Comments: ------------------------------------------------------------------------ [2002-10-09 10:01:02] derick@php.net oops! Can you please provide a short reproducing script? Derick ------------------------------------------------------------------------ [2002-10-09 09:59:53] derick@php.net Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the original bug instead. Thank you for your interest in PHP. ------------------------------------------------------------------------ [2002-10-09 09:55:40] dharix22@yahoo.fr i'm trying to use preg_match_all in order to find a string in a text file. if the founded string is too big php send a stack overflow message (result string < 1000 caracters) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19832&edit=1

« previous php.bugs (#21992) next »