php-src/ext/standard/tests/strings/bug20261.phpt

27 lines
347 B
Plaintext
Raw Normal View History

2002-11-05 17:46:36 +00:00
--TEST--
2002-11-05 17:25:59 +00:00
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