|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-27 19:47 UTC] iliaa@php.net
[2004-09-27 20:23 UTC] johnkarl at nbnet dot nb dot ca
[2005-02-12 22:50 UTC] tony2001@php.net
[2005-02-20 01:00 UTC] php-bugs at lists dot php dot net
[2007-09-09 10:44 UTC] GDG at FKJF dot HFJ
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 09:00:01 2025 UTC |
Description: ------------ In PHP5, if xml_parser_create is called with an empty string as the character encoding parameter, a server will utilize 100% of the CPU. Restarting Apache will sometimes cause the system to revert to normal, but usually a reboot is needed. In PHP4, calling xml_parser_create("") will cause Expat to autodetect the character encoding. In the user comments of www.php.net, this is purportedly true of PHP5 as well; however this is not the case. This problem has been reproduced on a number of other machines as well. I'm not sure if the same happens with IIS. Reproduce code: --------------- $parser = xml_parser_create(""); Expected result: ---------------- a reference to the parser should be returned Actual result: -------------- Apache stalls, 100% CPU usage