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:
Alpha
Parse error: parse error, ex
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 of
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
: a
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:
This does!: