Commit Graph

15434 Commits

Author SHA1 Message Date
Fabien Potencier
be01e34ed5 bug #9557 [DoctrineBridge] Fix for cache-key conflict when having a \Traversable as choices (DRvanR)
This PR was submitted for the 2.3-dev branch but it was merged into the 2.3 branch instead (closes #9557).

Discussion
----------

[DoctrineBridge] Fix for cache-key conflict when having a \Traversable as choices

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

Commits
-------

1119684 Fix for cache-key conflict when having a \Traversable as choices
2013-12-29 16:35:40 +01:00
Daan van Renterghem
d6163a8ac2 Fix for cache-key conflict when having a \Traversable as choices 2013-12-29 16:35:40 +01:00
Fabien Potencier
28e9e0631c [Security] removed obsolete comment 2013-12-29 15:45:35 +01:00
Fabien Potencier
e9d12dd520 bug #9879 [Security] Fix ExceptionListener to catch correctly AccessDeniedException if is not first exception (fabpot)
This PR was merged into the 2.3 branch.

Discussion
----------

[Security] Fix ExceptionListener to catch correctly AccessDeniedException if is not first exception

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #9544, #8467?, #9823
| License       | MIT
| Doc PR        |

Same as #9823 but with some refactoring of the code and with some unit tests.

When merging to 2.4, the unit tests can be simplified a bit.

Commits
-------

172fd63 [Security] made code easier to understand, added some missing unit tests
616b6c5 [Security] fixed error 500 instead of 403 if previous exception is provided to AccessDeniedException
2013-12-29 15:41:33 +01:00
Fabien Potencier
172fd6366f [Security] made code easier to understand, added some missing unit tests 2013-12-29 15:40:38 +01:00
Fabien Potencier
c63bbe958d bug #9885 [Dependencyinjection] Fixed handling of inlined references in the AnalyzeServiceReferencesPass (fabpot)
This PR was merged into the 2.3 branch.

Discussion
----------

[Dependencyinjection] Fixed handling of inlined references in the AnalyzeServiceReferencesPass

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

Hopefully a better fix for #9829 (ping @jakzal). Unit tests coming soon.

In some cases `InlineServiceDefinitionsPass` replaces a Reference with a service Definition. In such scenarios `AnalyzeServiceReferencesPass` was falling into an infinite loop.

Commits
-------

d650295 [DependencyInjection] fixed InlineServiceDefinitionsPass to not inline a service if it's part of the current definition (to avoid an infinite loop)
2013-12-29 15:28:28 +01:00
Fabien Potencier
7fc0a53e0d bug #9884 [DomCrawler] Fixed creating form objects from named form nodes (jakzal)
This PR was merged into the 2.3 branch.

Discussion
----------

[DomCrawler] Fixed creating form objects from named form nodes

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

Commits
-------

72d6322 [DomCrawler] Fixed creating form objects from form nodes.
2013-12-29 15:19:10 +01:00
Fabien Potencier
d6502952b4 [DependencyInjection] fixed InlineServiceDefinitionsPass to not inline a service if it's part of the current definition (to avoid an infinite loop) 2013-12-29 15:15:37 +01:00
Jakub Zalas
72d6322e25 [DomCrawler] Fixed creating form objects from form nodes. 2013-12-29 12:48:17 +01:00
Fabien Potencier
20a0fe79e5 minor #9883 disabled php.ini changes when using HHVM in .travis.yml (fabpot)
This PR was merged into the 2.3 branch.

Discussion
----------

disabled php.ini changes when using HHVM in .travis.yml

Commits
-------

78bfd3a disabled php.ini changes when using HHVM in .travis.yml
2013-12-29 12:20:12 +01:00
Fabien Potencier
78bfd3a12d disabled php.ini changes when using HHVM in .travis.yml 2013-12-29 11:46:47 +01:00
Fabien Potencier
83eea20bd8 bug #9882 Add support for HHVM in the getting of the PHP executable (fabpot)
This PR was merged into the 2.3 branch.

Discussion
----------

Add support for HHVM in the getting of the PHP executable

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

Same as #9583 but with CS fixed, on 2.3, and with an added safeguard to only change the current behavior for HHVM.

Check for a PHP_BINARY environment variable before using the pre-defined PHP_BINARY constant.

HHVM has an explicit hhvm binary and a wrapper to mimic php functionality. We were running into issues with tests that ran in their own process where using the hhvm binary does not handle php code sent to it via stdin very well. We get "Nothing to do...pass file" exceptions. Unfortunately, the PHP_BINARY is always set to the explicit binary (the php wrapper is basically a symlink to the explicit binary). So, we thought about adding a check for a PHP_BINARY environment variable as the first choice when getting the PHP binary.

Commits
-------

876482f [Process] fixed HHVM support
539de17 Add support for HHVM in the getting of the PHP executable
2013-12-29 11:05:23 +01:00
Fabien Potencier
876482f1a6 [Process] fixed HHVM support 2013-12-29 09:14:19 +01:00
Joel Marcey
539de177ca Add support for HHVM in the getting of the PHP executable 2013-12-29 09:11:01 +01:00
Fabien Potencier
a1ae7033c9 minor #9878 fixed typos (fabpot)
This PR was merged into the 2.3 branch.

Discussion
----------

fixed typos

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

Hope @pborreli is not going to be too jealous about all those typo fixes ;)

Commits
-------

5ff5615 fixed typos
2013-12-28 22:39:04 +01:00
Fabien Potencier
5ff5615fb5 fixed typos 2013-12-28 22:34:46 +01:00
Fabien Potencier
fac711c5f9 minor #9353 [2.3] Removed deprecated calls (WouterJ)
This PR was merged into the 2.3 branch.

Discussion
----------

[2.3] Removed deprecated calls

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

Commits
-------

a6562b3 Fixed deprecated method calls
2013-12-28 17:31:57 +01:00
Tomasz Szymczyk
616b6c5227 [Security] fixed error 500 instead of 403 if previous exception is provided to AccessDeniedException 2013-12-28 17:11:12 +01:00
Wouter J
a6562b36c4 Fixed deprecated method calls 2013-12-28 17:01:14 +01:00
Fabien Potencier
c33341df09 bug #9850 [Validator] Fixed IBAN validator with 0750447346 value (stewe)
This PR was merged into the 2.3 branch.

Discussion
----------

[Validator] Fixed IBAN validator with 0750447346 value

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

Commits
-------

cf88ba5 [Validator] Fixed IBAN validator with 0750447346 value
2013-12-28 14:42:37 +01:00
Fabien Potencier
9a93efacd6 minor #9761 Add testing against HHVM at Travis-CI (stloyd)
This PR was submitted for the 2.3-dev branch but it was merged into the 2.3 branch instead (closes #9761).

Discussion
----------

Add testing against HHVM at Travis-CI

Commits
-------

a4d1095 Add testing against HHVM at Travis-CI
2013-12-28 12:44:15 +01:00
Joseph Bielawski
ce7b019fd7 Add testing against HHVM at Travis-CI 2013-12-28 12:44:05 +01:00
Fabien Potencier
8dca5fcb4c minor #9875 Fixed typo (pborreli)
This PR was squashed before being merged into the 2.3 branch (closes #9875).

Discussion
----------

Fixed typo

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

Commits
-------

660ab38 Fixed typo
2013-12-28 12:31:17 +01:00
Pascal Borreli
660ab38648 Fixed typo 2013-12-28 12:31:17 +01:00
Fabien Potencier
976cdcc364 minor #9873 Fixed typo (pborreli)
This PR was submitted for the 2.2 branch but it was merged into the 2.3 branch instead (closes #9873).

Discussion
----------

Fixed typo

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

Commits
-------

025ae7a Fixed typo
2013-12-28 12:29:52 +01:00
Pascal Borreli
55f765b21b Fixed typo 2013-12-28 12:29:51 +01:00
Fabien Potencier
350656334f minor #9872 fixed acronyms (fabpot)
This PR was merged into the 2.3 branch.

Discussion
----------

fixed acronyms

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

Commits
-------

15baa81 fixed acronyms
2013-12-28 10:08:46 +01:00
Fabien Potencier
15baa81fdc fixed acronyms 2013-12-28 09:33:14 +01:00
Fabien Potencier
ec9c6e054a minor #9871 [Yaml] fixed some license headers (fabpot)
This PR was merged into the 2.3 branch.

Discussion
----------

[Yaml] fixed some license headers

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

Fixes lambdas once and for all.

Commits
-------

a2a6bd4 fixed a typo
35b407f fixed CS for lambdas
93edf44 [Yaml] fixed some license headers
2013-12-28 09:02:05 +01:00
Fabien Potencier
a2a6bd4dff fixed a typo 2013-12-28 08:54:52 +01:00
Fabien Potencier
35b407f016 fixed CS for lambdas 2013-12-28 08:46:05 +01:00
Fabien Potencier
93edf44950 [Yaml] fixed some license headers 2013-12-28 08:37:38 +01:00
Fabien Potencier
c9dd348947 bug #9865 [Validator] Fixes message value for objects (jongotlin)
This PR was submitted for the 2.2 branch but it was merged into the 2.3 branch instead (closes #9865).

Discussion
----------

[Validator] Fixes message value for objects

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

Commits
-------

7b69e9b [Validator] Fixes message value for objects
2013-12-27 22:53:59 +01:00
Jon Gotlin
78eeba8f01 Fixes message value for objects 2013-12-27 22:53:58 +01:00
Fabien Potencier
2997baae24 bug #9441 [Form][DateTimeToArrayTransformer] Check for hour, minute & second validity (egeloen)
This PR was submitted for the 2.3-dev branch but it was merged into the 2.3 branch instead (closes #9441).

Discussion
----------

[Form][DateTimeToArrayTransformer] Check for hour, minute & second validity

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

This PR checks if hour, minute & second values are valid in the datetime to array transformer (values must be integer if they exist).

Commits
-------

1543653 [Form][DateTimeToArrayTransformer] Check for hour, minute & second validity
2013-12-27 22:48:33 +01:00
Eric GELOEN
d0555f4498 Check for hour, minute & second validity 2013-12-27 22:48:33 +01:00
Fabien Potencier
04471c9916 minor #9869 fixed various typos (fabpot)
This PR was merged into the 2.3 branch.

Discussion
----------

fixed various typos

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

Commits
-------

2f15ac7 fixed various typos
2013-12-27 16:16:38 +01:00
Fabien Potencier
3949700e8f bug #9867 #9866 [Filesystem] Fixed mirror for symlinks (COil)
This PR was merged into the 2.3 branch.

Discussion
----------

#9866 [Filesystem] Fixed mirror for symlinks

| Q             | A
| ------------- | ---
| Bug fix?      | [yes]
| New feature?  | [no]
| BC breaks?    | [no]
| Deprecations? | [no]
| Tests pass?   | [yes]
| Fixed tickets | [#9866]
| License       | MIT
| Doc PR        | [NA]

Check the original ticket for the full description and how to reproduce.

The initial PR #9213 was closed.

Commits
-------

d136555 [Filesystem] Fixed mirror for symlinks
2013-12-27 16:15:39 +01:00
Fabien Potencier
2f15ac7507 fixed various typos 2013-12-27 16:08:19 +01:00
COil
d136555fc7 [Filesystem] Fixed mirror for symlinks 2013-12-27 14:13:43 +01:00
Fabien Potencier
c86e8c11e2 minor #9851 [Validator] Removed duplicated test for IBAN in data provider (stewe)
This PR was merged into the 2.3 branch.

Discussion
----------

[Validator] Removed duplicated test for IBAN in data provider

Working on #9850, I spotted a duplicated value on `getValidIbans` data provider and I just removed the duplicated value.

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

Commits
-------

35610d0 [Validator] Removed duplicated test for IBAN in data provider
2013-12-26 09:07:40 +01:00
Stefano Sala
35610d0e8c [Validator] Removed duplicated test for IBAN in data provider 2013-12-23 19:08:15 +01:00
Stefano Sala
cf88ba58a6 [Validator] Fixed IBAN validator with 0750447346 value 2013-12-23 19:04:13 +01:00
Fabien Potencier
50c39b946b bug #9806 [Security] Fix parent serialization of user object (ddeboer)
This PR was submitted for the 2.2 branch but it was merged into the 2.3 branch instead (closes #9806).

Discussion
----------

[Security] Fix parent serialization of user object

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

`parent::serialize()` and `parent::unserialize()`, which are used in the `AbstractToken` are [problematic](https://bugs.php.net/bug.php?id=62836) in PHP >= 5.4. [Cloning the object](https://gist.github.com/aurelijus/4713758) before serialization seems to fix this.

Commits
-------

e0bb891 [Security] Fix parent serialization of user object
2013-12-23 16:46:26 +01:00
David de Boer
2d64dfc872 Fix parent serialization of user object 2013-12-23 16:46:26 +01:00
Fabien Potencier
51316223fc minor #9842 [DependencyInjection] fixed typo (fabpot)
This PR was merged into the 2.3 branch.

Discussion
----------

[DependencyInjection] fixed typo

Commits
-------

408d992 [DependencyInjection] fixed typo
2013-12-23 10:58:14 +01:00
Fabien Potencier
408d992a3f [DependencyInjection] fixed typo 2013-12-23 10:20:48 +01:00
Fabien Potencier
e9f67a7246 minor #9841 [Tests|WCM] add memcache, memcached, and mongodb extensions to run skipped tests (cordoval)
This PR was merged into the 2.3 branch.

Discussion
----------

[Tests|WCM] add memcache, memcached, and mongodb extensions to run skipped tests

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

 - [x] go over all skipped tests, take note and check they are reasonable
 - [x] reenable memcache, mongodb, and memcached

We are keeping the icu intl related tests skipped because setting up icu 51.2 is totally time consuming in travis and it would require a custom distro box on travis because there are no ppa's available for the ubuntu version. I tried hard but it does not seem worth it. Same for plugging beta of memcached with pecl, it is just not reasonable to be running beta versions on travis. This then does not address #9797 but at least now we are aware.

This PR now can be merged as is as it improves tests that before were not ran. Not all but more than before. 👶

Commits
-------

47a822d add memcache, memcached, and mongodb extensions to run skipped tests
2013-12-22 16:13:29 +01:00
Luis Cordova
47a822de07 add memcache, memcached, and mongodb extensions to run skipped tests 2013-12-22 09:51:57 -05:00
Fabien Potencier
1ecfd447c1 bug #9834 [DependencyInjection] Fixed support for backslashes in service ids. (jakzal)
This PR was merged into the 2.3 branch.

Discussion
----------

[DependencyInjection] Fixed support for backslashes in service ids.

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

This change is needed for consistency with `camelize()` which is used in [`ProxyDumper`](https://github.com/symfony/symfony/blob/2.3/src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php#L69) and [`PhpDumper`](https://github.com/symfony/DependencyInjection/blob/2.3/Dumper/PhpDumper.php#L1275).

Either this PR needs to be merged for consistency or #9610 rolled back (if we don't want to support backslashes in service ids).

Anyone could tell me why we're not using the `camelize()` method internally in the `Container`?

Commits
-------

c6f210b [DependencyInjection] Fixed support for backslashes in service ids.
2013-12-21 15:14:48 +01:00