I am baffled by this warning:
Warning: Unexpected character in input: '' (ASCII=27) state=1 in
/usr/local/src/PHPUnit2/Util/Report/Coverage/Node/File.php on line 182
The line reported is
$tokens = token_get_all('<?php ' . $line . ' ?>');
Any idea what is going wrong here? This is current PHP_5_2.
--
Sebastian Bergmann http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Try opening the suspect file in a hex editor, or some editor which won't
hide special characters (e.g. ASCII 27) from you. I think you'll find
that one has somehow wound its way in there. Either that, or current
PHP_5_2 is messed up in some way =)
Jasper
Sebastian Bergmann wrote:
I am baffled by this warning:
Warning: Unexpected character in input: '' (ASCII=27) state=1 in
/usr/local/src/PHPUnit2/Util/Report/Coverage/Node/File.php on line 182The line reported is
$tokens = token_get_all('<?php ' . $line . ' ?>');
Any idea what is going wrong here? This is current PHP_5_2.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEjks1FfAeHhDzT4gRA5gYAKCo+YdZXu0/cBOH8eoNZxbNcw1t9QCdF6b/
ae/7FJB5/nQOY8O4/7+KTUI=
=NG+u
-----END PGP SIGNATURE
Sebastian Bergmann wrote:
Any idea what is going wrong here?
Sorry for the noise, it turned out that is caused by escape sequences in
the code that my code analyzes using token_get_all()
.
--
Sebastian Bergmann http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69