I have such problem. On my system exit is not working at all. OS: Fedora 30, PHP 7.3.
Simple script:
<?php
exit;
exit();
exit(0);
exit(1);
exit("exit");
die;
die();
die(0);
die(1);
die("die");
echo "Hello world\n";
Output:
$ php check-exit.php
Hello world
Why this happens? How to make exit to work as documented?
exit()instead ofexit