TOKYO (AP) — World stock markets extended gains Monday after Greece and its European creditors reached an agreement that staved off the immediate threat of bankruptcy and exit from the euro though hurdles remain to cementing the short-term funding deal.