Re: [PHP] Re: Watch out for automatic type casting

2012-04-07 Thread tamouse mailing lists
On Sat, Apr 7, 2012 at 1:55 PM, Maciek Sokolewicz wrote: > On 07-04-2012 16:37, Bogdan Ribic wrote: [snip] > > Bogdan, > you are reviving a thread over a week old, and repeating what 4 other people > have already stated. Please don't do that, it just results in > mailinglist-noise. > > - Tul plus

[PHP] Re: Watch out for automatic type casting

2012-04-07 Thread Maciek Sokolewicz
On 07-04-2012 16:37, Bogdan Ribic wrote: This is *not* typecasting at all, this is assignment of a result of boolean operator, and it boils down to operator precedence. It's equivalent to this code: $b = $x == 11; in the part that right side of equation sign is calculated first, then assigned

[PHP] Re: Watch out for automatic type casting

2012-04-07 Thread Bogdan Ribic
This is *not* typecasting at all, this is assignment of a result of boolean operator, and it boils down to operator precedence. It's equivalent to this code: $b = $x == 11; in the part that right side of equation sign is calculated first, then assigned to lvalue. In effect, you wrote this: