RE: [PHP-DEV] Possible problem in the parser
| From: | Ford, Mike [LSS] | Date: | Fri, 14 Mar 2003 15:35:38 +0000 |
| Subject: | RE: [PHP-DEV] Possible problem in the parser | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-95174@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Andi Gutmans [mailto:andi@zend.com]
> Sent: 14 March 2003 14:50
>
> You are right that it doesn't behave the same as C. However,
> personally
> although it might have been better for it to work like C I
> don't think it's
> a good idea to change it now. First of all it would break backwards
> compatibility in a way which would be hard for people to find
> where the bug
> is and how to fix it. Secondly, not meaning to insult anyone
> here, but I
> think people who write such code without using parentheses
> should improve
> their coding style :)
Oh, I totally agree. My original response was to a query as to whether the
PHP behaviour was a bug -- so I simply pointed out (in some detail!) that,
although different from c, it *did* conform to the precedence and
associativity documented in the PHP manual.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211