function __construct($other = null) { if (is_resource($other) && get_resource_type($other) === '_p_Xapian__MSetIterator') { $this->_cPtr = $other; return; } switch (func_num_args()) { case 0: $this->_cPtr = new_MSetIterator(); break; default: $this->_cPtr = new_MSetIterator($other); } }
function __construct($other = null) { switch (func_num_args()) { case 0: $r = new_MSetIterator(); break; default: $r = new_MSetIterator($other); } $this->_cPtr = $r; }