From: [EMAIL PROTECTED] Operating system: win2000 PHP version: 4.2.1 PHP Bug Type: Apache related Bug description: register_tick_function();
PHP as a module in Apache!(Apache1.3.24 + PHP4.2.1) <?php // A function that records the time when it is called function profile($dump = FALSE) { static $profile; // Return the times stored in profile, then erase it if ($dump) { $temp = $profile; unset ($profile); return ($temp); } $profile[] = microtime(); } // Set up a tick handler register_tick_function("profile");//here have a bug,but on win32+PHP4.2.1 no problem! // Initialize the function before the declare block profile(); // Run a block of code, throw a tick every 2nd statement declare(ticks=2) { for ($x = 1; $x < 50; ++$x) { echo similar_text (md5($x), md5($x*$x)), "<br>"; } } // Display the data stored in the profiler print_r(profile (TRUE)); ?> -- Edit bug report at http://bugs.php.net/?id=17283&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17283&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17283&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17283&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17283&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17283&r=support Expected behavior: http://bugs.php.net/fix.php?id=17283&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17283&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17283&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17283&r=globals