Apache Crashes when code used
Posted: Thu Apr 07, 2005 2:40 am
Any idea why apache would crash when this code is run?
also, just for a test, could someone else try running this code and see if it crashes for them, or if it's just me and my configuration..
Code: Select all
<?php
function profile($dump = FALSE)
{
static $profile;
if ($dump) {
$temp = $profile;
unset($profile);
return($temp);
}
$profile[] = microtime();
}
register_tick_function("profile");
profile();
declare(ticks=2) {
for ($x = 1; $x < 50; ++$x) {
echo similar_text(md5($x), md5($x*$x)), "<br />;";
}
}
print_r(profile(TRUE));
?>