Page 1 of 1

unexpected character input

Posted: Fri Nov 30, 2007 8:27 am
by s.dot
Warning: Unexpected character in input: ''' (ASCII=39) state=1

Code: Select all

$tokens = token_get_all($code);
This happens very very rarely, and I'm not sure what it means and I'm not sure how to fix it, other than using @?

Posted: Fri Nov 30, 2007 8:34 am
by VladSun

Posted: Fri Nov 30, 2007 8:43 am
by s.dot
Oh, nice. So it's a parsing error in the code. I guess for the library I'm writing, it's best to suppress those errors. Either that or check if the code doesn't have a parsing error.. which I don't know how to go about doing.

Posted: Fri Nov 30, 2007 3:11 pm
by feyd

Code: Select all

$> php -l foo.php
lint. ;)