Re: Question: Should exit() print out the integer exit-status?
| From: | derick@php.net | Date: | Thu, 20 Dec 2001 14:01:55 +0000 |
| Subject: | Re: Question: Should exit() print out the integer exit-status? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-74578@lists.php.net to get a copy of this message | ||
On Thu, 20 Dec 2001, benjamin yates wrote:
>
>
> > No offense Benjamin, but you don't understand the conversation. This is
> > about running PHP apps in consoles, mail pre-processors and as cron jobs
> > where exit status is needed. The only way to get an exit status is with
> > exit.
>
> wow i just tried it... i never realized that return wasn't setting the exit
> code. ok then - i guess i'm all for system_exit() or similar, but why
> wouldn't we want return to set it like it's C counterpart?
Actually, most ppl want to do that.
Derick