คุณสมบัติเบตา/พีเอชพี 7

From mediawiki.org
This page is a translated version of the page Beta Features/PHP7 and the translation is 71% complete.

มูลนิธิวิกิมีเดียใช้ HHVM เพื่อเรียกใช้มีเดียวิกิในการผลิตตั้งแต่ ค.ศ. 2014[1] ตั้งแต่นั้นมา มีบางสิ่งเกิดขึ้นที่ทำให้เราต้องย้ายกลับไปที่ตัวแปลภาษา PHP อย่างเป็นทางการ:

  • PHP 7.x has brought huge performance improvements, so that its performance is nowadays comparable to, if not better than, HHVM for our needs.

[2][3]

  • HHVM has dropped support for pure PHP in favour of Hack, an "evolution" of PHP which does not have widespread support.

[4]

The Wikimedia Foundation is moving all Wikimedia wikis to use PHP7 in 2019.[5] PHP7 was available as a Beta Feature from January until May 2019.[6]

Replacing the Beta Feature, since March 2019 a percentage of all production traffic has been randomly assigned to use PHP instead of HHVM.

You can verify that it is enabled for you by visiting Special:Version on your wiki, and checking that it says "php" instead of "HHVM" in the "Installed software" table.

คำถามและคำตอบ

ฉันไม่ใช่ผู้ใช้ด้านเทคนิค สิ่งนี้หมายความว่าอะไร ?

ไม่มีอะไร (หวังเช่นนั้น) สิ่งนี้เกี่ยวกับการเปลี่ยนซอฟต์แวร์ที่ใช้อ่านและประมวลผลโค้ดของวิกิ ในอุดมคติ คุณจะไม่สังเกตเห็นการเปลี่ยนแปลงใด ๆ จากภายนอก

สิ่งนี้จะเกิดขึ้นเมื่อใด ?

งานเริ่มขึ้นในปี ค.ศ. 2017 และเพิ่มมากขึ้นในปี ค.ศ. 2018 คุณลักษณะเบตาพร้อมใช้งานตั้งแต่มกราคม ค.ศ. 2019 และการสนับสนุน PHP 7 ควรจะเสร็จสมบูรณ์ในช่วงครึ่งแรกของปี ค.ศ. 2019

ฉันควรทำอย่างไรหากพบปัญหา ?

Report it on Phabricator รายงานในฟาบริเคเตอร์ ในโครงการสนับสนุนพีเอชพี 7.2

เพราะเหตุใดการแก้ไขจึงมีป้ายติดอยู่ ?

ป้ายดังกล่าวจะช่วยเราระบุสมรรถนะ หน้าที่ และเสถียรภาพที่เจาะจงเฉพาะกับ PHP เมื่อเปรียบเทียบกับ HHVM คุณสามารถเพิกเฉยกับป้าย PHP7 ไปได้เลย

อ้างอิง

  1. Giuseppe Lavagetto (December 3, 2014), Wikitech-l All non-api traffic is now served by HHVM Wikimedia Foundation.
  2. Evaluate scalability and performance of PHP7 compared to HHVM Wikimedia Foundation.
  3. Tim Starling (September 20, 2017), Wikitech-l HHVM vs. Zend divergence Wikimedia Foundation.
  4. Max Wang (September 18, 2017), The Future of HHVM HHVM.
  5. Migrate to PHP 7 in WMF production Wikimedia Foundation.
  6. Giuseppe Lavagetto (January 28, 2019), Wikitech-l PHP 7 is now a beta feature Wikimedia Foundation.