Bug #11820 Updated: Error in parsing switch...
| From: | derick@php.net | Date: | Sun, 01 Jul 2001 11:00:57 +0000 |
| Subject: | Bug #11820 Updated: Error in parsing switch... | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-58610@lists.php.net to get a copy of this message | ||
ID: 11820
Updated by: derick
Reported By: key@mail.ru
Old-Status: Open
Status: Bogus
Bug Type: Unknown/Other Function
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
Not a bug, if you use a 0 before a number, it is treated like an octal number.
08 and 09 are not valid in the octal system. Just use 8 and 9 and it will work fine.
Derick
Previous Comments:
---------------------------------------------------------------------------
[2001-07-01 04:42:12] key@mail.ru
switch (0)
{
case 01: echo "1Shit";
break;
case 02: echo "2Shit";
break;
case 03: echo "3Shit";
break;
case 04: echo "4Shit";
break;
case 05: echo "5Shit";
break;
case 06: echo "6Shit";
break;
case 07: echo "7Shit";
break;
case 08: echo "8Shit";
break;
case 09: echo "9Shit";
break;
case 10: echo "8Shit";
break;
}
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11820&edit=2