Re: [PHP4BETA] cvs: php4 /ext/standard/ string.c
[email protected] (Zeev Suraski) Thu, 1 Jun 2000 17:32:10 +0300 (IDT)
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <[email protected]> |
Simply choose one of the two options I specified (the right one), and move to it... Make sure you use *++r and not ++*r as I mistakenly wrote. Zeev On Thu, 1 Jun 2000 [email protected] wrote: > > > On Thu, 1 Jun 2000, Zeev Suraski wrote: > > > What you're doing is not defined in C/C++. The order of evaluation of > > lvalue vs. rvalue is undefined. > > > > So, > > > > *r = foo(++*r); > > > > Could be equivalent to both: > > > > *r = foo(*r); > > ++*r; > > > > and > > > > ++*r; > > *r = foo(*r); > > > > It's compiler dependant. You need to fix it... > > Oh no, no, no... not again :( > > -- Jouni > > -- Zeev Suraski <[email protected]> http://www.zend.com/