Re: [RFC] Internal operator overloading and GMP improvements

From: Date: Mon, 13 May 2013 10:50:30 +0000
Subject: Re: [RFC] Internal operator overloading and GMP improvements
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-67418@lists.php.net to get a copy of this message
On Mon, May 13, 2013 at 12:25 PM, Dmitry Stogov <dmitry@zend.com> wrote: > Would need an additional object handler though (as compare_objects works >> only on objects, so it's currently not possible to support something like >> $gmp == 0). >> > > Or may be we may introduce additional opcode (or even pseudo-opcode) > ZEND_CMP to do it in the same way. > I implemented it with a separate handler for now ( https://github.com/nikic/php-src/commit/208442f84afd7ccd8e2dce8138c0950719a2e031), but I'm also okay with moving it into do_operation. Not sure if it's a good idea to add pseudo opcodes though. Nikita

« previous php.internals (#67418) next »