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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Thu Dec 26 20:01:29 2024 UTC