Re: [PHP-DEV] Syntax error

2001-09-10 Thread Walter Franzini
Alexander Wagner <[EMAIL PROTECTED]> writes: > Zeev Suraski wrote: > > >for ($sz=1; $sz < 6; sz++) { >> >> You're missing a $ on the last sz in this line > > He knows that. He want a better error-message. :-) Yes, and I'm offering my help if someone can give me some hints. Ciao. -- Walter Fra

Re: [PHP-DEV] Syntax error

2001-09-10 Thread Zeev Suraski
At 18:27 10-09-01, Alexander Wagner wrote: >Zeev Suraski wrote: > > >for ($sz=1; $sz < 6; sz++) { > > > > You're missing a $ on the last sz in this line > >He knows that. He want a better error-message. Ah, missed that. Zeev -- PHP Development Mailing List To unsubscribe

Re: [PHP-DEV] Syntax error

2001-09-10 Thread Zeev Suraski
At 18:09 10-09-01, Walter Franzini wrote: >How can I help improving messages reported for syntax errors? This can be improved in the parser. Try reading the error recovery documentation for bison, about error rules. There's quite a bit of work that can be done in that front, we'll welcome con

Re: [PHP-DEV] Syntax error

2001-09-10 Thread Alexander Wagner
Zeev Suraski wrote: > >for ($sz=1; $sz < 6; sz++) { > > You're missing a $ on the last sz in this line He knows that. He want a better error-message. regards Wagner -- "Never attribute to malice what can as easily be the result of incompetence." -- PHP Development Mailing List

Re: [PHP-DEV] Syntax error

2001-09-10 Thread Zeev Suraski
At 18:09 10-09-01, Walter Franzini wrote: >for ($sz=1; $sz < 6; sz++) { You're missing a $ on the last sz in this line -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administ

[PHP-DEV] Syntax error

2001-09-10 Thread Walter Franzini
The following code contains a syntax error: the reported error is: Parse error: parse error, expecting `')'' in test.php on line 5 Obviously sz++ is not a valid expression. But php-4.0.6 report a misleading message in my opinion. The following code give the same error but for a very diff