ID: 11447
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Operating system: Linux (RedHat 6.2)
PHP Version: 4.0.4pl1
Description: Switch statement sensible for white-space
Observe that the spaces are significant.
This doesn't work:
? switch($var){ ?
?
ID: 11447
User Update by: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Scripting Engine problem
Operating system: Linux (RedHat 6.2)
PHP Version: 4.0.4pl1
Description: Switch statement sensible for white-space
Which style I use, the classical style (using {}) or the alternative style (using
: and
From: [EMAIL PROTECTED]
Operating system: Linux (RedHat 6.2)
PHP version: 4.0.4pl1
PHP Bug Type: Scripting Engine problem
Bug description: Switch statement sensible for white-space
The following script gave a parse error:
? switch($var): ?
? case alpha: ?
pAlpha/p
ID: 11447
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Operating system: Linux (RedHat 6.2)
PHP Version: 4.0.4pl1
Description: Switch statement sensible for white-space
Section 7.4 in the FAQ is a little bit related.
Should perhaps the ending for a block