Skip to content

Commit 7e94af7

Browse files
committed
fixup! Implement the "Redacting parameters in back traces" RFC
1 parent 2fd9a60 commit 7e94af7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
--TEST--
2+
A SensitiveParameterValue's value is accessible using reflection.
3+
--FILE--
4+
<?php
5+
6+
$v = new SensitiveParameterValue('secret');
7+
8+
$r = new ReflectionClass($v);
9+
$p = $r->getProperty('value');
10+
11+
var_dump($p->getValue($v));
12+
13+
?>
14+
--EXPECTF--
15+
string(6) "secret"

0 commit comments

Comments
 (0)