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

Skip to content

Commit cc398db

Browse files
Merge branch '3.2'
* 3.2: [Cache] Using strpbrk() instead of strcspn() is faster bumped Symfony version to 3.2.3 updated VERSION for 3.2.2 updated CHANGELOG for 3.2.2 bumped Symfony version to 3.1.10 updated VERSION for 3.1.9 updated CHANGELOG for 3.1.9
2 parents fda8832 + e7fcd28 commit cc398db

File tree

4 files changed

+115
-6
lines changed

4 files changed

+115
-6
lines changed

CHANGELOG-3.1.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,52 @@ in 3.1 minor versions.
77
To get the diff for a specific change, go to https://github.com/symfony/symfony/commit/XXX where XXX is the change hash
88
To get the diff between two versions, go to https://github.com/symfony/symfony/compare/v3.1.0...v3.1.1
99

10+
* 3.1.9 (2017-01-12)
11+
12+
* bug #21218 [Form] DateTimeToLocalizedStringTransformer does not use timezone when using date only (magnetik)
13+
* bug #20605 [Ldap] Always have a valid connection when using the EntryManager (bobvandevijver)
14+
* bug #21104 [FrameworkBundle] fix IPv6 address handling in server commands (xabbuh)
15+
* bug #20793 [Validator] Fix caching of constraints derived from non-serializable parents (uwej711)
16+
* bug #19586 [TwigBundle] Fix bug where namespaced paths don't take parent bundles in account (wesleylancel)
17+
* bug #21237 [FrameworkBundle] Fix relative paths used as cache keys (nicolas-grekas)
18+
* bug #21183 [Validator] respect groups when merging constraints (xabbuh)
19+
* bug #21179 [TwigBundle] Fixing regression in TwigEngine exception handling (Bertalan Attila)
20+
* bug #21220 [DI] Fix missing new line after private alias (ogizanagi)
21+
* bug #21211 Classloader tmpname (lyrixx)
22+
* bug #21205 [TwigBundle] fixed usage when Templating is not installed (fabpot)
23+
* bug #21155 [Validator] Check cascasdedGroups for being countable (scaytrase)
24+
* bug #21200 [Filesystem] Check that directory is writable after created it in dumpFile() (chalasr)
25+
* bug #21165 [Serializer] int is valid when float is expected when deserializing JSON (dunglas)
26+
* bug #21166 [Cache] Fix order of writes in ChainAdapter (nicolas-grekas)
27+
* bug #21113 [FrameworkBundle][HttpKernel] Fix resources loading for bundles with custom structure (chalasr)
28+
* bug #21084 [Yaml] handle empty lines inside unindented collection (xabbuh)
29+
* bug #20925 [HttpFoundation] Validate/cast cookie expire time (ro0NL)
30+
* bug #21032 [SecurityBundle] Made collection of user provider unique when injecting them to the RemberMeService (lyrixx)
31+
* bug #21078 [Console] Escape default value when dumping help (lyrixx)
32+
* bug #21076 [Console] OS X Can't call cli_set_process_title php without superuser (ogizanagi)
33+
* bug #20900 [Console] Descriptors should use Helper::strlen (ogizanagi)
34+
* bug #21025 [Cache] remove is_writable check on filesystem cache (4rthem)
35+
* bug #21064 [Debug] Wrap call to ->log in a try catch block (lyrixx)
36+
* bug #21010 [Debug] UndefinedMethodFatalErrorHandler - Handle anonymous classes (SpacePossum)
37+
* bug #20991 [cache] Bump RedisAdapter default timeout to 5s (Nicofuma)
38+
* bug #20859 Avoid warning in PHP 7.2 because of non-countable data (wouterj)
39+
* bug #21053 [Validator] override property constraints in child class (xabbuh)
40+
* bug #21034 [FrameworkBundle] Make TemplateController working without the Templating component (dunglas)
41+
* bug #20970 [Console] Fix question formatting using SymfonyStyle::ask() (chalasr, ogizanagi)
42+
* bug #20999 [HttpKernel] Continuation of #20599 for 3.1 (ro0NL)
43+
* bug #20975 [Form] fix group sequence based validation (xabbuh)
44+
* bug #20599 [WebProfilerBundle] Display multiple HTTP headers in WDT (ro0NL)
45+
* bug #20799 [TwigBundle] do not try to register incomplete definitions (xabbuh)
46+
* bug #20961 [Validator] phpize default option values (xabbuh)
47+
* bug #20934 [FrameworkBundle] Fix PHP form templates on translatable attributes (ro0NL)
48+
* bug #20957 [FrameworkBundle] test for the Validator component to be present (xabbuh)
49+
* bug #20936 [DependencyInjection] Fix on-invalid attribute type in xsd (ogizanagi)
50+
* bug #20931 [VarDumper] Fix dumping by-ref variadics (nicolas-grekas)
51+
* bug #20734 [Security] AbstractVoter->supportsAttribute gives false positive if attribute is zero (0) (martynas-foodpanda)
52+
* bug #14082 [config] Fix issue when key removed and left value only (zerustech)
53+
* bug #20910 [HttpFoundation] Fix cookie to string conversion for raw cookies (ro0NL)
54+
* bug #20847 [Console] fixed BC issue with static closures (araines)
55+
1056
* 3.1.8 (2016-12-13)
1157

1258
* bug #20714 [FrameworkBundle] Fix unresolved parameters from default configs in debug:config (chalasr)

CHANGELOG-3.2.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,69 @@ in 3.2 minor versions.
77
To get the diff for a specific change, go to https://github.com/symfony/symfony/commit/XXX where XXX is the change hash
88
To get the diff between two versions, go to https://github.com/symfony/symfony/compare/v3.2.0...v3.2.1
99

10+
* 3.2.2 (2017-01-12)
11+
12+
* bug #21257 [Profiler][Form] Fix form profiler errors profiler_dump (ogizanagi)
13+
* bug #21243 [FrameworkBundle] Fix class_exists() checks in PhpArrayAdapter-related cache warmers (nicolas-grekas, mpajunen)
14+
* bug #21218 [Form] DateTimeToLocalizedStringTransformer does not use timezone when using date only (magnetik)
15+
* bug #20605 [Ldap] Always have a valid connection when using the EntryManager (bobvandevijver)
16+
* bug #21104 [FrameworkBundle] fix IPv6 address handling in server commands (xabbuh)
17+
* bug #20793 [Validator] Fix caching of constraints derived from non-serializable parents (uwej711)
18+
* bug #19586 [TwigBundle] Fix bug where namespaced paths don't take parent bundles in account (wesleylancel)
19+
* bug #21237 [FrameworkBundle] Fix relative paths used as cache keys (nicolas-grekas)
20+
* bug #21183 [Validator] respect groups when merging constraints (xabbuh)
21+
* bug #21179 [TwigBundle] Fixing regression in TwigEngine exception handling (Bertalan Attila)
22+
* bug #21220 [DI] Fix missing new line after private alias (ogizanagi)
23+
* bug #21211 Classloader tmpname (lyrixx)
24+
* bug #21205 [TwigBundle] fixed usage when Templating is not installed (fabpot)
25+
* bug #21155 [Validator] Check cascasdedGroups for being countable (scaytrase)
26+
* bug #21200 [Filesystem] Check that directory is writable after created it in dumpFile() (chalasr)
27+
* bug #21186 [Bridge/PhpUnit] Relax expectedDeprecation for forward compat (nicolas-grekas)
28+
* bug #21184 [FrameworkBundle] Remove Response* from classes to compile (nicolas-grekas)
29+
* bug #21165 [Serializer] int is valid when float is expected when deserializing JSON (dunglas)
30+
* bug #21167 [Cache] Remove silenced warning tiggered by PhpArrayAdapter (nicolas-grekas)
31+
* bug #21166 [Cache] Fix order of writes in ChainAdapter (nicolas-grekas)
32+
* bug #21113 [FrameworkBundle][HttpKernel] Fix resources loading for bundles with custom structure (chalasr)
33+
* bug #20995 [DependencyInjection] Fix the priority order of compiler pass trait (francoispluchino)
34+
* bug #21084 [Yaml] handle empty lines inside unindented collection (xabbuh)
35+
* bug #21143 [PhpUnitBridge] Set COMPOSER_ROOT_VERSION while installing (nicolas-grekas)
36+
* bug #20925 [HttpFoundation] Validate/cast cookie expire time (ro0NL)
37+
* bug #21138 [PhpUnitBridge] skip tests with failure and error states too (xabbuh)
38+
* bug #21135 [PhpUnitBridge] hide stack trace of expected deprecation failures (xabbuh)
39+
* bug #21117 [Yaml] add missing indicator character (xabbuh)
40+
* bug #21121 [PhpUnitBridge] respect skipped and incomplete tests (xabbuh)
41+
* bug #21032 [SecurityBundle] Made collection of user provider unique when injecting them to the RemberMeService (lyrixx)
42+
* bug #21078 [Console] Escape default value when dumping help (lyrixx)
43+
* bug #21076 [Console] OS X Can't call cli_set_process_title php without superuser (ogizanagi)
44+
* bug #20900 [Console] Descriptors should use Helper::strlen (ogizanagi)
45+
* bug #21025 [Cache] remove is_writable check on filesystem cache (4rthem)
46+
* bug #21064 [Debug] Wrap call to ->log in a try catch block (lyrixx)
47+
* bug #21069 [Debug] Fixed cast of stream (lyrixx)
48+
* bug #21010 [Debug] UndefinedMethodFatalErrorHandler - Handle anonymous classes (SpacePossum)
49+
* bug #20991 [cache] Bump RedisAdapter default timeout to 5s (Nicofuma)
50+
* bug #20959 [FrameworkBundle] Ignore AnnotationException exceptions in the AnnotationsCacheWarmer (fancyweb)
51+
* bug #20795 [FrameworkBundle] Allow multiple transitions with the same name (Padam87)
52+
* bug #20859 Avoid warning in PHP 7.2 because of non-countable data (wouterj)
53+
* bug #21053 [Validator] override property constraints in child class (xabbuh)
54+
* bug #21034 [FrameworkBundle] Make TemplateController working without the Templating component (dunglas)
55+
* bug #20970 [Console] Fix question formatting using SymfonyStyle::ask() (chalasr, ogizanagi)
56+
* bug #20999 [HttpKernel] Continuation of #20599 for 3.1 (ro0NL)
57+
* bug #20975 [Form] fix group sequence based validation (xabbuh)
58+
* bug #20599 [WebProfilerBundle] Display multiple HTTP headers in WDT (ro0NL)
59+
* bug #20799 [TwigBundle] do not try to register incomplete definitions (xabbuh)
60+
* bug #20961 [Validator] phpize default option values (xabbuh)
61+
* bug #20934 [FrameworkBundle] Fix PHP form templates on translatable attributes (ro0NL)
62+
* bug #20957 [FrameworkBundle] test for the Validator component to be present (xabbuh)
63+
* bug #20936 [DependencyInjection] Fix on-invalid attribute type in xsd (ogizanagi)
64+
* bug #20931 [VarDumper] Fix dumping by-ref variadics (nicolas-grekas)
65+
* bug #20749 [FrameworkBundle] Smarter default for framework.annotations (ogizanagi)
66+
* bug #20734 [Security] AbstractVoter->supportsAttribute gives false positive if attribute is zero (0) (martynas-foodpanda)
67+
* bug #14082 [config] Fix issue when key removed and left value only (zerustech)
68+
* bug #20910 [HttpFoundation] Fix cookie to string conversion for raw cookies (ro0NL)
69+
* bug #20909 Fix misresolved parameters in debug:config on 3.2 (chalasr)
70+
* bug #20904 [TwigBundle] Config is now a hard dependency (dunglas)
71+
* bug #20847 [Console] fixed BC issue with static closures (araines)
72+
1073
* 3.2.1 (2016-12-13)
1174

1275
* bug #20891 Add support for REDIS_URL environment variables. (robinvdvleuten)

UPGRADE-3.3.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ Finder
3030
------
3131

3232
* The `ExceptionInterface` has been deprecated and will be removed in 4.0.
33-
33+
3434
FrameworkBundle
3535
---------------
3636

3737
* The `Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConsoleCommandPass` has been deprecated. Use `Symfony\Component\Console\DependencyInjection\AddConsoleCommandPass` instead.
38-
38+
3939
HttpKernel
4040
-----------
4141

src/Symfony/Component/Cache/CacheItem.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function expiresAfter($time)
104104
*
105105
* @return static
106106
*
107-
* @throws InvalidArgumentException When $tag is not valid.
107+
* @throws InvalidArgumentException When $tag is not valid
108108
*/
109109
public function tag($tags)
110110
{
@@ -121,7 +121,7 @@ public function tag($tags)
121121
if (!isset($tag[0])) {
122122
throw new InvalidArgumentException('Cache tag length must be greater than zero');
123123
}
124-
if (isset($tag[strcspn($tag, '{}()/\@:')])) {
124+
if (false !== strpbrk($tag, '{}()/\@:')) {
125125
throw new InvalidArgumentException(sprintf('Cache tag "%s" contains reserved characters {}()/\@:', $tag));
126126
}
127127
$this->tags[$tag] = $tag;
@@ -135,7 +135,7 @@ public function tag($tags)
135135
*
136136
* @param string $key The key to validate
137137
*
138-
* @throws InvalidArgumentException When $key is not valid.
138+
* @throws InvalidArgumentException When $key is not valid
139139
*/
140140
public static function validateKey($key)
141141
{
@@ -145,7 +145,7 @@ public static function validateKey($key)
145145
if (!isset($key[0])) {
146146
throw new InvalidArgumentException('Cache key length must be greater than zero');
147147
}
148-
if (isset($key[strcspn($key, '{}()/\@:')])) {
148+
if (false !== strpbrk($key, '{}()/\@:')) {
149149
throw new InvalidArgumentException(sprintf('Cache key "%s" contains reserved characters {}()/\@:', $key));
150150
}
151151
}

0 commit comments

Comments
 (0)