From: busmjn at lubs dot leeds dot ac dot uk Operating system: SunOS webserv2 5.8 Generic_11735 PHP version: 4.3.7 PHP Bug Type: *Regular Expressions Bug description: unexpected/lack of output from ereg & eregi
Description: ------------ The size of the resulting string of the search using ereg & eregi seems to be limited. Reproduce code: --------------- $GrabData = ereg("$GrabStart(.*)$GrabEnd", $RetrieveFile, $DataPrint); echo $DataPrint; Where $GrabStart & $GrabEnd are items chosen within the $RetrieveFile Expected result: ---------------- I was expecting whatever portion of $RetrieveFile to be output as determined by $GrabStart & $GrabEnd Actual result: -------------- It worked to a certain extent until $GrabStart & $GrabEnd where more than a certain distance apart in the file then it failed. ereg returned a value rather than TRUE or FALSE. The max value it returned before failure seemed to be around 8969 which corresponds to the amount of data returned which was about 8,920 bytes -- Edit bug report at http://bugs.php.net/?id=29259&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29259&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29259&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29259&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29259&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29259&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29259&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29259&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29259&r=support Expected behavior: http://bugs.php.net/fix.php?id=29259&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29259&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29259&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29259&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29259&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29259&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29259&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29259&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29259&r=float