For MediaWiki (recent comments | status changes | tags | authors | states | release notes | statistics)
Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php =================================================================== --- trunk/phase3/includes/api/ApiQuerySiteinfo.php (revision 50125) +++ trunk/phase3/includes/api/ApiQuerySiteinfo.php (revision 50126) @@ -108,6 +108,10 @@ $data['base'] = $mainPage->getFullUrl(); $data['sitename'] = $GLOBALS['wgSitename']; $data['generator'] = "MediaWiki {$GLOBALS['wgVersion']}"; + $data['phpversion'] = phpversion(); + $data['phpsapi'] = php_sapi_name(); + $data['dbclass'] = get_class($this->getDB()); + $data['dbversion'] = $this->getDB()->getServerVersion(); $svn = SpecialVersion::getSvnRevision( $GLOBALS['IP'] ); if( $svn ) Index: trunk/phase3/RELEASE-NOTES =================================================================== --- trunk/phase3/RELEASE-NOTES (revision 50125) +++ trunk/phase3/RELEASE-NOTES (revision 50126) @@ -126,6 +126,7 @@ * (bug 18597) Internal error with empty generator= parameter * (bug 16422) Don't display help for format=jsonfm unless specifically requested * (bug 18617) Add xml:space="preserve" attribute to relevant tags in XML output +* Added PHP and database version to meta=siteinfo output === Languages updated in 1.16 ===
Dumping the class name for the database type doesn't strike me as ideal; that's an internal implementation detail and could change without the backend database changing in any way. I'd probably recommend using $wgDBtype here rather than a raw class name.
Done in r50161
Thanks!