Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7545252

Browse files
committed
feature #4807 [2.7] bumped min PHP version to 5.3.9 (xelaris)
This PR was merged into the 2.7 branch. Discussion ---------- [2.7] bumped min PHP version to 5.3.9 | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.7 | Fixed tickets | see symfony/symfony@43c05650 Commits ------- c94f902 bumped min PHP version to 5.3.9
2 parents 57fa634 + c94f902 commit 7545252

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

contributing/code/patches.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@ Before working on Symfony, setup a friendly environment with the following
1414
software:
1515

1616
* Git;
17-
* PHP version 5.3.3 or above;
17+
* PHP version 5.3.9 or above;
1818
* `PHPUnit`_ 4.2 or above.
1919

20+
.. caution::
21+
22+
Before Symfony 2.7, the minimal PHP version was 5.3.3. Please keep
23+
this in mind, if you are working on a bug fix for earlier versions
24+
of Symfony.
25+
2026
Configure Git
2127
~~~~~~~~~~~~~
2228

cookbook/bundles/best_practices.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,13 @@ there are 3 modes, which the user can configure in their project:
348348
* 2.5-BC: the new 2.5 API with a backwards-compatible layer so that the
349349
2.4 API still works. This is only available in PHP 5.3.9+.
350350

351+
.. note::
352+
353+
Starting with Symfony 2.7, the support for the 2.4 API has been
354+
dropped and the minimal PHP version required for Symfony was
355+
increased to 5.3.9. If your bundles requires Symfony >=2.7, you
356+
don't need to take care about the 2.4 API anymore.
357+
351358
As a bundle author, you'll want to support *both* API's, since some users
352359
may still be using the 2.4 API. Specifically, if your bundle adds a violation
353360
directly to the :class:`Symfony\\Component\\Validator\\Context\\ExecutionContext`

cookbook/deployment/azure-website.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ and how to properly configure PHP for a production environment.
9696
Configuring the latest PHP Runtime
9797
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9898

99-
Even though Symfony only requires PHP 5.3.3 to run, it's always recommended
99+
Even though Symfony only requires PHP 5.3.9 to run, it's always recommended
100100
to use the most recent PHP version whenever possible. PHP 5.3 is no longer
101101
supported by the PHP core team, but you can update it easily in Azure.
102102

reference/configuration/framework.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -721,17 +721,17 @@ api
721721
Starting with Symfony 2.5, the Validator component introduced a new validation
722722
API. The ``api`` option is used to switch between the different implementations:
723723

724-
``2.4``
725-
Use the vaidation API that is compatible with older Symfony versions.
726-
727724
``2.5``
728725
Use the validation API introduced in Symfony 2.5.
729726

730727
``2.5-bc`` or ``auto``
731728
If you omit a value or set the ``api`` option to ``2.5-bc`` or ``auto``,
732729
Symfony will use an API implementation that is compatible with both the
733-
legacy implementation and the ``2.5`` implementation. You have to use
734-
PHP 5.3.9 or higher to be able to use this implementation.
730+
legacy ``2.4`` implementation and the ``2.5`` implementation.
731+
732+
.. note::
733+
734+
The support for the native 2.4 API has been dropped since Symfony 2.7.
735735

736736
To capture these logs in the ``prod`` environment, configure a
737737
:doc:`channel handler </cookbook/logging/channels_handlers>` in ``config_prod.yml`` for

0 commit comments

Comments
 (0)