php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18638 str_rot13 bug
Submitted: 2002-07-30 06:31 UTC Modified: 2002-07-30 06:52 UTC
From: pipen at demon dot ns dot net dot pl Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.2.2 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pipen at demon dot ns dot net dot pl
New email:
PHP Version: OS:

 

 [2002-07-30 06:31 UTC] pipen at demon dot ns dot net dot pl
I found str_rot13 rotates result string and its argument also...

Proof:

pipen@demon> php4 -q
<?php
$x = 'abcde';
$y = str_rot13( $x );
echo "$x\n$y\n";
?>

this is result:
nopqr
nopqr

and it should be:
abcde
nopqr

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-30 06:52 UTC] rasmus@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Sep 29 03:01:27 2024 UTC