|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-07-20 02:46 UTC] iliaa@php.net
[2004-08-04 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 11:00:01 2025 UTC |
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