Make WordPress Core

Changeset 45058


Ignore:
Timestamp:
03/28/2019 09:11:29 PM (5 years ago)
Author:
jorbin
Message:

PHP: Finish updating PHP Minimum version

Previous [44982] and [44950].

This bumps the minimum version down slightly based on some research into the usage of php 5.6. This also brings the recommended version in line with https://wordpress.org/about/requirements/ .

The travis matrix is also being reduced in order to speed up builds. This is a hard break. PHP 5.2 - 5.5 we are never ever, ever, getting back together. You go talk to your friends, talk to my friends, talk to me, But we are never ever, ever, ever getting back together.

Props DD32, afergen for research.
Fixes #46594.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r45027 r45058  
    2727    env: WP_TEST_REPORTER=true
    2828  - php: 5.6
    29   - php: 5.5
    30   - php: 5.4
    31   - php: 5.3
    32     dist: precise
    33   - php: 5.2
    34     dist: precise
    3529  - php: nightly
    3630  allow_failures:
    37   - php: 5.5
    38   - php: 5.4
    39   - php: 5.3
    40     dist: precise
    41   - php: 5.2
    42     dist: precise
    4331  - php: 7.4snapshot
    4432  - php: nightly
     
    6957- |
    7058  # Export Composer's global bin dir to PATH, but not on PHP 5.2:
    71   if [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then
    72     composer config --list --global
    73     export PATH=`composer config --list --global | grep '\[home\]' | { read a; echo "${a#* }/vendor/bin:$PATH"; }`
    74   fi
     59  composer config --list --global
     60  export PATH=`composer config --list --global | grep '\[home\]' | { read a; echo "${a#* }/vendor/bin:$PATH"; }`
    7561- |
    7662  # Install the specified version of PHPUnit depending on the PHP version:
     
    8571        travis_retry composer global require "phpunit/phpunit:^6"
    8672        ;;
    87       5.6|5.5|5.4|5.3)
     73      5.6)
    8874        echo "Using PHPUnit 4.x"
    8975        travis_retry composer global require "phpunit/phpunit:^4"
    90         ;;
    91       5.2)
    92         # Do nothing, use default PHPUnit 3.6.x
    93         echo "Using default PHPUnit, hopefully 3.6"
    9476        ;;
    9577      *)
  • trunk/src/readme.html

    r44982 r45058  
    5353<h2>System Requirements</h2>
    5454<ul>
    55     <li><a href="https://secure.php.net/">PHP</a> version <strong>5.6.30</strong> or higher.</li>
     55    <li><a href="https://secure.php.net/">PHP</a> version <strong>5.6.20</strong> or higher.</li>
    5656    <li><a href="https://www.mysql.com/">MySQL</a> version <strong>5.0</strong> or higher.</li>
    5757</ul>
     
    5959<h3>Recommendations</h3>
    6060<ul>
    61     <li><a href="https://secure.php.net/">PHP</a> version <strong>7.2</strong> or higher.</li>
     61    <li><a href="https://secure.php.net/">PHP</a> version <strong>7.3</strong> or higher.</li>
    6262    <li><a href="https://www.mysql.com/">MySQL</a> version <strong>5.6</strong> or higher.</li>
    6363    <li>The <a href="https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html">mod_rewrite</a> Apache module.</li>
  • trunk/src/wp-includes/version.php

    r45048 r45058  
    3535 * @global string $required_php_version
    3636 */
    37 $required_php_version = '5.6.30';
     37$required_php_version = '5.6.20';
    3838
    3939/**
Note: See TracChangeset for help on using the changeset viewer.