"Frank M. Kromann" <[EMAIL PROTECTED]> writes:

> It might be documented but it has not always been working like this. I
> have some code that I have not touched for over 2 years, and It has workd
> with both PHP4 and PHP5 versions (even PHP5-1-0-dev from Aug 19 2004
> 17:03:39 ). After upgrading to PHP5 CVS-HEAD it stopped working.

I haven't updated to HEAD in the past few weeks so I haven't seen the problem,
but I too have a number of cases where the default condition is the first in
the list.  It's been working fine.  Although I can reorganize the switch to
put the default at the end, that makes the code less readable since the
numeric ordering of the cases is then out of order.  I'd certainly prefer the
C-like BC be retained, allowing default: to be wherever is appropriate in the
code.

Derrell

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to