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

Skip to content

Commit 31ac13b

Browse files
committed
Merge branch '2.3'
* 2.3: (33 commits) [Form] fixed INF usage which does not work on Solaris (closes #8246) Fix grammar Removed PHP 5.5 from the allowed failures. [Intl] Fixed tests failing on PHP 5.5 bumped Symfony version to 2.2.4 updated VERSION for 2.2.3 update CONTRIBUTORS for 2.2.3 updated CHANGELOG for 2.2.3 [DependencyInjection] Replaced try/catch block with an @ExpectedException annotation in a test. [CssSelector] tweaked README file (closes #8287) added a node about HTML extension in readme [Console] Fixed the table rendering with multi-byte strings. Feature/fix unit tests [Process] Disable exception on stream_select timeout [HttpFoundation] fixed issue with session_regenerate_id (closes #7380) [DomCrawler] added a note about the default charset Throw exception if value is passed to VALUE_NONE input, long syntax fixed date type format pattern regex [Security] fixed usage of the salt for the bcrypt encoder (refs #8210) [FrameworkBundle] tweaked previous merge (refs #8242) ... Conflicts: src/Symfony/Component/HttpKernel/Kernel.php
2 parents 8fd817b + d7999d7 commit 31ac13b

File tree

31 files changed

+293
-97
lines changed

31 files changed

+293
-97
lines changed

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ php:
66
- 5.4
77
- 5.5
88

9-
matrix:
10-
allow_failures:
11-
- php: 5.5
12-
139
before_script:
1410
- echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
1511
- sh -c 'if [ $(php -r "echo PHP_MINOR_VERSION;") -le 4 ]; then echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;'

CHANGELOG-2.2.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,26 @@ in 2.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/v2.2.0...v2.2.1
99

10+
* 2.2.3 (2013-06-19)
11+
12+
* c0da3ae: [Process] Disable exception on stream_select timeout
13+
* 77f2aa8: [HttpFoundation] fixed issue with session_regenerate_id (closes #7380)
14+
* bcbbb28: Throw exception if value is passed to VALUE_NONE input, long syntax
15+
* 6b71513: fixed date type format pattern regex
16+
* 842f3fa: do not re-register commands each time a Console\Application is run
17+
* 0991cd0: [Process] moved env check to the Process class (refs #8227)
18+
* 8764944: fix issue where $_ENV contains array vals
19+
* 4139936: [DomCrawler] Fix handling file:// without a host
20+
* de289d2: [Form] corrected interface bind() method defined against in deprecation notice
21+
* 0c0a3e9: [Console] fixed regression when calling a command foo:bar if there is another one like foo:bar:baz (closes #8245)
22+
* 849f3ed: [Finder] Fix SplFileInfo::getContents isn't working with ssh2 protocol
23+
* 25e3abd: fix many-to-many Propel1 ModelChoiceList
24+
* bce6bd2: [DomCrawler] Fixed a fatal error when setting a value in a malformed field name.
25+
* 445b2e3: [Console] fix status code when Exception::getCode returns something like 0.1
26+
* bbfde62: Fixed exit code for exceptions with error code 0
27+
* afad9c7: instantiate valid commands only
28+
* 6d2135b: force the Content-Type to html in the web profiler controllers
29+
1030
* 2.2.2 (2013-06-02)
1131

1232
* 2038329: [Form] [Validator] Fixed post_max_size = 0 bug (Issue #8065)

CHANGELOG-2.3.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ in 2.3 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/v2.3.0...v2.3.1
99

10+
* 2.3.1 (2013-06-11)
11+
12+
* 25e3abd: fix many-to-many Propel1 ModelChoiceList
13+
* bce6bd2: [DomCrawler] Fixed a fatal error when setting a value in a malformed field name.
14+
* e3561ce: [FrameworkBundle] Fixed OutOfBoundException when session handler_id is null
15+
* 81b122d: [DependencyInjection] Add support for aliases of aliases + regression test
16+
* 445b2e3: [Console] fix status code when Exception::getCode returns something like 0.1
17+
* bbfde62: Fixed exit code for exceptions with error code 0
18+
* d8c0ef7: [DependencyInjection] Rename ContainerBuilder::$aliases to avoid conflicting with the parent class
19+
* bb797ee: [DependencyInjection] Remove get*Alias*Service methods from compiled containers
20+
* 379f5e0: [DependencyInjection] Fix aliased access of shared services, fixes #8096
21+
* afad9c7: instantiate valid commands only
22+
1023
* 2.3.0 (2013-06-03)
1124

1225
* e93fc7a: [FrameworkBundle] set the dispatcher in the console application

CONTRIBUTORS.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Symfony2 is the result of the work of many people who made the code better
99
- Victor Berchet (victor)
1010
- Jordi Boggiano (seldaek)
1111
- Johannes S (johannes)
12-
- Kris Wallsmith (kriswallsmith)
1312
- Tobias Schultze (tobion)
13+
- Kris Wallsmith (kriswallsmith)
1414
- Christophe Coevoet (stof)
1515
- Pascal Borreli (pborreli)
1616
- Karma Dordrak (drak)
@@ -51,20 +51,20 @@ Symfony2 is the result of the work of many people who made the code better
5151
- Hidenori Goto (hidenorigoto)
5252
- Fran Moreno (franmomu)
5353
- Andrej Hudec (pulzarraider)
54+
- Grégoire Pineau (lyrixx)
5455
- Lee McDermott
5556
- Brandon Turner
5657
- Daniel Holmes (dholmes)
5758
- Brikou Carré (brikou)
5859
- John Wards (johnwards)
59-
- Grégoire Pineau (lyrixx)
6060
- Antoine Hérault (herzult)
6161
- Bart van den Burg (burgov)
62+
- Toni Uebernickel (havvg)
6263
- Tim Nagel (merk)
6364
- Włodzimierz Gajda (gajdaw)
6465
- Michel Weimerskirch (mweimerskirch)
6566
- Christian Raue
6667
- Michal Piotrowski (eventhorizon)
67-
- Toni Uebernickel (havvg)
6868
- Colin Frei
6969
- lenar
7070
- Fabien Pennequin (fabienpennequin)
@@ -220,6 +220,7 @@ Symfony2 is the result of the work of many people who made the code better
220220
- Emanuele Gaspari (inmarelibero)
221221
- Brian King
222222
- Jan Schumann
223+
- Ruben Gonzalez (rubenrua)
223224
- Antonio J. García Lagar (ajgarlag)
224225
- Olivier Dolbeau (odolbeau)
225226
- Robert Kiss (kepten)
@@ -233,7 +234,9 @@ Symfony2 is the result of the work of many people who made the code better
233234
- Marcin Sikoń (marphi)
234235
- Miquel Rodríguez Telep (mrtorrent)
235236
- Filippo Tessarotto
237+
- Mark Sonnabaum
236238
- Adam Harvey
239+
- Pierre-Yves LEBECQ (pylebecq)
237240
- Laurent Bachelier (laurentb)
238241
- Fabian Lange (codingfabian)
239242
- Yoshio HANAWA
@@ -255,6 +258,7 @@ Symfony2 is the result of the work of many people who made the code better
255258
- alexpods
256259
- Erik Trapman (eriktrapman)
257260
- De Cock Xavier (xdecock)
261+
- Vitaliy Zakharov (zakharovvi)
258262
- Matthijs van den Bos
259263
- Joel Wurtz
260264
- Nils Adermann (naderman)
@@ -295,7 +299,6 @@ Symfony2 is the result of the work of many people who made the code better
295299
- Markus Bachmann (baachi)
296300
- aubx
297301
- Max Rath (drak3)
298-
- Ruben Gonzalez (rubenrua)
299302
- Sinan Eldem
300303
- DerManoMann
301304
- alquerci
@@ -322,12 +325,10 @@ Symfony2 is the result of the work of many people who made the code better
322325
- cedric lombardot (cedriclombardot)
323326
- John Kary (johnkary)
324327
- Hossein Bukhamsin
325-
- Pierre-Yves LEBECQ (pylebecq)
326328
- Fabrice Bernhard (fabriceb)
327329
- Oleg Zinchenko (cystbear)
328330
- Johannes Klauss (cloppy)
329331
- fzerorubigd
330-
- Mark Sonnabaum
331332
- develop
332333
- Atsuhiro KUBO (iteman)
333334
- Samy Dindane (dinduks)
@@ -374,7 +375,6 @@ Symfony2 is the result of the work of many people who made the code better
374375
- Luis Cordova (cordoval)
375376
- Philipp Kräutli (pkraeutli)
376377
- Stefano Sala (stefano.sala)
377-
- Vitaliy Zakharov (zakharovvi)
378378
- frost-nzcr4
379379
- Abhoryo
380380
- Fabian Vogler (fabian)
@@ -430,6 +430,7 @@ Symfony2 is the result of the work of many people who made the code better
430430
- xaav
431431
- Mahmoud Mostafa (mahmoud)
432432
- Juti Noppornpitak
433+
- lancergr
433434
- Mei Gwilym
434435
- ttomor
435436
- Sander Coolen
@@ -479,20 +480,23 @@ Symfony2 is the result of the work of many people who made the code better
479480
- DerManoMann
480481
- Roland Franssen (ro0)
481482
- Jochen Bayer (jocl)
483+
- Jerome TAMARELLE
482484
- Jeremy Bush
483485
- Evan Villemez
484486
- Péter Buri (burci)
485487
- Davide Borsatto (davide.borsatto)
486488
- kaiwa
487489
- Albert Ganiev (helios-ag)
488490
- Neil Katin
491+
- peter
489492
- Gustavo Adrian
490493
- Brooks Boyd
491494
- Roger Webb
492495
- Nicolas Fabre (nfabre)
493496
- Felicitus
494497
- Paul Matthews
495498
- Philipp Strube
499+
- Christian Sciberras
496500
- Clement Herreman (clemherreman)
497501
- Marco
498502
- Alberto Aldegheri
@@ -511,6 +515,7 @@ Symfony2 is the result of the work of many people who made the code better
511515
- Ludek Stepan
512516
- Balázs Benyó (duplabe)
513517
- Marc Morera (mmoreram)
518+
- Saem Ghani
514519
- Sebastian Utz
515520
- Keri Henare (kerihenare)
516521
- Cédric Lahouste (rapotor)
@@ -524,6 +529,7 @@ Symfony2 is the result of the work of many people who made the code better
524529
- Lance McNearney
525530
- Alberto Pirovano (geezmo)
526531
- Gabor Toth (tgabi333)
532+
- Martin Pärtel
527533
- Xavier Briand (xavierbriand)
528534
- Evan Kaufman
529535
- Romain Geissler
@@ -554,6 +560,7 @@ Symfony2 is the result of the work of many people who made the code better
554560
- Benjamin Bender
555561
- Konrad Mohrfeldt
556562
- Benoit Lévêque (benoit_leveque)
563+
- Stelian Mocanita (stelian)
557564
- jskvara
558565
- Mephistofeles
559566
- Hoffmann András
@@ -641,6 +648,7 @@ Symfony2 is the result of the work of many people who made the code better
641648
- partugal
642649
- Robert Campbell
643650
- Matt Lehner
651+
- Aleksey Podskrebyshev
644652
- cyrillej
645653
- Alex Pods
646654
- timaschew
@@ -686,15 +694,18 @@ Symfony2 is the result of the work of many people who made the code better
686694
- Nicolas A. Bérard-Nault
687695
- Gladhon
688696
- Saem Ghani
697+
- Stefan Oderbolz
689698
- Alexey Popkov
690699
- Piotr Błasiak
691700
- Arnaud Buathier (arnapou)
692701
- chesteroni (chesteroni)
702+
- Daniele Cesarini (ijanki)
693703
- Simon CONSTANS (kosssi)
694704
- Mauricio Lopez (sanctuary29)
695705
- Wotre
696706
- goohib
697707
- Xavier HAUSHERR
708+
- ghazy ben ahmed
698709
- Myke79
699710
- Brian Debuire
700711
- Lars Vierbergen

src/Symfony/Bundle/FrameworkBundle/Console/Application.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
class Application extends BaseApplication
2828
{
2929
private $kernel;
30+
private $commandsRegistered = false;
3031

3132
/**
3233
* Constructor.
@@ -65,7 +66,11 @@ public function getKernel()
6566
*/
6667
public function doRun(InputInterface $input, OutputInterface $output)
6768
{
68-
$this->registerCommands();
69+
if (!$this->commandsRegistered) {
70+
$this->registerCommands();
71+
72+
$this->commandsRegistered = true;
73+
}
6974

7075
$this->setDispatcher($this->kernel->getContainer()->get('event_dispatcher'));
7176

src/Symfony/Bundle/WebProfilerBundle/Controller/ExceptionController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function showAction($token)
5555
if (!$this->twig->getLoader()->exists($template)) {
5656
$handler = new ExceptionHandler();
5757

58-
return new Response($handler->getContent($exception));
58+
return new Response($handler->getContent($exception), 200, array('Content-Type' => 'text/html'));
5959
}
6060

6161
$code = $exception->getStatusCode();
@@ -69,7 +69,7 @@ public function showAction($token)
6969
'logger' => null,
7070
'currentContent' => '',
7171
)
72-
));
72+
), 200, array('Content-Type' => 'text/html'));
7373
}
7474

7575
/**
@@ -96,7 +96,7 @@ public function cssAction($token)
9696
return new Response($handler->getStylesheet($exception));
9797
}
9898

99-
return new Response($this->twig->render('@WebProfiler/Collector/exception.css.twig'));
99+
return new Response($this->twig->render('@WebProfiler/Collector/exception.css.twig'), 200, 'text/css');
100100
}
101101

102102
protected function getTemplate()

0 commit comments

Comments
 (0)