Commit Graph

23236 Commits

Author SHA1 Message Date
Catalin Dan 6b6073f685 [Form] Fix INT64 cast to float in IntegerType. 2016-03-15 16:37:19 +01:00
Nicolas Grekas afd31dae5e minor #18114 [SecurityBundle][PHPDoc] Added method doumentation for SecurityFactor… (aminemat)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #18114).

Discussion
----------

[SecurityBundle][PHPDoc] Added method doumentation for SecurityFactor…

| Q             | A
| ------------- | ---
| Branch        | 2.7
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #10870
| License       | MIT
| Doc PR        |

Commits
-------

cfb3ea1 [SecurityBundle][PHPDoc] Added method doumentation for SecurityFactoryInterface
2016-03-15 14:44:54 +01:00
Amine Matmati cfb3ea1a5f [SecurityBundle][PHPDoc] Added method doumentation for SecurityFactoryInterface 2016-03-15 14:44:54 +01:00
Nicolas Grekas 668a5f7f1d minor #18168 FrameworkBundle: Client: getContainer(): fixed phpdoc (MacDada)
This PR was merged into the 2.3 branch.

Discussion
----------

FrameworkBundle: Client: getContainer(): fixed phpdoc

| Q             | A
| ------------- | ---
| Branch        | lowest applicable and maintained version
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | ~
| License       | MIT
| Doc PR        | ~

The kernel [might be shut down](https://github.com/symfony/symfony/blob/2.3/src/Symfony/Component/HttpKernel/Kernel.php#L164) and then the method will return null instead of a ContainerInterface object.

---

I've stumbled upon when I was trying to do this in my [test](https://github.com/symfony/framework-bundle/blob/master/Test/WebTestCase.php):

```php
	/**
	 * @var Client|null
	 */
	private static $client;

	public static function tearDownAfterClass()
	{
		$entityManager = $client->getContainer()
			->get('doctrine')
			->getManager();
		// remove entities created by tests
	}

	public function testWhatever()
	{
		self::$client = self::createClient();
		// entities are created
	}
```

`$client->getContainer()` has given me `null` while I was expecting the container, as the PHPDoc say I would. Unpleasant debugging and WTFing.

Commits
-------

7462fa5 FrameworkBundle: Client: getContainer(): fixed phpdoc
2016-03-15 13:57:17 +01:00
Nicolas Grekas a90818546b minor #18113 [Validator] Updating inaccurate docblock comment (natechicago)
This PR was merged into the 2.3 branch.

Discussion
----------

[Validator] Updating inaccurate docblock comment

| Q             | A
| ------------- | ---
| Branch        | 2.3
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

The formatValue() docblock refers to a $prettyDateTime argument, which does not exist.  Instead, it should refer to the $format argument.

I'm also adding parentheses around the `$format & self::OBJECT_TO_STRING` expression on line 102 so it is formatted similarly to the `($format & self::PRETTY_DATE)` expression a few lines above it.

Commits
-------

a784743 [Validator] Updating inaccurate docblock comment
2016-03-15 13:41:46 +01:00
Dawid Nowak 7462fa59b1 FrameworkBundle: Client: getContainer(): fixed phpdoc
The kernel might be shut down and then the method will return null instead of a ContainerInterface object
2016-03-15 11:30:50 +01:00
Fabien Potencier fef2474d4e Merge branch '2.3' into 2.7
* 2.3:
  bumped Symfony version to 2.3.40
  set s-maxage only if all responses are cacheable
  updated VERSION for 2.3.39
  update CONTRIBUTORS for 2.3.39
  updated CHANGELOG for 2.3.39
  Improved the "branch" row of the PR table
  Fix typos #18090 1. PHPs session design to PHP's session design 2. Symfony HttpKernel offers to Symfony's HttpKernel offers 3. in which case it it should to in which case it should
  Fix for Isssue #18091
  replace perfom by perform
  minor #18088 Fix typo for profiler
2016-03-15 07:08:00 +01:00
Fabien Potencier 0f35599858 bug #18164 [HttpKernel] set s-maxage only if all responses are cacheable (xabbuh)
This PR was merged into the 2.3 branch.

Discussion
----------

[HttpKernel] set s-maxage only if all responses are cacheable

| Q             | A
| ------------- | ---
| Branch        | 2.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #18160
| License       | MIT
| Doc PR        |

Commits
-------

b7d9338 set s-maxage only if all responses are cacheable
2016-03-15 07:00:34 +01:00
Fabien Potencier 8aece06d48 bumped Symfony version to 2.3.40 2016-03-14 22:34:48 +01:00
Christian Flothmann b7d93381a2 set s-maxage only if all responses are cacheable 2016-03-14 17:13:08 +01:00
Fabien Potencier 0451003397 Merge pull request #18153 from fabpot/release-2.3.39
released v2.3.39
2016-03-13 17:38:17 +01:00
Fabien Potencier 1d4f366be0 updated VERSION for 2.3.39 2016-03-13 17:38:02 +01:00
Fabien Potencier a5149ed96a update CONTRIBUTORS for 2.3.39 2016-03-13 17:37:49 +01:00
Fabien Potencier dd3b333924 updated CHANGELOG for 2.3.39 2016-03-13 17:37:42 +01:00
Fabien Potencier 49fc796e3a minor #18151 Improved the "branch" row of the PR table (javiereguiluz)
This PR was merged into the 2.3 branch.

Discussion
----------

Improved the "branch" row of the PR table

| Q             | A
| ------------- | ---
| Branch        | 2.3+
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #18128
| License       | MIT
| Doc PR        | -

Commits
-------

6af23cc Improved the "branch" row of the PR table
2016-03-13 12:09:21 +01:00
Javier Eguiluz 6af23ccaaa Improved the "branch" row of the PR table 2016-03-13 12:02:32 +01:00
Nicolas Grekas 8feb12184c bug #18150 [Process] Wait a bit less on Windows (nicolas-grekas)
This PR was merged into the 2.7 branch.

Discussion
----------

[Process] Wait a bit less on Windows

| Q             | A
| ------------- | ---
| Branch        | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

By using `stream_select` instead of `usleep` when the input is at wait, and by not blocking when the process has halted, we can enhance a bit the performance on Windows.

Commits
-------

380a54f [Process] Wait a bit less on Windows
2016-03-13 11:16:27 +01:00
Nicolas Grekas 1da85a2b2d bug #18130 [Debug] Replaced logic for detecting filesystem case sensitivity (Dan Blows)
This PR was squashed before being merged into the 2.7 branch (closes #18130).

Discussion
----------

[Debug] Replaced logic for detecting filesystem case sensitivity

| Q             | A
| ------------- | ---
| Branch        | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | none
| License       | MIT
| Doc PR        | none

When I cloned the master branch onto a Virtualbox Vagrant OSX El Capitan host, Ubuntu Wily guest, the `Symfony\Component\Debug\Tests\DebugClassLoaderTest::testFileCaseMismatch` failed because 'Failed asserting that exception of type "\RuntimeException" is thrown'.

@WouterJ confirmed he got the same problem, and it's because Virtualbox shared folders aren't case sensitive, even when the guest is using a case sensitive filesystem. So I've replaced the logic that looked at the name of the operating system.

I ran the tests in the following environments:
* Virtualbox/Vagrant - OSX Host, Ubuntu guest
* Virtualbox/Vagrant - OSX Host, Windows guest
* OSX native
* Ubuntu native

NB - I _didn't_ run it on native Windows (because I don't have easy access to one).

Commits
-------

2e81b0a [Debug] Replaced logic for detecting filesystem case sensitivity
2016-03-13 11:12:58 +01:00
Dan Blows 2e81b0a944 [Debug] Replaced logic for detecting filesystem case sensitivity 2016-03-13 11:12:56 +01:00
Nicolas Grekas 380a54f987 [Process] Wait a bit less on Windows 2016-03-13 11:06:10 +01:00
Patrick McDougle 181f256949 Use debug member variable 2016-03-12 10:48:57 -08:00
Fabien Potencier 2a2aefa4b7 minor #18119 [Hack Day] Issue for newcomers (2). Replace perfom by perform (JuanLuisGarciaBorrego)
This PR was merged into the 2.3 branch.

Discussion
----------

[Hack Day] Issue for newcomers (2). Replace perfom by perform

| Q             | A
| ------------- | ---
| Branch        | 2.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | no
| Fixed tickets | #18089
| License       | MIT
| Doc PR        | reference to the documentation PR, if any

Commits
-------

f33f192 replace perfom by perform
2016-03-12 18:53:09 +01:00
Fabien Potencier 1dee322033 minor #18121 Rename Choosen to Chosen in ModelChoiceListTest (Koalabaerchen)
This PR was merged into the 2.3 branch.

Discussion
----------

Rename Choosen to Chosen in ModelChoiceListTest

| Q             | A
| ------------- | ---
| Branch        | 2.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | no
| Fixed tickets | #18091
| License       | MIT
| Doc PR        |  n/a

Commits
-------

5e4b515 Fix for Isssue #18091
2016-03-12 18:51:32 +01:00
Fabien Potencier 8ab25a3d1d minor #18131 Fix typos #18090 (taiiiraaa)
This PR was merged into the 2.3 branch.

Discussion
----------

Fix typos #18090

| Q             | A
| ------------- | ---
| Branch        | 2.3
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #18090
| License       | MIT
| Doc PR        |

1. PHPs session design to PHP's session design
2. Symfony HttpKernel offers to Symfony's HttpKernel offers
3. in which case it it should to in which case it should

Commits
-------

6276452 Fix typos #18090 1. PHPs session design to PHP's session design 2. Symfony HttpKernel offers to Symfony's HttpKernel offers 3. in which case it it should to in which case it should
2016-03-12 18:48:28 +01:00
Fabien Potencier 97f2321697 minor #18117 Profiler typo fix (Enleur)
This PR was merged into the 2.3 branch.

Discussion
----------

Profiler typo fix

| Q             | A
| ------------- | ---
| Branch   | 2.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #18088
| License       | MIT
| Doc PR | n/a

Commits
-------

44398fc minor #18088 Fix typo for profiler
2016-03-12 18:42:35 +01:00
taiiiraaa 6276452592 Fix typos #18090
1. PHPs session design to PHP's session design
2. Symfony HttpKernel offers to Symfony's HttpKernel offers
3. in which case it it should to in which case it should
2016-03-12 16:03:08 +00:00
Koalabaerchen 5e4b515f1b Fix for Isssue #18091 2016-03-12 15:51:44 +01:00
juanluisgarciaborrego f33f1929a2 replace perfom by perform 2016-03-12 15:44:43 +01:00
Enleur 44398fc696 minor #18088 Fix typo for profiler 2016-03-12 21:15:46 +07:00
Nate a784743609 [Validator] Updating inaccurate docblock comment
The formatValue() docblock refers to a $prettyDateTime argument, which does not exist.  Instead, it should refer to the $format argument.
2016-03-11 18:42:00 -06:00
Nicolas Grekas b228378d1f Merge branch '2.3' into 2.7
* 2.3:
  [ci] remove token for composer now that rate limiting is off
2016-03-11 12:18:02 +01:00
Nicolas Grekas fcac5dd87e minor #18104 [ci] remove token for composer now that rate limiting is off (nicolas-grekas)
This PR was merged into the 2.3 branch.

Discussion
----------

[ci] remove token for composer now that rate limiting is off

| Q             | A
| ------------- | ---
| Branch        | 2.3
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | no
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

As of https://github.com/composer/composer/issues/4884#issuecomment-195229989

Commits
-------

218ff14 [ci] remove token for composer now that rate limiting is off
2016-03-11 12:17:32 +01:00
Nicolas Grekas 218ff14a9b [ci] remove token for composer now that rate limiting is off 2016-03-11 10:22:29 +01:00
Nicolas Grekas def0176e1b Merge branch '2.3' into 2.7
* 2.3:
  [ci] use hirak/prestissimo
  [Filesystem] Fix transient tests
  [HttpFoundation] Avoid warnings when checking malicious IPs
  [HttpFoundation] Set the Content-Range header if the requested Range is unsatisfied

Conflicts:
	appveyor.yml
	src/Symfony/Component/Filesystem/Tests/FilesystemTest.php
2016-03-10 20:23:56 +01:00
Fabien Potencier db9bb4e003 minor #18100 [ci] use hirak/prestissimo (nicolas-grekas)
This PR was merged into the 2.3 branch.

Discussion
----------

[ci] use hirak/prestissimo

| Q             | A
| ------------- | ---
| Branch        | 2.3
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | no
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

adf1ca8 [ci] use hirak/prestissimo
2016-03-10 19:18:23 +01:00
Nicolas Grekas adf1ca8e90 [ci] use hirak/prestissimo 2016-03-10 17:50:02 +01:00
Nicolas Grekas 6a99db40dc minor #18099 [Filesystem] Fix transient tests (nicolas-grekas)
This PR was merged into the 2.3 branch.

Discussion
----------

[Filesystem] Fix transient tests

| Q             | A
| ------------- | ---
| Branch        | 2.3
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

time().mt_rand(0, 1000) is not enough...
also adds a missing skip

Commits
-------

a6edd78 [Filesystem] Fix transient tests
2016-03-10 15:52:33 +01:00
Nicolas Grekas a6edd78116 [Filesystem] Fix transient tests 2016-03-10 15:49:24 +01:00
Fabien Potencier be867ae968 bug #18080 [HttpFoundation] Set the Content-Range header if the requested Range is unsatisfied (jakzal)
This PR was merged into the 2.3 branch.

Discussion
----------

[HttpFoundation] Set the Content-Range header if the requested Range is unsatisfied

| Q             | A
| ------------- | ---
| Branch        | 2.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

This is a followup to https://github.com/symfony/symfony/pull/17150#issuecomment-174509954

[RFC2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html) specifies the Content-Range header SHOULD be included with a *416 Requested Range Not Satisfiable* response:

>    When this status code is returned for a byte-range request, the response SHOULD include a Content-Range entity-header field specifying the current length of the selected resource (see section 14.16). This response MUST NOT use the multipart/byteranges content- type.

[RFC 7233](https://tools.ietf.org/html/rfc7233#section-4.2) specifies what should be the header's value. It's in the "Request for comments" state, but it's the best definition I could find. This value is valid according to rfc2616 as well.

Commits
-------

54329d8 [HttpFoundation] Set the Content-Range header if the requested Range is unsatisfied
2016-03-10 14:40:45 +01:00
Fabien Potencier 5340cbd4fc bug #18084 [HttpFoundation] Avoid warnings when checking malicious IPs (jakzal)
This PR was merged into the 2.3 branch.

Discussion
----------

[HttpFoundation] Avoid warnings when checking malicious IPs

| Q             | A
| ------------- | ---
| Branch        | 2.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #17386
| License       | MIT
| Doc PR        | -

Commits
-------

3067bdb [HttpFoundation] Avoid warnings when checking malicious IPs
2016-03-10 14:30:02 +01:00
Nicolas Grekas 4bc282d363 Merge branch '2.3' into 2.7
* 2.3:
  [Finder] Partially revert #17134 to fix a regression
  [HttpKernel] Fix mem usage when stripping the prod container
  exception when registering bags for started sessions

Conflicts:
	src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
	src/Symfony/Component/HttpKernel/Kernel.php
2016-03-10 11:49:29 +01:00
Fabien Potencier 1d9815f5c7 bug #18066 [Process] Fix pipes handling (nicolas-grekas)
This PR was merged into the 2.7 branch.

Discussion
----------

[Process] Fix pipes handling

| Q             | A
| ------------- | ---
| Branch        | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #18015
| License       | MIT
| Doc PR        | -

Commits
-------

3ab6c39 [Process] Fix pipes handling
2016-03-10 11:09:14 +01:00
Jakub Zalas 3067bdb8d9 [HttpFoundation] Avoid warnings when checking malicious IPs 2016-03-10 08:48:57 +00:00
Fabien Potencier efd40e4ae3 bug #18078 [Console] Fix an autocompletion question helper issue with non-sequentially indexed choices (jakzal)
This PR was merged into the 2.7 branch.

Discussion
----------

[Console] Fix an autocompletion question helper issue with non-sequentially indexed choices

| Q             | A
| ------------- | ---
| Branch        | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #18001
| License       | MIT
| Doc PR        | -

Commits
-------

9c3247c [Console] Fix an autocompletion question helper issue with non-sequentially indexed choices
2016-03-09 18:21:57 +01:00
Jakub Zalas 54329d836c [HttpFoundation] Set the Content-Range header if the requested Range is unsatisfied 2016-03-09 16:57:57 +00:00
Jakub Zalas 9c3247cfd4 [Console] Fix an autocompletion question helper issue with non-sequentially indexed choices 2016-03-09 16:30:49 +00:00
Nicolas Grekas 3ab6c3965f [Process] Fix pipes handling 2016-03-09 15:29:38 +01:00
Fabien Potencier fd4edff329 bug #18048 [HttpKernel] Fix mem usage when stripping the prod container (nicolas-grekas)
This PR was merged into the 2.3 branch.

Discussion
----------

[HttpKernel] Fix mem usage when stripping the prod container

| Q             | A
| ------------- | ---
| Branch        | 2.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #18007
| License       | MIT
| Doc PR        | -

I propose to just replace doc comments by regular comments, so that the parser removes them and opcache doesn't have to keep them in memory, which is the target.

Commits
-------

4fa5844 [HttpKernel] Fix mem usage when stripping the prod container
2016-03-09 14:11:45 +01:00
Fabien Potencier 15ccef7690 bug #18065 [Finder] Partially revert #17134 to fix a regression (jakzal)
This PR was merged into the 2.3 branch.

Discussion
----------

[Finder] Partially revert #17134 to fix a regression

| Q             | A
| ------------- | ---
| Branch        | 2.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #18013
| License       | MIT
| Doc PR        | -

Commits
-------

ead1824 [Finder] Partially revert #17134 to fix a regression
2016-03-09 14:08:09 +01:00
Jakub Zalas ead1824d3e [Finder] Partially revert #17134 to fix a regression 2016-03-09 12:50:31 +00:00