note 68686 added to control-structures.declare
| From: | ep at numlog dot fr | Date: | Mon, 07 Aug 2006 10:02:26 +0000 |
| Subject: | note 68686 added to control-structures.declare | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115606@lists.php.net to get a copy of this message | ||
$myticks = 5 ;
// Parse error :
declare(ticks=$myticks) ;
// Don't work (signals are not any more caught !)
$curticks = 'declare(ticks='.$myticks.');';
eval($curticks);
How can we customize dynamically ticks ?
Or ticks might never change during process ?
The problem is that ticks can't also be changed at start
without changing code ....
Any idea ?
----
Server IP: 194.246.101.61
Probable Submitter: 213.41.129.100
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/control-structures.declare.php
Edit -- https://master.php.net/note/edit/68686
Del: integrated -- https://master.php.net/note/delete/68686/integrated
Del: useless -- https://master.php.net/note/delete/68686/useless
Del: bad code -- https://master.php.net/note/delete/68686/bad+code
Del: spam -- https://master.php.net/note/delete/68686/spam
Del: non-english -- https://master.php.net/note/delete/68686/non-english
Del: in docs -- https://master.php.net/note/delete/68686/in+docs
Del: other reasons-- https://master.php.net/note/delete/68686
Reject -- https://master.php.net/note/reject/68686
Search -- https://master.php.net/manage/user-notes.php