PHP 4.0 Bug #3830: Function to timeout/break off a function

From: Date: Tue, 14 Mar 2000 16:27:16 +0000
Subject: PHP 4.0 Bug #3830: Function to timeout/break off a function
Groups: php.dev 
Request: Send a blank email to php-dev+get-16803@lists.php.net to get a copy of this message
From: wico@cnh.nl Operating system: linux PHP version: 4.0 Beta 4 Patch Level 1 PHP Bug Type: Feature/Change Request Bug description: Function to timeout/break off a function Hiya, i did like to see a function wich breaks into another when it take to long: <? funtion Hour () { sleep 3600; } // break after say 2 secs $timeout = Timeout_function(hour(), 2); if ($timeout) { // function took to long } else { // function compledet normal } ?>

« previous php.dev (#16803) next »