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

Skip to content

Commit c94f902

Browse files
committed
bumped min PHP version to 5.3.9
1 parent adf5b90 commit c94f902

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
@@ -707,17 +707,17 @@ api
707707
Starting with Symfony 2.5, the Validator component introduced a new validation
708708
API. The ``api`` option is used to switch between the different implementations:
709709

710-
``2.4``
711-
Use the vaidation API that is compatible with older Symfony versions.
712-
713710
``2.5``
714711
Use the validation API introduced in Symfony 2.5.
715712

716713
``2.5-bc`` or ``auto``
717714
If you omit a value or set the ``api`` option to ``2.5-bc`` or ``auto``,
718715
Symfony will use an API implementation that is compatible with both the
719-
legacy implementation and the ``2.5`` implementation. You have to use
720-
PHP 5.3.9 or higher to be able to use this implementation.
716+
legacy ``2.4`` implementation and the ``2.5`` implementation.
717+
718+
.. note::
719+
720+
The support for the native 2.4 API has been dropped since Symfony 2.7.
721721

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

0 commit comments

Comments
 (0)