#31631 [NEW]: Long ereg results failure
| From: | dux at uol dot com dot ar | Date: | Thu, 20 Jan 2005 22:53:03 +0000 |
| Subject: | #31631 [NEW]: Long ereg results failure | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-72545@lists.php.net to get a copy of this message | ||
From: dux at uol dot com dot ar
Operating system: Windows 2k
PHP version: 5.0.1
PHP Bug Type: POSIX related
Bug description: Long ereg results failure
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
--
Edit bug report at http://bugs.php.net/?id=31631&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31631&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31631&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31631&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31631&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31631&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31631&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31631&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31631&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31631&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31631&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31631&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31631&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31631&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31631&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31631&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31631&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31631&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31631&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31631&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31631&r=mysqlcfg