Re: why does exit() print its argument?

From: Date: Sat, 29 Sep 2001 01:18:27 +0000
Subject: Re: why does exit() print its argument?
References: 1 2 3 4 5  Groups: php.dev 
Request: Send a blank email to php-dev+get-66811@lists.php.net to get a copy of this message
At 03:10 29-09-01, Jim Winstead wrote:
On Sat, Sep 29, 2001 at 02:12:51AM +0200, Zeev Suraski wrote: Uhm, I'm not dumb :) Of course it enables you to do that, but that's the wrong place to put it. exit() has, since its introduction, been a complete equivalent of die(), and had nothing to do with exit statuses. Putting this code there was wrong (even though who knows, maybe I even did that). no, sascha did. php3 does the same thing.
Ok, looks like it's old enough (as old as mid 1999). We should probably leave it at that and introduce a new shell_exit() function. Zeev

« previous php.dev (#66811) next »