ID: 9631
Updated by: stas
Old-Status: Open
Status: Closed
Old-Bug Type: Compile Warning
Bug Type: Scripting Engine problem
Assigned To: 

Yes, this is a valid construct. The syntax of if operator is:
'if(' expression ')' statement

';' alone is a valid statement (just like in C). So that
code is valid. PHP cannot really determine if it's
"meaningful" or not for you.

Previous Comments:

[2001-03-08 12:21:49] [EMAIL PROTECTED]
I don't know if you noticed that but 


works. It won't give out any error or warning, while using the currently latest 
version (4.04pl/win). 
I don't know if that's the intention of the programmers but IMO it's more likly a bug, 
since it doesn't make any sense anywhere i could think so far.
Please let me know if that's fixed soon.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to