php.net |  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
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: gmilicevic at gmail dot com
New email:
PHP Version: OS:

 

 [2006-01-28 00:37 UTC] gmilicevic at gmail dot com
Description:
------------
Hello,

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:
---------------
<?php
echo str_rot13(NULL);
?>

Expected result:
----------------
no result ?

Actual result:
--------------
crash

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-28 01:14 UTC] pajoye@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC