Re: [PHP-DEV] PHP 4.0 Bug #8428 Updated: continue doesn't pass thru a switch statement From: Stig Venaas (Stig.Venaas <email protected>)
Date: 01/07/01

On Sun, Jan 07, 2001 at 07:57:44AM +0200, Boian Bonev wrote:
> I never knew about this behavior and just have fixed some rare cases in some
> of my scripts... I have _never_ thought that a continue can break a switch.

And in C it doesn't, that is, it continues the loop enclosing the switch.
I think we should have behavior similar to C here, anything else would be
confusing. The C behavior is more useful too I think.

Stig

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