Re: Bug #11536 Updated: register_tick_function weirdness
| From: | Joao Prado Maia | Date: | Tue, 10 Jul 2001 09:25:31 +0000 |
| Subject: | Re: Bug #11536 Updated: register_tick_function weirdness | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-59511@lists.php.net to get a copy of this message | ||
Fine :)
But please someone take a look into this, as I can also reproduce this
problem on Linux / Apache / PHP 4.0.5 and it might be an easy fix
(clueless though). Sinec we are talking about this, did anyone else ever
tried using ticks on Apache under Windows 2000 ?
I get a rather nasty "Program Error" or whatever the little message is
when I run the same script in there. The sample script that I'm trying to
use goes below:
<?php
// A function that records the time when it is called
function metasearch()
{
echo "Time now: " . microtime() . "<br>";
}
// Set up a tick handler
register_tick_function("metasearch");
declare(ticks=1) {
1;1;1;1;1;
}
?>
When this error on Windows occurs, nothing shows up on the error_log, so
I still don't know what is going on. Any suggestions are very welcome.
Cheers,
Joao
On 10 Jul 2001 derick@php.net wrote:
> ID: 11536
> Updated by: derick
> Reported By: wico@cnh.nl
> Old Status: Analyzed
> Status: Open
> Bug Type: Scripting Engine problem
> Operating System: linux + apache
> PHP Version: 4.0.5 - 4.0.7
> New Comment:
>
> It's not anaylysed, I could only reproduce it.
>
> Derick
>
> Previous Comments:
> ------------------------------------------------------------------------
>
> [2001-06-18 08:26:20] derick@php.net
>
> I can reproduce this with 4.0.6RC3 and 4.0.7dev. But the repeating is not after every reload.
> My guess is that it is per apache child.
>
> Derick
>
> ------------------------------------------------------------------------
>
> [2001-06-18 08:22:29] wico@cnh.nl
>
> Hiya,
>
> Try to run the example on
> http://www.php.net/manual/en/control-structures.declare.php a couple
> of times
>
> output 1st time:
> [tick i=1] [tick i=2]
>
> output 2nd time:
> [tick i=1] [tick i=2] [tick i=3] [tick i=4]
>
> output 3rd time:
> [tick i=1] [tick i=2] [tick i=3] [tick i=4] [tick i=5] [tick i=6]
>
> You should get the point by now I think :)
>
> Greetz,
>
> Wico
>
> ------------------------------------------------------------------------
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
> http://bugs.php.net/?id=11536&edit=1
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
--
João Prado Maia <jpm@phpbrasil.com>
http://phpbrasil.com - php com um jeitinho brasileiro
--
Precisando de consultoria em desenvolvimento para a Internet ?
Impleo.net - http://impleo.net/?lang=br