Re: why does exit() print its argument?
| From: | Jim Winstead | Date: | Fri, 28 Sep 2001 21:27:32 +0000 |
| Subject: | Re: why does exit() print its argument? | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-66795@lists.php.net to get a copy of this message | ||
On Fri, Sep 28, 2001 at 11:14:04PM +0200, Zeev Suraski wrote:
> At 22:17 28-09-01, Jason Greene wrote:
> >Why does exit still set the exit status then?
>
> Ok, apparently it does (didn't recall that it does). I'm not sure what the
> logic behind this is.
so you can have a script that does an exit(1) and things calling that
script can know that there was some sort of error in the script
execution.
(personally, i'd love to see exit() stop outputting the status,
leaving that for die(), but whatever. i know better than to argue for
consistency with perl. :)
jim