Re: Question: Should exit() print out the integer exit-status?
| From: | Zeev Suraski | Date: | Wed, 19 Dec 2001 13:38:10 +0000 |
| Subject: | Re: Question: Should exit() print out the integer exit-status? | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-74392@lists.php.net to get a copy of this message | ||
At 15:21 19/12/2001, Lars Torben Wilson wrote:
Zeev Suraski writes: Even if you repeat it may times, it still wouldn't be a bug. When I wrote exit() I intended exit() to print out its argument, regardless of its type. It's been behaving like this since PHP 3.0.0 alpha 1, because it was supposed to behave like that. The doc team got it wrong, and misdocumented it. Only this May. Before that, the docs were correct. Logically, though, the fact that a member of the doc team replaced the correct docs with an erroneous description doesn't imply that the function behaved correctly to start with.Considering it does what its author intended it to do, and that it's been doing that since 1997, yes, it does :) If we argued about it in 1997 things may have looked different, but this is almost 2002 now. Zeev