|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-06-22 15:22 UTC] felipe@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: laruence
[2012-06-22 16:27 UTC] laruence@php.net
[2012-06-23 09:27 UTC] laruence@php.net
[2012-06-23 09:33 UTC] laruence@php.net
-Status: Assigned
+Status: Closed
[2012-06-23 09:33 UTC] laruence@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 20:00:01 2025 UTC |
Description: ------------ 函数原型为: string str_replace(mixed $search, mixed $replace, mixed $subject [, int &$count]) 需要跟踪的参数为$subject 和 $replace 而不是$search 和 $replace Test script: --------------- <?php $a = "tainted string" . "."; taint($a); //must use concat to make the string not a internal string(introduced in 5.4) $b = str_replace("str", "btr", $a); var_dump(is_tainted($b)); ?> Expected result: ---------------- bool(true) Actual result: -------------- bool(false)