#31964 [NEW]: strip_tags truncates strings at '<<'
| From: | tom at designsolution dot co dot uk | Date: | Mon, 14 Feb 2005 08:51:09 +0000 |
| Subject: | #31964 [NEW]: strip_tags truncates strings at '<<' | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-74016@lists.php.net to get a copy of this message | ||
From: tom at designsolution dot co dot uk
Operating system: OS X 10.3.8
PHP version: 4.3.10
PHP Bug Type: Strings related
Bug description: strip_tags truncates strings at '<<'
Description:
------------
When running strip_tags on a string containing '<<', the string is
truncated at the '<<'.
Reproduce code:
---------------
<?php
$test = "testing << testing testing 1 2 3";
print(strip_tags($test));
?>
Expected result:
----------------
Probably should return the complete string eg:
testing << testing testing 1 2 3
At the worst I would have expected it without the << but certainly
containing the rest.
Actual result:
--------------
testing
--
Edit bug report at http://bugs.php.net/?id=31964&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31964&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31964&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31964&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31964&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31964&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31964&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31964&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31964&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31964&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31964&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31964&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31964&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31964&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31964&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31964&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31964&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31964&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31964&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31964&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31964&r=mysqlcfg