From: [EMAIL PROTECTED] Operating system: Windows XP PHP version: 4.3.0 PHP Bug Type: Strings related Bug description: strip_tags behaviour change
A "<" as plaintext is something strip_tags can't make much sense of, sure. My previous report ( http://bugs.php.net/bug.php?id=21253 ) was indeed bogus, but what about this. <?php print("<pre>"); $test = "<table>\n<tr><td>first cell before < first cell after</td></tr>\n<tr><td>second cell before < second cell after</td></tr>\n</table>\n"; $testarray = explode("\n",strip_tags($test)); print_r($testarray); print("</pre>"); /* 4.2.3 ===== Array ( [0] => [1] => first cell before [2] => second cell before [3] => [4] => ) 4.3.0 ===== Array ( [0] => [1] => first cell before ) */ ?> Is this also per design? Parsing third-party webpages created by someone/some program that disregards that < should be used instead of "<" became a bit more difficult with 4.3.0. Not hard to code around, but certainly an annoyance compared to 4.2.3. -- Edit bug report at http://bugs.php.net/?id=21453&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21453&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21453&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21453&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21453&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21453&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21453&r=support Expected behavior: http://bugs.php.net/fix.php?id=21453&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21453&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21453&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21453&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21453&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21453&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21453&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21453&r=gnused