#22533 [Opn->Bgs]: problem with strtr(), 100% of CPU use

From: Date: Tue, 04 Mar 2003 11:54:14 +0000
Subject: #22533 [Opn->Bgs]: problem with strtr(), 100% of CPU use
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-34749@lists.php.net to get a copy of this message
ID: 22533 Updated by: moriyoshi@php.net Reported By: andre at softexpert dot com -Status: Open +Status: Bogus Bug Type: Reproducible crash Operating System: W2k PHP Version: 4.2.3 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Don't pass to strtr a null string as that to be replaced. Previous Comments: ------------------------------------------------------------------------ [2003-03-04 05:38:42] andre at softexpert dot com When using strtr() passing a number as first parameter, and an array that contains ("" => "anything"), php.exe uses 100% of CPU and stays running until IIS return a CGI Time limit. Example: echo strtr(10, array("" => "a")); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22533&edit=1

« previous php.bugs (#34749) next »