note 18552 added to control-structures.declare
| From: | yota at somedomain dot com | Date: | Sun, 27 Jan 2002 22:26:45 +0000 |
| Subject: | note 18552 added to control-structures.declare | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-25875@lists.php.net to get a copy of this message | ||
Quite interesting but ticks doesn't seems to work inside sub code :
register_tick_function ( "foo" );
declare (ticks=1)
{
bar();
}
foo() won't be called within bar(), anyway to fix that ?
I tried to create a thread simulation with register_tick_function() for use with php-gtk but when
giving the hand to gtk with "gtk::main()", the registered tick function isn't called
due to this problem.
However, a real thread system would be very usefull in php...
--
http://www.php.net/manual/en/control-structures.declare.php
http://master.php.net/manage/user-notes.php?action=edit+18552
http://master.php.net/manage/user-notes.php?action=delete+18552
http://master.php.net/manage/user-notes.php?action=reject+18552