Re: [PHP-PEAR] event-based oop design
[email protected] ("Jesus M. Castagnetto") Wed, 14 Mar 2001 20:50:43 -0800 (PST)
| Newsgroups | php.pear |
|---|---|
| Message-ID | <[email protected]> |
--- André Langhorst <[email protected]> wrote: > Jesus M. Castagnetto wrote: > > > Cool thing Stig, > > be warned, currently it crashes (at least) on > windows... Seems to work OK for RH 6.1, PHP 4.0.4pl1. I can see this working as a "watch" in a debugger (modifying Stig's code): function watch($arr) { echo "-----\nwatched values\n"; foreach ($arr as $key=>$arg) echo "$key = $arg\n"; } $a = $b = 0; register_tick_function("watch", array("a"=>&$a, "b"=>&$b)); mt_srand ((double) microtime() * 1000000); declare (ticks = 1): $a = cos(mt_rand(1,20)); $a = tan(mt_rand(1,20)); $b = "cool"; $a = pi(); $b = sin(1.233); enddeclare; ===== --- Jesus M. Castagnetto ([email protected]) __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/