Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,221 of 9,224 pages
About the help in other languages
All help pages

Bumping ezinfo.php and extension.xml

Every release raises the version inside the extension - ezinfo.php, extension.xml, and composer.json or filelist.md5 where present - to exactly the release's number, in the commit the tag points at, never after.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/extension-development/part-7-releasing/bumping-ezinfo-and-extension-xml.md

On this page

Bumping ezinfo.php and extension.xml

Part 7, chapter 4. The administration's about page, the upgrade checks and anyone looking at an installed copy read the version from files inside the extension, not from Git. So every release writes its number into those files, in the commit the tag points at. This chapter shows the steps.

The rule

FileFieldValue for tag v1.2.4
ezinfo.php'Version'"1.2.4"
extension.xml<version> (in <metadata> if the file has one)1.2.4
composer.json"version", only if the file has one"1.2.4"
share/filelist.md5its version header, only if the extension ships one1.2.4

No v, no dev-master, no //autogentag//. The kernel's about page reads extension.xml first, so both files must agree (Extension metadata specification).

The order

  1. Choose the number (Choosing the next version number).
  2. Change the fields.
  3. Commit: Updated: Version 1.2.4, or include the bump in the release's last commit.
  4. Check (below).
  5. Tag that commit and push it (Tags and releases are permanent).

Never tag first and bump afterwards: the tag would carry the old number in its files, forever.

A real one, se7enxweb/expchangeclass commit 32196f0, changed exactly three lines:

composer.json   "php": "^8.1 || ..."     ->  "php": "^8.0 || ^8.1 || ..."
extension.xml   <version>1.0.5</version>  ->  <version>1.0.6</version>
ezinfo.php      'Version' => "1.0.5",     ->  'Version' => "1.0.6",

(The composer.json line was the change the release was about; that file has no version field of its own.)

Check

php -l ezinfo.php
xmllint --noout extension.xml
grep -n "Version\|<version>" ezinfo.php extension.xml

Expected: "No syntax errors detected", no output from xmllint, the same new number twice.

After installing the release on a test site, open the about page of the administration (the ezinfo/about view) and find your extension's row: the version shown must be the new one.

The other fields

While you are in the files, check that the rest is still right: the name, the copyright years, the license (GNU General Public License v2.0 (or any later version) or exactly what your license file says) and Info_url pointing at the repository. They are covered in Modernizing ezinfo.php and extension.xml.

Extensions shipped with the kernel

Extensions that live inside the kernel's repository (ezjscore, ezoe, ezformtoken and others) carry the version of the Exponential release they ship with, not a numbering of their own.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x