| From | Sent On | Attachments |
|---|---|---|
| Felipe Pena | May 16, 2011 5:15 am | |
| Ferenc Kovacs | May 16, 2011 5:30 am | |
| Felipe Pena | May 16, 2011 5:46 am | |
| Etienne Kneuss | May 16, 2011 7:33 am | |
| Pierrick Charron | May 16, 2011 7:36 am | |
| Florian Anderiasch | May 16, 2011 10:51 am | |
| Julien Pauli | May 17, 2011 3:30 am | |
| Felipe Pena | May 17, 2011 7:17 am | |
| Andi Gutmans | May 17, 2011 9:01 am | |
| Gustavo Lopes | May 17, 2011 9:06 am | |
| Derick Rethans | May 17, 2011 9:08 am | |
| Gustavo Lopes | May 17, 2011 9:09 am | |
| Zeev Suraski | May 17, 2011 9:13 am | |
| Ferenc Kovacs | May 17, 2011 9:31 am | |
| Stas Malyshev | May 17, 2011 9:49 am | |
| Ferenc Kovacs | May 17, 2011 9:57 am | |
| Rasmus Lerdorf | May 17, 2011 10:01 am | |
| Gustavo Lopes | May 18, 2011 1:41 am | |
| Felipe Pena | Jun 23, 2011 11:08 am | |
| Jordi Boggiano | Jun 23, 2011 11:15 am | |
| Stas Malyshev | Jun 23, 2011 11:16 am | |
| Paul Dragoonis | Jun 23, 2011 11:20 am | |
| Sebastian Bergmann | Jul 18, 2011 2:52 am |
| Subject: | [PHP-DEV] [RFC] Improved parser error message | |
|---|---|---|
| From: | Felipe Pena (feli...@gmail.com) | |
| Date: | May 16, 2011 5:15:01 am | |
| List: | net.php.lists.internals | |
Hi all,
As I have proposed previously in an old thread... What about we name all the tokens to have an improved parser error message? (i.e. anymore T_PAAMAYIM_NEKUDOTAYIM, T_DOLLAR_OPEN_CURLY_BRACES in the messages etc)
Some examples:
$ sapi/cli/php -r 'function ""' Patched: Parse error: syntax error, unexpected quoted-string, expecting identifier or '(' in Command line code on line 1
Current: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING or '(' in Command line code on line 1
$ sapi/cli/php -r 'echo ::a;' Patched: Parse error: syntax error, unexpected :: in Command line code on line 1
Current: Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in Command line code on line 1
Other examples and patch at: https://wiki.php.net/rfc/improved-parser-error-message
Any thoughts?
Thanks.
-- Regards, Felipe Pena





