PHP :: Bug #36185 :: str_rot13(NULL) crash
| 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
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 commits
[2006-01-28 01:14 UTC] pajoye@php.net