#22139 [Opn->Fbk]: htmlspecialchars() fails if argument is NULL

From: Date: Sun, 09 Feb 2003 17:34:54 +0000
Subject: #22139 [Opn->Fbk]: htmlspecialchars() fails if argument is NULL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32578@lists.php.net to get a copy of this message
ID: 22139 Updated by: moriyoshi@php.net Reported By: ivars@elva.lv -Status: Open +Status: Feedback Bug Type: Strings related Operating System: Linux Slackware 7.1 PHP Version: 4.2.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: ------------------------------------------------------------------------ [2003-02-09 11:28:02] ivars@elva.lv 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 this bug report at http://bugs.php.net/?id=22139&edit=1

« previous php.bugs (#32578) next »