Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 200004

Re: [PHP4BETA] PHP ticks From: Andi Gutmans (andi <email protected>)
Date: 04/22/00

At 10:15 AM 4/22/00 -0500, Andrei Zmievski wrote:
>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.

They are functional but no one is using them.

Andi

---
Andi Gutmans <andi <email protected>>
http://www.zend.com/

-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>