From:             [EMAIL PROTECTED]
Operating system: Linux Slackware 7.1
PHP version:      4.2.3
PHP Bug Type:     Strings related
Bug description:  htmlspecialchars() fails if argument is NULL

The following piece of code takes up a reasonable amount of CPU resources
and fails to finish, something like an infinite loop. 

$a=NULL;
$a = htmlspecialchars($a);

The script terminates after reaching the maximum execution time.
Not sure if the problem exists with newer versions of PHP.
-- 
Edit bug report at http://bugs.php.net/?id=22139&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22139&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22139&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22139&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22139&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22139&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22139&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22139&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22139&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22139&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22139&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22139&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22139&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22139&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22139&r=gnused

Reply via email to