exit()

From: Date: Fri, 21 Dec 2001 09:20:47 +0000
Subject: exit()
Groups: php.dev 
Request: Send a blank email to php-dev+get-74674@lists.php.net to get a copy of this message
Guys,

I just read the whole thread about exit() now. Boy you guys write a lot :)
Unlike Zeev I think that overloading exit() is the best solution we have right now.
Have exit(integer) exit with an exit status and exit("string") print the error. I also very much liked the proposal of exit(string, integer) where it would behave correctly with exit("foo"), exit(5) and exit("foo", 5).
I think BC is an issue and I wouldn't want to break stuff during a 4.x release. It's not as if people can't survive with the way it is today (people have survived for a long time). If it doesn't change tomorrow morning it's not like PHP will fall apart.
How about changing this for PHP 5?

Andi

P.S. - Just a small suggestion. When people write essays in E-mails please see if they can't be shortened whilst still saying all you wanted to say. It sometimes takes a looooooooong time to read all of these threads :)



Thread (10 messages)

« previous php.dev (#74674) next »