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

Skip to content

Commit c34d5c8

Browse files
committed
bumped min PHP version to 5.3.9
1 parent ca54d55 commit c34d5c8

File tree

5 files changed

+23
-10
lines changed

5 files changed

+23
-10
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+
.. note::
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
@@ -350,6 +350,13 @@ there are 3 modes, which the user can configure in their project:
350350
* 2.5-BC: the new 2.5 API with a backwards-compatible layer so that the
351351
2.4 API still works. This is only available in PHP 5.3.9+.
352352

353+
.. note::
354+
355+
Starting with Symfony 2.7, the support for the 2.4 API has been
356+
dropped and the minimal PHP version required for Symfony was
357+
increased to 5.3.9. If your bundles requires Symfony >=2.7, you
358+
don't need to take care about the 2.4 API anymore.
359+
353360
As a bundle author, you'll want to support *both* API's, since some users
354361
may still be using the 2.4 API. Specifically, if your bundle adds a violation
355362
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
@@ -632,17 +632,17 @@ api
632632
Starting with Symfony 2.5, the Validator component introduced a new validation
633633
API. The ``api`` option is used to switch between the different implementations:
634634

635-
``2.4``
636-
Use the vaidation API that is compatible with older Symfony versions.
637-
638635
``2.5``
639636
Use the validation API introduced in Symfony 2.5.
640637

641638
``2.5-bc`` or ``auto``
642639
If you omit a value or set the ``api`` option to ``2.5-bc`` or ``auto``,
643640
Symfony will use an API implementation that is compatible with both the
644-
legacy implementation and the ``2.5`` implementation. You have to use
645-
PHP 5.3.9 or higher to be able to use this implementation.
641+
legacy ``2.4`` implementation and the ``2.5`` implementation.
642+
643+
.. note::
644+
645+
The support for the native 2.4 API has been dropped since Symfony 2.7.
646646

647647
Full default Configuration
648648
--------------------------

reference/requirements.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ Below is the list of required and optional requirements.
2121
Required
2222
--------
2323

24-
* PHP needs to be a minimum version of PHP 5.3.3
24+
* PHP needs to be a minimum version of PHP 5.3.9
2525
* JSON needs to be enabled
2626
* ctype needs to be enabled
2727
* Your ``php.ini`` needs to have the ``date.timezone`` setting
2828

2929
.. caution::
3030

31-
Be aware that Symfony has some known limitations when using a PHP version
32-
less than 5.3.8 or equal to 5.3.16. For more information see the
31+
Be aware that PHP 5.3.16 has a major bug in the Reflection subsystem
32+
and is not suitable to run Symfony. For more information see the
3333
`Requirements section of the README`_.
3434

3535
Optional

0 commit comments

Comments
 (0)