function Text_Diff3($orig, $final1, $final2)
    {
        if (extension_loaded('xdiff')) {
            $engine = new Text_Diff_Engine_xdiff();
        } else {
            $engine = new Text_Diff_Engine_native();
        }

        $this->_edits = $this->_diff3($engine->diff($orig, $final1),
                                      $engine->diff($orig, $final2));
    }
function Text_Diff3($orig, $final1, $final2)
    {
        if (extension_loaded('xdiff')) {
            $engine = new Text_Diff_Engine_xdiff();
        } else {
            $engine = new Text_Diff_Engine_native();
        }

        $this->_edits = $this->_diff3($engine->diff($orig, $final1),
                                      $engine->diff($orig, $final2));
    }
function Text_Diff3 ( $ orig , $ final1 , $ final2 ) { if ( extension_loaded ( 'xdiff' ) ) { $ engine = new Text_Diff_Engine_xdiff ( ) ; } else { $ engine = new Text_Diff_Engine_native ( ) ; } $ this -> _edits = $ this -> _diff3 ( $ engine -> diff ( $ orig , $ final1 ) , $ engine -> diff ( $ orig , $ final2 ) ) ; }
Computes diff between 3 sequences of strings.

@param array $orig    The original lines to use.
@param array $final1  The first version to compare to.
@param array $final2  The second version to compare to.
Computes diff between 3 sequences of strings .