Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2001122

Re: [PHP-DEV] exit() From: Alexander Wagner (wagner <email protected>)
Date: 12/26/01

Yasuo Ohgaki wrote:
> > exit("",0) wouldn't print anything.
>
> It works, but question is
>
> "Is this really good fix? or good change to have?"
>
> I don't expect 100% compatibility for any language
> if there is major version up. I suppose many people
> want/keep clean syntax, instead of keeping
> compatibility for this.
>
> There are many BC changes in many languages including
> PHP, aren't there?

Sure, but three things:

a) BC changes can be made, when necessary. I don't see why breaking BC
is necessary here. People actually using PHP for shell-scripts and such
should be able to cope with strange look of their exit-call.

b) Changing exit()'s behaviour would break a lot of code and would
introduce those really nasty bugs that are hard to find and you end up
with an annoyed customers on the phone who doesn't know what happened
because an error-message wasn't printed.

c) I don't see another major version before PHP 5. But then I'd clean
it up.

regards
Wagner

-- 
Cynic, n.: A blackguard whose faulty vision sees things as they are,
not as they ought to be. 
   -- Ambrose Bierce, "The Devil's Dictionary"

-- 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>