Bug #70720 [Asn]: strip_tags improper php code parsing

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=70720&edit=1

 ID:                 70720
 Updated by:         [email protected]
 Reported by:        admin at sinfocol dot org
 Summary:            strip_tags improper php code parsing
 Status:             Assigned
 Type:               Bug
 Package:            Strings related
 Operating System:   Any
 PHP Version:        Irrelevant
 Assigned To:        jpauli
 Block user comment: N
 Private report:     Y

 New Comment:

Requalifying as non-security bug


Previous Comments:
------------------------------------------------------------------------
[2015-10-15 14:54:59] admin at sinfocol dot org

Description:
------------
Hello,

The strip_tags function stop the processing of php code until the next ">" is found if the string "xml" is included within php tags.

Test script:
---------------
<?php

var_dump(strip_tags('<?php $dom->test(); ?> this is a test'));
var_dump(strip_tags('<?php $xml->test(); ?> this is a test'));

Expected result:
----------------
string(15) " this is a test"
string(15) " this is a test"

Actual result:
--------------
string(15) " this is a test"
string(25) "test(); ?> this is a test"


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=70720&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.