php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31631 Long ereg results failure
Submitted: 2005-01-20 23:53 UTC Modified: 2005-02-06 01:00 UTC
From: dux at uol dot com dot ar Assigned:
Status: No Feedback Package: Regexps related
PHP Version: 5.0.1 OS: Windows 2k
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dux at uol dot com dot ar
New email:
PHP Version: OS:

 

 [2005-01-20 23:53 UTC] dux at uol dot com dot ar
Description:
------------
the regex dont find big text matches.
i tried to extract tables from a website, and I could extract small tables, but with big ones (40-50 complex rows) it said that nothing was found (missmatch).
i hardcode a website where it crashes, so you can check it for yourselves.
i tested the code handcutting text from the tables to make them smaller and them was recogniced succefully.


Reproduce code:
---------------
$file = 'http://ffvault.ign.com/View.php?view=Locations.List&view_page=1';
$content = file_get_contents($file);
// here i try to found a table
$found = ereg ('<table>[s|^s|'."\n".'|'."\r".']</table>',$html,$regex);
echo $regex[0];


Expected result:
----------------
see just a table

Actual result:
--------------
the table is not found

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-20 23:55 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.


 [2005-02-06 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 22:01:28 2024 UTC