Bug #62395 [Asn]: str_replaceéåæè¯¯
| From: | laruence@php.net | Date: | Fri, 22 Jun 2012 16:27:21 +0000 |
| Subject: | Bug #62395 [Asn]: str_replaceéåæè¯¯ | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-9534@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62395&edit=1
ID: 62395
Updated by: laruence@php.net
Reported by: 274611049 at qq dot com
Summary: str_replaceéåæè¯¯
Status: Assigned
Type: Bug
Package: taint
Operating System: suse linux
PHP Version: 5.3.14
Assigned To: laruence
Block user comment: N
Private report: N
New Comment:
谢谢æåºè¿ä¸ªé®é¢, æä¼å°½å¿«ä¿®å¤.
Previous Comments:
------------------------------------------------------------------------
[2012-06-22 14:01:01] 274611049 at qq dot com
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)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62395&edit=1