From: 6r4845 at gmail dot com
Operating system: Windows
PHP version: 5.3.0alpha3
PHP Bug Type: Feature/Change Request
Bug description: New switch statament
Description:
------------
/**
Hello, i am figured new -- better look switch statement.
Statement by now, is so ugly, discuisting and far away from style...
Exectly i don't like these case 'index': look
------
I am offering totaly new statement look, it would look something like
class'es statement
*/
switch $var
{
case Index
{
echo "Hello world";
}
case Second
{
echo "Hello again";
}
case const NEWS_PAGE
{
echo "News page!";
}
case Default
{
echo "Where do you thing you are?"
}
}
/**
And that is much more stylish than this:
*/
switch ($var){
case 'Index':
echo "Hello world";
break;
case 'Second':
echo "Hello again";
break;
case NEWS_PAGE:
echo "News page";
break;
default:
echo "Where do you thing you are?"
break;
}
/**
I hope i take your attention, and will get reply about this :)
Sorry for bad english
*/
--
Edit bug report at http://bugs.php.net/?id=46859&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=46859&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=46859&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=46859&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=46859&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=46859&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=46859&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=46859&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=46859&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=46859&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=46859&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=46859&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=46859&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=46859&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=46859&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46859&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46859&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=46859&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=46859&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=46859&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=46859&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=46859&r=mysqlcfg