|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-22 03:12 UTC] sniper@php.net
[2005-11-30 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 11:00:02 2025 UTC |
Description: ------------ I was running a benchmark script to test out certain things on my localhost. Once of my scripts involved performing randomly large math calculations within comments, increasing expotentially. Reproduce code: --------------- <?php $st = array_sum (explode (' ', microtime ())); ob_start (); for ($i = 1; $i < 10000; $i++) { echo "<!-- Hello, World! " . ($i % round(sqrt($i*2))) ^ $i . " -->\n"; } ob_end_flush (); echo round ((array_sum (explode (' ',microtime ())) - $st), 5) . "\n"; ?> Expected result: ---------------- I expected for the page to hesistate for a minute or so, and then print out the expected benchmark along with the comments and numbers within them. Actual result: -------------- Strange HTML/Chinese characters: (e.g., ??ᔍഘ?l??ᔍഛ?l??ᔍച?l??ᔍക?l??ᔍഔ?l??ᐍഝ?l??ᐍജ?l??ᐍട?l??ᐍഞ?l??ᐍങ?l??ᐍഘ?l??ᐍഛ?l??ᐍച?l??ᐍക?l??ᐍഔ?l??ᜍഝ?l??ᜍജ?l??ᜍട?l??ᜍഞ?l??ᜍങ?l??ᜍഘ?l??ᜍഛ?l??ᜍച?l??ᜍക?l??ᜍഔ?l??ᘍഝ?l??ᘍജ?l??ᘍട?l??ᘍഞ?l??ᘍങ?l??ᘍഘ?l??ᘍഛ?l??ᘍച?l??ᘍക?l??ᘍഔ?l??ᤍഝ?l??ᤍജ?l??ᤍട?l??ᤍഞ?l??ᤍങ?l??ᤍഘ?l??ᤍഛ?l??ᤍച?l??ᤍക?l??ᤍഔ?l??᠍ഝ...)