|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36185 str_rot13(NULL) crash
Submitted: 2006-01-28 00:37 UTC Modified: 2006-01-28 01:14 UTC
From: gmilicevic at gmail dot com Assigned: pajoye (profile)
Status: Closed Package: Strings related
PHP Version: 5CVS-2006-01-28 (snap) OS: Win XP SP1
Private report: No CVE-ID: None
 [2006-01-28 00:37 UTC] gmilicevic at gmail dot com

For my article : 'php - string manipulation' i'm tested the various results of must php functions.

For the functions str_rot13() i have tested with NULL in the  single argument, the result of this test is: crash.

I have tested with PHP 5.1.2 (win 32 packtage), PHP 5 cvs of today (win 32 packtage), and with PHP 4.3.10-16 (cli) (Linux Debian).

(Sorry for my english.)

Reproduce code:
echo str_rot13(NULL);

Expected result:
no result ?

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-28 01:14 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Jun 03 16:03:34 2023 UTC