Imported from svn://netflint.net/xmpphp (r77)