Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 592023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:41:46+00:00 2026-05-13T15:41:46+00:00

I always forget to change the version number for bugfix version, when i released

  • 0

I always forget to change the version number for bugfix version, when i released 1.0.9, maybe the version number in source code is still 1.0.0

So far it is not a big matter as every release was logged in SVN, i can retrieve a specified release anytime from my SVN.

But i know its not good, and in foreseeable furture it may cause problem when upgrading an old version. I stored the version number as a parameter in my source code, i wanna if there is a better way to control this number, especially for php web project (i know some other language has auto version generation, but seems no in php?).

How do you cover this problem in your project? Any best practice?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T15:41:46+00:00Added an answer on May 13, 2026 at 3:41 pm

    Use continuous integration software like TeamCity, and use a build script that accepts the version number as a parameter. Your build script may just call a little tool that just does: open a file (versioninfo.php), search this string (some regex stuff), and replace it with the given parameter.


    Some additional hints for making this more easy: Branch every version that is soon to be released, we have 5.0 on production right now (but it’s still built for the purpose of hotfixing), 5.1 is branched and is tested at this point, and the trunk contains the 5.2.

    Everytime you will need to release a hotfix, update the version number in TeamCity, and in the call to the build script (which also should be done in TeamCity).

    F.e. We have the following projects at this point:

    • Release 5.0.5 (which takes /v=5.0.5)
    • Release 5.1 (which takes /v=5.1)
    • Trunk (which takes /v=5.2)

    Combine this with prefixing your SQL scripts with the version number, and an automated database generating script, that creates a big transaction script per version (like: ‘DPL_Updates_for_5.1.sql’).

    When we are bringing a version to production, we take the artifacts from the branch from TeamCity, the database-scripts which are specific for that version are automatically added to the zip-file, and we give the file (plus release notes, etc.) to our application management department.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 346k
  • Answers 346k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer By design, loading a CodeIgniter library can only be done… May 14, 2026 at 6:06 am
  • Editorial Team
    Editorial Team added an answer I believe the problem is that the anonymous type is… May 14, 2026 at 6:06 am
  • Editorial Team
    Editorial Team added an answer string fullpath = Label lb3 = new Label(); lb3.Text =… May 14, 2026 at 6:06 am

Related Questions

I am in charge of a database. It has around 126 sprocs, some 20
I know that being open source does not necessarily makes a program more/less secure
I have an HTML page that uses the JSONP Plugin to gracefully handle errors
The documentation for -hash says it must not change while a mutable object is
I have this application where the users can change text files and when they

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.