Re: why does exit() print its argument?
| From: | Markus Fischer | Date: | Sat, 29 Sep 2001 01:35:12 +0000 |
| Subject: | Re: why does exit() print its argument? | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-66813@lists.php.net to get a copy of this message | ||
On Fri, Sep 28, 2001 at 06:17:51PM -0700, Rasmus Lerdorf wrote :
> How about if we overload it a bit. I think anybody who does exit(1) is
> expecting 1 to be set as the return status whereas someone who does
> exit('something bad happened') is expecting the string to be shown a-la
> die(). So let's just check the arg and do the appropriate thing. I would
> be very surprised if that broke anything.
+1 !!!!!!
- Markus