From:             gmilicevic at gmail dot com
Operating system: Win XP SP1
PHP version:      5CVS-2006-01-28 (snap)
PHP Bug Type:     Strings related
Bug description:  str_rot13(NULL) crash

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

-- 
Edit bug report at http://bugs.php.net/?id=36185&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=36185&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=36185&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=36185&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=36185&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=36185&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=36185&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=36185&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=36185&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=36185&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=36185&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=36185&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=36185&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=36185&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36185&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=36185&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=36185&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=36185&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36185&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=36185&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=36185&r=mysqlcfg

Reply via email to