Re: Bug #2368: switch command bug
| From: | Jakub Skopal | Date: | Fri, 24 Sep 1999 00:00:33 +0000 |
| Subject: | Re: Bug #2368: switch command bug | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-11258@lists.php.net to get a copy of this message | ||
Hi,
this is a "traditional" 0?? bug. Shouldn't Zend write a
warning about invalid octal number, so most of the people
reallize they're doing something wrong?
Jakub
23.09.1999 v 21:43:37 (-0000), cd_record@mycar.co.il napsal:
> From: cd_record@mycar.co.il
> Operating system: win95
> PHP version: 3.0.11
> PHP Bug Type: Misbehaving function
> Bug description: switch command bug
>
> when using switch command on an empty or null variable,
> when getting to case 08, it commits it...
> for example :
>
> <?
> $aa="";
>
> switch($aa)
> {
> caes 01:
> echo "a";
> break;
> caes 08:
> echo "b";
> break;
> }
>
>
> this will display 'b'
>
>
>
>
>
>
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Jakub "RiffRaff" Skopal
mailto:j@kubs.cz