Hi All,
I have the following comment in one of my lines of code:
// a processing instruction like <?php return "Hello, world!"; ?> somewhere
in the XML would cause the
Now, when I try and execute the script, I get a parse error referencing the
line on which that comment occurs. Taking out the part that reads "<?php
return Hello World;" ?> makes the parse error go away.
Using /* */ style comments also eliminates the error.
Is this a bug? Should not everything after // be ignored by the parser?
FYI, here is the error:
Parse error: parse error, expecting `T_OLD_FUNCTION ' or `T_FUNCTION' or
`T_VAR' or `'}'' in <filename> on line 130
-Josh
I have the following comment in one of my lines of code:
// a processing instruction like <?php return "Hello, world!"; ?> somewhere
in the XML would cause the
Now, when I try and execute the script, I get a parse error referencing the
line on which that comment occurs. Taking out the part that reads "<?php
return Hello World;" ?> makes the parse error go away.
Using /* */ style comments also eliminates the error.
Is this a bug? Should not everything after // be ignored by the parser?
FYI, here is the error:
Parse error: parse error, expecting `T_OLD_FUNCTION ' or `T_FUNCTION' or
`T_VAR' or `'}'' in <filename> on line 130
-Josh
Comment