|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-04-23 02:06 UTC] laruence@php.net
-Assigned To:
+Assigned To: laruence
[2012-05-08 08:29 UTC] laruence@php.net
[2012-05-08 08:36 UTC] laruence@php.net
[2012-05-08 08:36 UTC] laruence@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 07:00:01 2025 UTC |
Description: ------------ <?php $a = "tainted string" . ".\n"; taint($a); $b = array(""); $b[0] .= $a; var_dump(is_tainted($b[0])); $c = new stdClass(); $c->foo = "this is"; $c->foo .= $b[0]; echo $b[0]; // Segmentation fault var_dump(is_tainted($c->foo)); ?> Expected result: ---------------- bool(true) Warning: main(): Attempt to echo a string that might be tainted in %s010.php on line %d tainted string. bool(true) Actual result: -------------- Segmentation fault