PHP 8.5.0 Alpha 4 available for testing

Voting

: max(seven, three)?
(Example: nine)

The Note You're Voting On

benjamin at josefus dot /NO+SPAM/ net
16 years ago
Since php >= 5.3 handles Closures, you are now able to define the Callback directly.
Try this:

<?php
declare(ticks = 1);

pcntl_signal(SIGUSR1, function ($signal) {
echo
'HANDLE SIGNAL ' . $signal . PHP_EOL;
});

posix_kill(posix_getpid(), SIGUSR1);

die;
?>

<< Back to user notes page

To Top