Make WordPress Core


Ignore:
Timestamp:
10/25/2016 03:14:31 AM (8 years ago)
Author:
dd32
Message:

Drop the requirement for the entry points to WordPress to be parsable by PHP4.

Previously we ensured that the entry points to WordPress were parsable by PHP4 in order to display a friendly not-supported-php error message.
However, for the last two years the main entry points have not actually parsed, and we've only added extra parse errors since it last worked in 3.9, so it's time we just remove this 'feature'.
The PHP version checks are still there for PHP 5.0/5.1, and so it's inplace when we eventually drop PHP 5.2 support.

See #29489.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/setup-config.php

    r38424 r38899  
    55 * The permissions for the base directory must allow for writing files in order
    66 * for the wp-config.php to be created using this page.
    7  *
    8  * @internal This file must be parsable by PHP4.
    97 *
    108 * @package WordPress
     
    317315
    318316    $key = 0;
    319     // Not a PHP5-style by-reference foreach, as this file must be parseable by PHP4.
    320317    foreach ( $config_file as $line_num => $line ) {
    321318        if ( '$table_prefix  =' == substr( $line, 0, 16 ) ) {
Note: See TracChangeset for help on using the changeset viewer.