php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19832 stack overflow when using preg_match_all
Submitted: 2002-10-09 09:55 UTC Modified: 2002-10-27 19:15 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: dharix22 at yahoo dot fr Assigned:
Status: No Feedback Package: PCRE related
PHP Version: 4.2.2 OS: win2k / iis
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-10-09 09:55 UTC] dharix22 at yahoo dot 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-09 09:59 UTC] 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 10:01 UTC] derick@php.net
oops!

Can you please provide a short reproducing script?

Derick
 [2002-10-09 16:50 UTC] wez@php.net
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.
 [2002-10-27 19:14 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Mar 21 05:03:38 2023 UTC