Re: why does exit() print its argument?

From: Date: Sun, 30 Sep 2001 12:25:30 +0000
Subject: Re: why does exit() print its argument?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-66852@lists.php.net to get a copy of this message
On Fri, 28 Sep 2001, 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. Exactly what I was thinking of, and just wrote... Derick

« previous php.dev (#66852) next »