Use pcntl_signal_dispatch() to catch the signal, don't use declare(ticks=1) because it is ineffcient ?php pcntl_signal(SIGALRM, function () { echo'Received an alarm signa...www.php.net
on OSX (10.9.3) and PHP (5.4.24) you need to use full local name including codeset i.e. for German need to use de_DE.UTF-8 even setlocale returns success when used without .UTF-8 t...www.php.net