> BTW, I don't think for GMP right now += modifies existing object.
> I guess it may be possible to implement it the other way (not sure).
>
It doesn't. As seen below, we get a new, second object on the
assign_add. Wrong behavior IMO, but something to fix separately from
this.
$g = gmp_init(123);
var_dump($g); // object(GMP)#1 { ["num"]=> 123 }
$g += 1;
var_dump($g); // object(GMP)#2 { ["num"]=> 124 }
-Sara
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php