From: [EMAIL PROTECTED] Operating system: suse 8.0 PHP version: 4.3.0 PHP Bug Type: Strings related Bug description: Parser wont work after update
foreach ($urls as $k){ $start = ''; $online = strip_tags(implode(" ",@file($k))); $trans = get_html_translation_table (HTML_ENTITIES); foreach($trans as $key=>$var){ $story = str_replace($var,$key,$online); } $start = strpos($story,$keywords[$i])+strlen($keywords[$i]); $uo[$i] = trim(substr($online,$start,3)); $i++; } i use this little script with php 4.2.2 to parse other web communities to collect data inside a database who many users are online. After updating the php version, this script produces with an array of four elements three correct results and one trash result? -- Edit bug report at http://bugs.php.net/?id=21602&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21602&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21602&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21602&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21602&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21602&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21602&r=support Expected behavior: http://bugs.php.net/fix.php?id=21602&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21602&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21602&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21602&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21602&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21602&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21602&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21602&r=gnused