Re: Object arithmetic

From: Date: Wed, 17 Oct 2007 23:10:14 +0000
Subject: Re: Object arithmetic
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-32840@lists.php.net to get a copy of this message
While looking at bug 42780: http://bugs.php.net/bug.php?id=42780 The only way not to lose precision is to explicitly cast the object to float or string, which just doesn't seem right to me.
I'm not sure how this can be fixed - there should be some type used and many objects won't provide convertor to float... Anyway, it's probably not the best idea to rely on default conversion in this context - better to specify it. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#32840) next »