Re: [RFC][DRAFT] GMP number as PHP number

From: Date: Tue, 31 Dec 2013 18:49:29 +0000
Subject: Re: [RFC][DRAFT] GMP number as PHP number
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-70945@lists.php.net to get a copy of this message
Hi! > double and int conversions implemented, it doesn't seem entirely > unreasonable to also allow checking for GMP(0) via !$gmpNum as well. If the > general opinion is that we want this behavior, I can add it. I think making (bool)GMP(0) be false and (bool)GMP(others) true may make sense. Though of course that would require people who check various factory methods by doing != false or such be extra careful to use !== or something like that. But that should be the case even now. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#70945) next »