Until now, i hadn't tried it in a file all by itself, only within other scripts.
Without curly braces, it throws an error:
Catchable fatal error: Object of class stdClass could not be converted to string in /home/generic5/public_html/test.php on line 6
With curly braces, it executes fine.