Date: 09/28/01
- Next message: CVS Account Request: "[PHP-DEV] CVS Account Request"
- Previous message: Zeev Suraski: "[PHP-DEV] exit() / die()"
- In reply to: Jim Winstead: "Re: [PHP-DEV] why does exit() print its argument?"
- Next in thread: Jim Winstead: "Re: [PHP-DEV] why does exit() print its argument?"
- Reply: Jim Winstead: "Re: [PHP-DEV] why does exit() print its argument?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 23:27 28-09-01, Jim Winstead wrote:
>On Fri, Sep 28, 2001 at 11:14:04PM +0200, Zeev Suraski wrote:
> > At 22:17 28-09-01, Jason Greene wrote:
> > >Why does exit still set the exit status then?
> >
> > Ok, apparently it does (didn't recall that it does). I'm not sure what
> the
> > logic behind this is.
>
>so you can have a script that does an exit(1) and things calling that
>script can know that there was some sort of error in the script
>execution.
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).
Zeev
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: CVS Account Request: "[PHP-DEV] CVS Account Request"
- Previous message: Zeev Suraski: "[PHP-DEV] exit() / die()"
- In reply to: Jim Winstead: "Re: [PHP-DEV] why does exit() print its argument?"
- Next in thread: Jim Winstead: "Re: [PHP-DEV] why does exit() print its argument?"
- Reply: Jim Winstead: "Re: [PHP-DEV] why does exit() print its argument?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

