Re: Question: Should exit() print out the integer exit-status?
| From: | Brian Moon | Date: | Wed, 19 Dec 2001 21:28:58 +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-74459@lists.php.net to get a copy of this message | ||
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.
Brian.
----- Original Message -----
From: "benjamin yates" <djanix@hotmail.com>
To: <jason@php.net>; <zeev@zend.com>
Cc: <torben@php.net>; <derick@php.net>; <vlad@php.net>; <sniper@iki.fi>;
<php-dev@lists.php.net>
Sent: Wednesday, December 19, 2001 3:00 PM
Subject: Re: [PHP-DEV] Question: Should exit() print out the integer
exit-status?
| >What are you talking about?
| >1) Setting the exit status of a process is common.
| >2) Try and right any kind of executer/parser that performs well without
| >goto's
|
| 1 - u can return a value just fine (and silently :) with return, and
| having multiple exit points i've always thought was bad design...
|
| 2 - i don't think anyone is going to write that kind of parser in php...
| but i see your point
|
| -benjamin
|
| _________________________________________________________________
| Send and receive Hotmail on your mobile device: http://mobile.msn.com
|
|
| --
| PHP Development Mailing List <http://www.php.net/>
| To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
| For additional commands, e-mail: php-dev-help@lists.php.net
| To contact the list administrators, e-mail: php-list-admin@lists.php.net
|
|
|