Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.9.2
-
None
-
all
Description
Compiling IDL for PHP without a namespace like:
service hi { void myFunc() }
generates hi.php with this at the top:
namespace ;
which causes PHP to produce:
PHP Parse error: syntax error, unexpected ';', expecting identifier (T_STRING) or \\\\ (T_NS_SEPARATOR) or '{' in ... on line 2
The compiler is generating the namespace statement even when there isn't one, which blows up the PHP interpreter. Patch supresses service and type file output of namespace unless there actually is one.