From: rs at kunstbar dot tv Operating system: Windows 2003 PHP version: 4.3.2 PHP Bug Type: Regexps related Bug description: ereg_replace or strip_tags unexpected result
Description: ------------ The following reproduce code don't work under Win2003 with PHP 4.3.2. It works with PHP 4.3.1 on all Operating Systems. I think this was fixed last year - wasn't it ?! http://bugs.php.net/bug.php?id=12120 Reproduce code: --------------- $text = "I think this < doesn't > work. for this: < This must cut > And here is the Real text from the String. < This must cut > Real Text from String.."; $text = ereg_replace("[[:blank:]]+"," ",strip_tags($text)); Expected result: ---------------- I think this work. for this: And here is the Real text from the String. Real Text from String.. Actual result: -------------- I think this < doesn't > work. for this: < This must cut > And here is the Real text from the String. < This must cut > Real Text from String.. -- Edit bug report at http://bugs.php.net/?id=25730&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25730&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25730&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25730&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25730&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25730&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25730&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25730&r=support Expected behavior: http://bugs.php.net/fix.php?id=25730&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25730&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25730&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25730&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25730&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25730&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25730&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25730&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25730&r=float