Re: Bug #11008 Updated: exit() should return an exit status

From: Date: Fri, 07 Dec 2001 02:33:06 +0000
Subject: Re: Bug #11008 Updated: exit() should return an exit status
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-72817@lists.php.net to get a copy of this message
Jani Taskinen wrote:
I can't remember every single war there has been on php-dev.. :-p Like Jason put it, two GOOD solutions (others are just denying the fact that someone fucked this up when it was implemented): 1. Overload it. 2. Separate die() and exit(). Zeev, are you really using exit() to output integers? What kind of script is it? (just curious) Maybe we should ask on php-general sometimes when we get into discussion whether people rely on something or not? :) Or put up some kind of voting thing on php.net which can be used to find out what the people 'out there' think ? --Jani
My vote wouldn't count, but I vote +1 :) Converting scripts are really simple, since users can replace exit() with paramters to die(). I remeber previous discussion, but I feel functions like exit_shell() is strange... -- Yasuo Ohgaki

« previous php.dev (#72817) next »