String after // is causing script to bomb
From: Joshua Beall (jbeall_at_heraldic.us)
Date: 10/31/03
- Next message: Useko Netsumi: "To register_globalsl=On or Not to register_globals=On"
- Previous message: Daniel Tryba: "Re: Variable passing to script to fill html <img src="MyScript.Php?ImageName=KnownGoodData" >"
- Next in thread: Pedro: "Re: String after // is causing script to bomb"
- Reply: Pedro: "Re: String after // is causing script to bomb"
- Reply: Alvaro G Vicario: "Re: String after // is causing script to bomb"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 31 Oct 2003 00:09:56 GMT
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
- Next message: Useko Netsumi: "To register_globalsl=On or Not to register_globals=On"
- Previous message: Daniel Tryba: "Re: Variable passing to script to fill html <img src="MyScript.Php?ImageName=KnownGoodData" >"
- Next in thread: Pedro: "Re: String after // is causing script to bomb"
- Reply: Pedro: "Re: String after // is causing script to bomb"
- Reply: Alvaro G Vicario: "Re: String after // is causing script to bomb"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|