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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dimmu_bg at yahoo dot com
New email:
PHP Version: OS:

 

 [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-2023 The PHP Group
All rights reserved.
Last updated: Tue Mar 28 19:03:41 2023 UTC