php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44085 Matching large texts
Submitted: 2008-02-09 15:49 UTC Modified: 2008-02-17 01:00 UTC
From: dimmu_bg at yahoo dot com Assigned:
Status: No Feedback Package: PCRE related
PHP Version: 5.2.5 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
50 + 25 = ?
Subscribe to this entry?

 
 [2008-02-09 15:49 UTC] dimmu_bg at yahoo dot com
Description:
------------
I tried to parse large html file - 300kb with preg_match_all. The data needed was between <!-- reg:Region_name --> / <!-- end-reg --> elements so i did this pattern #reg:(.+) -->(.+)<!-- end-reg -->#. This was working fine on old version of php (4.4) but what a surprise when upgraded to 5.2.5 ?!? It did not found any matches when the text between the reg and end-reg markers is too large. I tried moving the end-reg marker close to the reg: marker to cover smaller area of html code and it worked for enough small areas. I experimented and moved the end-reg 1 char away from the reg: and it did not returned any match.

So i think this is bug and depends of the size of the text i want to match.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-02-09 16:22 UTC] felipe@php.net
What var_dump(preg_last_error()); shows after preg_match_all() be performed?
 [2008-02-17 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 16:01:31 2024 UTC