r71962 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71961‎ | r71962 | r71963 >
Date:17:11, 30 August 2010
Author:demon
Status:deferred (Comments)
Tags:
Comment:
More php4-style constructors. I think thats most of them
Modified paths:
  • /trunk/extensions/ActiveAbstract/AbstractFilter.php (modified) (history)
  • /trunk/extensions/ActiveAbstract/GoogleCoopFilter.php (modified) (history)
  • /trunk/extensions/AdminLinks/AdminLinks_body.php (modified) (history)
  • /trunk/extensions/ApprovedRevs/AR_ApprovedPages.php (modified) (history)
  • /trunk/extensions/Asksql/Asksql_body.php (modified) (history)
  • /trunk/extensions/Autoincrement/Autoincrement.php (modified) (history)
  • /trunk/extensions/Blahtex/Blahtex.php (modified) (history)
  • /trunk/extensions/CSS/CSS.php (modified) (history)
  • /trunk/extensions/Call/Call_body.php (modified) (history)
  • /trunk/extensions/CategoryIntersection/CategoryIntersection_body.php (modified) (history)
  • /trunk/extensions/CentralAuth/SpecialGlobalGroupMembership.php (modified) (history)
  • /trunk/extensions/CentralNotice/CentralNotice.db.php (modified) (history)
  • /trunk/extensions/CentralNotice/SpecialCentralNotice.php (modified) (history)
  • /trunk/extensions/Cite/Cite_body.php (modified) (history)
  • /trunk/extensions/Cite/SpecialCite_body.php (modified) (history)
  • /trunk/extensions/ConfirmEdit/ConfirmEdit_body.php (modified) (history)
  • /trunk/extensions/ContactPage/SpecialContact.php (modified) (history)
  • /trunk/extensions/ContactPageFundraiser/SpecialContact.php (modified) (history)
  • /trunk/extensions/ContributionReporting/ContributionHistory_body.php (modified) (history)
  • /trunk/extensions/ContributionReporting/ContributionTotal_body.php (modified) (history)
  • /trunk/extensions/CrossNamespaceLinks/CrossNamespaceLinks_body.php (modified) (history)
  • /trunk/extensions/DelayedDefinition/DelayedDefinition_body.php (modified) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/extras/minfraud/ccfd/CreditCardFraudDetection.php (modified) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/extras/minfraud/ccfd/HTTPBase.php (modified) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/extras/minfraud/ccfd/LocationVerification.php (modified) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/extras/minfraud/ccfd/TelephoneVerification.php (modified) (history)
  • /trunk/extensions/DoubleWiki/DoubleWiki_body.php (modified) (history)
  • /trunk/extensions/ExternalData/ED_GetData.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/phplot-5.0.5/phplot.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/phplot-5.0.5/phplot_data.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/svggraph/svgGraph.php (modified) (history)
  • /trunk/extensions/Form/Form.body.php (modified) (history)
  • /trunk/extensions/GoogleMaps/GoogleMaps.body.php (modified) (history)
  • /trunk/extensions/GoogleMaps/SpecialGoogleMapsKML.php (modified) (history)
  • /trunk/extensions/GoogleMaps/export/GoogleMapsImgExporter.php (modified) (history)
  • /trunk/extensions/GoogleMaps/export/GoogleMapsJsExporter.php (modified) (history)
  • /trunk/extensions/GoogleMaps/export/GoogleMapsKmlExporter.php (modified) (history)
  • /trunk/extensions/ImageTagging/ImageTagging_body.php (modified) (history)
  • /trunk/extensions/ImportUsers/ImportUsers_body.php (modified) (history)
  • /trunk/extensions/JS2Support/mwEmbed/includes/library/CSS.php (modified) (history)
  • /trunk/extensions/JS2Support/mwEmbed/includes/library/CSS/UriRewriter.php (modified) (history)
  • /trunk/extensions/LatexDoc/LatexDoc.php (modified) (history)
  • /trunk/extensions/LdapAuthentication/LdapAuthentication.php (modified) (history)
  • /trunk/extensions/ListChangedArticles/ListChangedArticles_body.php (modified) (history)
  • /trunk/extensions/LogEntry/LogEntry.page.php (modified) (history)
  • /trunk/extensions/MWSearch/MWSearch_body.php (modified) (history)
  • /trunk/extensions/MWSearch/luceneUpdate.php (modified) (history)
  • /trunk/extensions/MakeDBError/MakeDBError_body.php (modified) (history)
  • /trunk/extensions/MetavidWiki/includes/specials/MV_SpecialMediaSearch.php (modified) (history)
  • /trunk/extensions/Minify/Minify_body.php (modified) (history)
  • /trunk/extensions/MogileClient/MogileFS.php (modified) (history)
  • /trunk/extensions/MultiUpload/MultiUpload.body.php (modified) (history)
  • /trunk/extensions/NewsChannel/NewsChannel_body.php (modified) (history)
  • /trunk/extensions/OAI/OAIHarvest.php (modified) (history)
  • /trunk/extensions/OAI/OAIRepo_body.php (modified) (history)
  • /trunk/extensions/OpenID/OpenIDProvider.body.php (modified) (history)
  • /trunk/extensions/OpenID/SpecialOpenIDConvert.body.php (modified) (history)
  • /trunk/extensions/OpenID/SpecialOpenIDServer.body.php (modified) (history)
  • /trunk/extensions/OpenID/SpecialOpenIDXRDS.body.php (modified) (history)
  • /trunk/extensions/PageObjectModel/POM/Util.php (modified) (history)
  • /trunk/extensions/PasswordReset/PasswordReset_body.php (modified) (history)
  • /trunk/extensions/PdfBook/PdfBook.php (modified) (history)
  • /trunk/extensions/PlayerStatsGrabber/PlayerStatsGrabber_body.php (modified) (history)
  • /trunk/extensions/Plotters/PlottersClass.php (modified) (history)
  • /trunk/extensions/Plotters/PlottersParser.php (modified) (history)
  • /trunk/extensions/Preloader/Preloader.php (modified) (history)
  • /trunk/extensions/ProofreadPage/SpecialProofreadPages.php (modified) (history)
  • /trunk/extensions/QPoll/Excel/Excel_BIFFwriter.php (modified) (history)
  • /trunk/extensions/QPoll/Excel/Excel_Format.php (modified) (history)
  • /trunk/extensions/QPoll/Excel/Excel_Parser.php (modified) (history)
  • /trunk/extensions/QPoll/Excel/Excel_Validator.php (modified) (history)
  • /trunk/extensions/QPoll/Excel/Excel_Workbook.php (modified) (history)
  • /trunk/extensions/QPoll/Excel/Excel_Worksheet.php (modified) (history)
  • /trunk/extensions/QPoll/Excel/Excel_Writer.php (modified) (history)
  • /trunk/extensions/QPoll/Excel/OLE.php (modified) (history)
  • /trunk/extensions/QPoll/Excel/OLE_PPS.php (modified) (history)
  • /trunk/extensions/QPoll/Excel/OLE_PPS_File.php (modified) (history)
  • /trunk/extensions/QPoll/Excel/OLE_PPS_Root.php (modified) (history)
  • /trunk/extensions/QPoll/Excel/PEAR.php (modified) (history)
  • /trunk/extensions/Quiz/Quiz.php (modified) (history)
  • /trunk/extensions/ReaderFeedback/phplot-5.0.5/phplot.php (modified) (history)
  • /trunk/extensions/ReaderFeedback/phplot-5.0.5/phplot_data.php (modified) (history)
  • /trunk/extensions/ReaderFeedback/svggraph/svgGraph.php (modified) (history)
  • /trunk/extensions/Renameuser/Renameuser_body.php (modified) (history)
  • /trunk/extensions/ScanSet/ScanSet_body.php (modified) (history)
  • /trunk/extensions/SemanticDrilldown/specials/SD_Filters.php (modified) (history)
  • /trunk/extensions/SemanticForms/includes/SF_FormPrinter.php (modified) (history)
  • /trunk/extensions/SemanticForms/specials/SF_CreateCategory.php (modified) (history)
  • /trunk/extensions/SemanticForms/specials/SF_CreateForm.php (modified) (history)
  • /trunk/extensions/SemanticForms/specials/SF_CreateProperty.php (modified) (history)
  • /trunk/extensions/SemanticForms/specials/SF_FormEdit.php (modified) (history)
  • /trunk/extensions/SemanticForms/specials/SF_FormStart.php (modified) (history)
  • /trunk/extensions/SemanticForms/specials/SF_Forms.php (modified) (history)
  • /trunk/extensions/SemanticForms/specials/SF_RunQuery.php (modified) (history)
  • /trunk/extensions/SemanticForms/specials/SF_Templates.php (modified) (history)
  • /trunk/extensions/SemanticForms/specials/SF_UploadWindow.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/Outline/SRF_Outline.php (modified) (history)
  • /trunk/extensions/SmoothGallery/SmoothGalleryParser.php (modified) (history)
  • /trunk/extensions/SpamBlacklist/SpamBlacklist_body.php (modified) (history)
  • /trunk/extensions/SpamRegex/SpecialSpamRegex.php (modified) (history)
  • /trunk/extensions/SphinxSearch/SphinxSearch_body.php (modified) (history)
  • /trunk/extensions/SubPageList3/SubPageList3.php (modified) (history)
  • /trunk/extensions/Tasks/categoryfinder.php (modified) (history)
  • /trunk/extensions/Todo/Todo.php (modified) (history)
  • /trunk/extensions/TodoTasks/TodoTasks_body.php (modified) (history)
  • /trunk/extensions/Validator/TopologicalSort.php (modified) (history)
  • /trunk/extensions/WhoIsWatching/WhoIsWatching_body.php (modified) (history)
  • /trunk/extensions/Wikidata/OmegaWiki/SpecialCopy.php (modified) (history)
  • /trunk/extensions/WiktionaryInflection/WiktionaryInflection.php (modified) (history)
  • /trunk/extensions/auth/GlobalAuth.php (modified) (history)
  • /trunk/extensions/examples/FourFileTemplate/MyExtension_body.php (modified) (history)
  • /trunk/extensions/examples/SpecialIncludable.php (modified) (history)
  • /trunk/extensions/geoserver/WFS.php (modified) (history)
  • /trunk/extensions/gis/GeoParam.php (modified) (history)
  • /trunk/extensions/gis/GisDatabase.php (modified) (history)
  • /trunk/extensions/gis/gisversion.php (modified) (history)
  • /trunk/extensions/gis/greatcircle.php (modified) (history)
  • /trunk/extensions/gis/maparea.php (modified) (history)
  • /trunk/extensions/gis/mapsources.php (modified) (history)
  • /trunk/extensions/gis/neighbors.php (modified) (history)
  • /trunk/extensions/gis/transversemercator.php (modified) (history)
  • /trunk/extensions/mw-editcount/EditCountPage.php (modified) (history)
  • /trunk/extensions/uniwiki/CustomToolbar/CustomToolbar.php (modified) (history)

Follow-up revisions

RevisionCommit summaryAuthorDate
r102697MFT r45856, r71558, r71962, r73304, r73309, r75671, r75680, r75726, r76542, r...awjrichards22:02, 10 November 2011

Comments

#Comment by Awjrichards (talk | contribs)   22:12, 30 August 2010

In the DonationInterface changes you made, there are still invocations of the php4 constructor methods in the child classes. This is not a big deal and I can fix that, but I am curious about the motivation behind these changes. The specific files you made these changes in for DonationInterface are 3rd party libraries, and I am hesitant to modify code in them when it's not necessary, so as to facilitate upgrades to the libraries down the line - and AFAIK, PHP5x still supports using PHP4 constructors for backwards-compatibility. Although perhaps this has changed/is slated to change in the future?

#Comment by 😂 (talk | contribs)   23:41, 30 August 2010
The specific files you made these changes in for DonationInterface are 3rd party libraries, and I am hesitant to modify code in them when it's not necessary, so as to facilitate upgrades to the libraries down the line

A valid concern, feel free to revert any files you don't want changed. This was semi-automated :)

and AFAIK, PHP5x still supports using PHP4 constructors for backwards-compatibility. Although perhaps this has changed/is slated to change in the future?

Consistency, is the main reason. Second reason is they've already broken PHP4-style constructors if you happen to use namespaces (see 5.3.3 release). We don't, but I feel it's a picture of things to come.

Status & tagging log