#17283 [Fbk->NoF]: register_tick_function();
| From: | sniper@php.net | Date: | Sat, 21 Sep 2002 07:14:23 +0000 |
| Subject: | #17283 [Fbk->NoF]: register_tick_function(); | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-19975@lists.php.net to get a copy of this message | ||
ID: 17283
Updated by: sniper@php.net
Reported By: sendidmax@yahoo.com.cn
-Status: Feedback
+Status: No Feedback
Bug Type: Scripting Engine problem
Operating System: win2000
PHP Version: 4.2.1
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2002-08-23 22:25:17] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-07-01 21:43:48] alan_k@php.net
duplicate of 11536
- I assume that this is supposed to indicate that if you keep reloading
it, the lists gets longer and longer...
------------------------------------------------------------------------
[2002-05-16 23:04:40] sendidmax@yahoo.com.cn
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 this bug report at http://bugs.php.net/?id=17283&edit=1