summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/bug20261.phpt
blob: 3c03afb43df16b852fdd02de835dc938894d6162 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
Bug #20261 (str_rot13() changes too much)
--FILE--
<?php
 $first = "boo";
 $second = $first;
 $rot = "";

 echo "1: ".$first."\n";
 echo "2: ".$second."\n";
 echo "3: ".$rot."\n";

 $rot = str_rot13($second);

 echo "1: ".$first."\n";
 echo "2: ".$second."\n";
 echo "3: ".$rot."\n";
?>
--EXPECT--
1: boo
2: boo
3: 
1: boo
2: boo
3: obb