type = self::XMLRPC_TYPE_BOOLEAN; // Make sure the value is boolean and then convert it into a integer // The double conversion is because a bug in the ZendOptimizer in PHP version 5.0.4 $this->value = (int)(bool) $value; } /** * Return the value of this object, convert the XML-RPC native boolean value into a PHP boolean * * @return bool */ public function getValue() { return (bool) $this->value; } }