Bug #78346 [NEW]: strip_tags no longer handling nested php tags
From: development at admeen dot com
Operating system: MacOS & Linux
PHP version: 7.3.7
Package: Strings related
Bug Type: Bug
Bug description:strip_tags no longer handling nested php tags
Description:
------------
After upgrading from v7.3.3 to v7.3.7 it appears nested "php tags"
inside a string are no longer being stripped correctly by strip_tags().
This is still working in v7.3.3, v7.2 & v7.1. I've added a simple test
below.
Test script:
---------------
<?php
$str = '<?= \'<?= 1 ?>\' ?>2';
var_dump(strip_tags($str));
Expected result:
----------------
string(1) "2"
Actual result:
--------------
string(5) "' ?>2"
--
Edit bug report at https://bugs.php.net/bug.php?id=78346&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78346&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78346&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78346&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=78346&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78346&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78346&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78346&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78346&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78346&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78346&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78346&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78346&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78346&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78346&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=78346&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78346&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78346&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78346&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78346&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78346&r=mysqlcfg
Thread (4 messages)
- development at admeen dot com