Re: [PHP4BETA] PHP ticks
| From: | Andrei Zmievski | Date: | Sat, 22 Apr 2000 15:15:40 +0000 |
| Subject: | Re: [PHP4BETA] PHP ticks | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-13917@lists.php.net to get a copy of this message | ||
On Fri, 21 Apr 2000, Jade Nicoletti wrote:
> While browsing the php4/zend source, I saw that ticks can be used like this:
>
> declare (ticks = 1) {
> function foo() {
> echo "bar\n";
> }
> }
> foo();
>
> But what are the uses of PHP ticks?
The ticks can be used to emulate background processing. They are not
functional right now, but when they are you will be able to register
functions that get called after each statement in the script is
executed. That's if ticks=1. If it's ticks=5, for example, then your
function will be called after every 5th statement.
-Andrei
It is commonly the case with technologies that you can get
the best insight about how they work by watching them fail.
-- Neal Stephenson