Re: exit status
| From: | Zeev Suraski | Date: | Thu, 13 May 1999 16:51:04 +0000 |
| Subject: | Re: exit status | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-5601@lists.php.net to get a copy of this message | ||
On Thu, 13 May 1999, Sascha Schumann wrote:
> Hello all,
>
> once upon the time:
>
> -----------
> At 12:56 07/10/98 -0700, Sumbry][ <sumbry@ahnet.net> wrote:
> >
> >Greetings;
> ...
> >Now I figured by using the exit(1) command, that the PHP CGI would return
> >an exit status of 1, but instead, all it does is prints the number 1 to
> >the screen and dies.
>
> Zeev's answer:
>
> You can't. Since there's no meaning to the exit status of PHP right now,
> though, we may add that in the future.
> -----------
>
> I'm now in the need of the option to exit with a specific status (if you
> wonder, it is for a mail handler).
>
> Is there any option to implement this now? If someone could point me at the
> right place, I'll try it myself. Zeev's response looks like it is not
> completely impossible to do.
You mean for PHP 3? I guess we could make it so that the exit status of
the CGI is 0, or what exit() was passed, converted to an integer. But it
would still display that exit status.
Zeev
--
-----------------------------------------------------
Zeev Suraski <zeev@zend.com>
For a PGP public key, finger bourbon@netvision.net.il
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net