|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-10-15 14:54 UTC] 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"
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 19:00:01 2025 UTC |
Hi, I still have a bug with the following code : <?php [...] scriptLog(' ->/view/main.php'); [...] ?> parsing assumes php code stops with "->" in the scriptLog argument. Regards, Sam