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

Skip to content

Commit ad78743

Browse files
committed
Merge branch '2.8' into 3.3
* 2.8: Fixed the escaping of back slashes and << in console output bumped Symfony version to 2.8.28 updated VERSION for 2.8.27 updated CHANGELOG for 2.8.27 bumped Symfony version to 2.7.35 updated VERSION for 2.7.34 update CONTRIBUTORS for 2.7.34 updated CHANGELOG for 2.7.34
2 parents ec7a2b1 + 3956469 commit ad78743

File tree

3 files changed

+33
-21
lines changed

3 files changed

+33
-21
lines changed

CONTRIBUTORS.md

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Symfony is the result of the work of many people who made the code better
77
- Fabien Potencier (fabpot)
88
- Nicolas Grekas (nicolas-grekas)
99
- Bernhard Schussek (bschussek)
10-
- Tobias Schultze (tobion)
1110
- Christian Flothmann (xabbuh)
11+
- Tobias Schultze (tobion)
1212
- Christophe Coevoet (stof)
1313
- Jordi Boggiano (seldaek)
1414
- Victor Berchet (victor)
@@ -37,8 +37,8 @@ Symfony is the result of the work of many people who made the code better
3737
- Roland Franssen (ro0)
3838
- Eriksen Costa (eriksencosta)
3939
- Jules Pietri (heah)
40-
- Sarah Khalil (saro0h)
4140
- Guilhem Niot (energetick)
41+
- Sarah Khalil (saro0h)
4242
- Jonathan Wage (jwage)
4343
- Diego Saint Esteben (dosten)
4444
- Alexandre Salomé (alexandresalome)
@@ -65,20 +65,20 @@ Symfony is the result of the work of many people who made the code better
6565
- Michel Weimerskirch (mweimerskirch)
6666
- Eric Clemmons (ericclemmons)
6767
- Charles Sarrazin (csarrazi)
68-
- Christian Raue
6968
- Konstantin Myakshin (koc)
69+
- Christian Raue
70+
- Dany Maillard (maidmaid)
7071
- Arnout Boks (aboks)
72+
- Jérémy DERUSSÉ (jderusse)
7173
- Deni
7274
- Henrik Westphal (snc)
7375
- Dariusz Górecki (canni)
7476
- Jáchym Toušek (enumag)
7577
- Titouan Galopin (tgalopin)
7678
- Douglas Greenshields (shieldo)
77-
- Dany Maillard (maidmaid)
7879
- Lee McDermott
7980
- Brandon Turner
8081
- Luis Cordova (cordoval)
81-
- Jérémy DERUSSÉ (jderusse)
8282
- Graham Campbell (graham)
8383
- Daniel Holmes (dholmes)
8484
- Toni Uebernickel (havvg)
@@ -87,24 +87,24 @@ Symfony is the result of the work of many people who made the code better
8787
- Jérôme Tamarelle (gromnan)
8888
- John Wards (johnwards)
8989
- Dariusz Ruminski
90+
- Alexander M. Turek (derrabus)
9091
- Fran Moreno (franmomu)
9192
- Antoine Hérault (herzult)
93+
- Tobias Nyholm (tobias)
9294
- Paráda József (paradajozsef)
9395
- Issei Murasawa (issei_m)
9496
- Arnaud Le Blanc (arnaud-lb)
9597
- Maxime STEINHAUSSER
96-
- Alexander M. Turek (derrabus)
9798
- Michal Piotrowski (eventhorizon)
98-
- Tim Nagel (merk)
9999
- Yonel Ceruto González (yonelceruto)
100+
- Tim Nagel (merk)
100101
- Brice BERNARD (brikou)
101102
- Baptiste Clavié (talus)
102103
- Vladimir Reznichenko (kalessil)
103104
- marc.weistroff
104105
- lenar
105-
- Tobias Nyholm (tobias)
106-
- Włodzimierz Gajda (gajdaw)
107106
- Alexander Schwenn (xelaris)
107+
- Włodzimierz Gajda (gajdaw)
108108
- Jacob Dreesen (jdreesen)
109109
- Florian Voutzinos (florianv)
110110
- Colin Frei
@@ -152,7 +152,9 @@ Symfony is the result of the work of many people who made the code better
152152
- Rouven Weßling (realityking)
153153
- Teoh Han Hui (teohhanhui)
154154
- Clemens Tolboom
155+
- Oleg Voronkovich
155156
- Helmer Aaviksoo
157+
- Lars Strojny (lstrojny)
156158
- Hiromi Hishida (77web)
157159
- Matthieu Ouellette-Vachon (maoueh)
158160
- Michał Pipa (michal.pipa)
@@ -166,7 +168,6 @@ Symfony is the result of the work of many people who made the code better
166168
- Warnar Boekkooi (boekkooi)
167169
- Dmitrii Chekaliuk (lazyhammer)
168170
- Clément JOBEILI (dator)
169-
- Lars Strojny (lstrojny)
170171
- Possum
171172
- Dorian Villet (gnutix)
172173
- Richard Miller (mr_r_miller)
@@ -184,7 +185,6 @@ Symfony is the result of the work of many people who made the code better
184185
- Daniel Espendiller
185186
- sun (sun)
186187
- Larry Garfield (crell)
187-
- Oleg Voronkovich
188188
- Martin Schuhfuß (usefulthink)
189189
- apetitpa
190190
- Matthieu Bontemps (mbontemps)
@@ -336,9 +336,11 @@ Symfony is the result of the work of many people who made the code better
336336
- Damien Alexandre (damienalexandre)
337337
- Felix Labrecque
338338
- Yaroslav Kiliba
339+
- Amrouche Hamza
339340
- Terje Bråten
340341
- Robbert Klarenbeek (robbertkl)
341342
- Thomas Calvet (fancyweb)
343+
- Valentin Udaltsov (vudaltsov)
342344
- Niels Keurentjes (curry684)
343345
- JhonnyL
344346
- David Badura (davidbadura)
@@ -389,6 +391,7 @@ Symfony is the result of the work of many people who made the code better
389391
- Karel Souffriau
390392
- Christophe L. (christophelau)
391393
- Anthon Pang (robocoder)
394+
- Jérôme Parmentier (lctrs)
392395
- Emanuele Gaspari (inmarelibero)
393396
- Sébastien Santoro (dereckson)
394397
- Brian King
@@ -423,7 +426,6 @@ Symfony is the result of the work of many people who made the code better
423426
- Dirk Pahl (dirkaholic)
424427
- cedric lombardot (cedriclombardot)
425428
- Jonas Flodén (flojon)
426-
- Amrouche Hamza
427429
- Marcin Sikoń (marphi)
428430
- Dominik Zogg (dominik.zogg)
429431
- Marek Pietrzak
@@ -434,6 +436,7 @@ Symfony is the result of the work of many people who made the code better
434436
- Zander Baldwin
435437
- Adam Harvey
436438
- Maxime Veber (nek-)
439+
- Sanpi
437440
- Alex Bakhturin
438441
- Alexander Obuhovich (aik099)
439442
- boombatower
@@ -514,6 +517,7 @@ Symfony is the result of the work of many people who made the code better
514517
- Dave Hulbert (dave1010)
515518
- Ivan Rey (ivanrey)
516519
- Marcin Chyłek (songoq)
520+
- Ben Scott
517521
- Ned Schwartz
518522
- Ziumin
519523
- Jeremy Benoist
@@ -522,7 +526,6 @@ Symfony is the result of the work of many people who made the code better
522526
- Benjamin Laugueux (yzalis)
523527
- Zach Badgett (zachbadgett)
524528
- Aurélien Fredouelle
525-
- Jérôme Parmentier (lctrs)
526529
- Pavel Campr (pcampr)
527530
- Johnny Robeson (johnny)
528531
- Disquedur
@@ -594,7 +597,6 @@ Symfony is the result of the work of many people who made the code better
594597
- Ulumuddin Yunus (joenoez)
595598
- Luc Vieillescazes (iamluc)
596599
- Johann Saunier (prophet777)
597-
- Valentin Udaltsov (vudaltsov)
598600
- Michael Devery (mickadoo)
599601
- Antoine Corcy
600602
- Artur Eshenbrener
@@ -673,9 +675,11 @@ Symfony is the result of the work of many people who made the code better
673675
- Andrew Hilobok (hilobok)
674676
- Noah Heck (myesain)
675677
- Christian Soronellas (theunic)
678+
- Adam Szaraniec (mimol)
676679
- Yosmany Garcia (yosmanyga)
677680
- Wouter de Wild
678681
- Degory Valentine
682+
- izzyp
679683
- Benoit Lévêque (benoit_leveque)
680684
- Jeroen Fiege (fieg)
681685
- Krzysiek Łabuś
@@ -711,7 +715,6 @@ Symfony is the result of the work of many people who made the code better
711715
- Pierre Vanliefland (pvanliefland)
712716
- Sofiane HADDAG (sofhad)
713717
- frost-nzcr4
714-
- Sanpi
715718
- Abhoryo
716719
- Fabian Vogler (fabian)
717720
- Korvin Szanto
@@ -744,7 +747,6 @@ Symfony is the result of the work of many people who made the code better
744747
- Omar Yepez (oyepez003)
745748
- mwsaz
746749
- Jelle Kapitein
747-
- Ben Scott
748750
- Benoît Bourgeois
749751
- mantulo
750752
- corphi
@@ -879,6 +881,7 @@ Symfony is the result of the work of many people who made the code better
879881
- Boris Vujicic (boris.vujicic)
880882
- Max Beutel
881883
- Antanas Arvasevicius
884+
- Maximilian Berghoff (electricmaxxx)
882885
- nacho
883886
- Piotr Antosik (antek88)
884887
- Artem Lopata
@@ -912,6 +915,7 @@ Symfony is the result of the work of many people who made the code better
912915
- Matteo Giachino (matteosister)
913916
- Alex Demchenko (pilot)
914917
- Tadas Gliaubicas (tadcka)
918+
- Thanos Polymeneas (thanos)
915919
- Benoit Garret
916920
- Jakub Sacha
917921
- DerManoMann
@@ -1100,7 +1104,6 @@ Symfony is the result of the work of many people who made the code better
11001104
- Tomaz Ahlin
11011105
- Marcus Stöhr (dafish)
11021106
- Emmanuel Vella (emmanuel.vella)
1103-
- Adam Szaraniec (mimol)
11041107
- Carsten Nielsen (phreaknerd)
11051108
- Mathieu Rochette
11061109
- Jay Severson
@@ -1173,6 +1176,7 @@ Symfony is the result of the work of many people who made the code better
11731176
- César Suárez (csuarez)
11741177
- Nicolas Badey (nico-b)
11751178
- Shane Preece (shane)
1179+
- Johannes Goslar
11761180
- Geoff
11771181
- georaldc
11781182
- Malte Wunsch
@@ -1206,6 +1210,7 @@ Symfony is the result of the work of many people who made the code better
12061210
- catch
12071211
- Alexandre Segura
12081212
- Josef Cech
1213+
- Harold Iedema
12091214
- Arnau González (arnaugm)
12101215
- Simon Bouland (bouland)
12111216
- Matthew Foster (mfoster)
@@ -1238,7 +1243,6 @@ Symfony is the result of the work of many people who made the code better
12381243
- Dennis Væversted
12391244
- nuncanada
12401245
- flack
1241-
- izzyp
12421246
- František Bereň
12431247
- Mike Francis
12441248
- Christoph Nissle (derstoffel)
@@ -1479,6 +1483,7 @@ Symfony is the result of the work of many people who made the code better
14791483
- Ismail Asci (ismailasci)
14801484
- Simon CONSTANS (kosssi)
14811485
- Kristof Van Cauwenbergh (kristofvc)
1486+
- Paulius Jarmalavičius (pjarmalavicius)
14821487
- Ramon Henrique Ornelas (ramonornela)
14831488
- Markus S. (staabm)
14841489
- Till Klampaeckel (till)
@@ -1571,11 +1576,13 @@ Symfony is the result of the work of many people who made the code better
15711576
- Matt Janssen
15721577
- Peter Gribanov
15731578
- Ben Johnson
1579+
- Florent Mata
15741580
- kwiateusz
15751581
- David Soria Parra
15761582
- Sergiy Sokolenko
15771583
- dinitrol
15781584
- Penny Leach
1585+
- Yurii K
15791586
- Richard Trebichavský
15801587
- g123456789l
15811588
- Jonathan Vollebregt
@@ -1653,6 +1660,7 @@ Symfony is the result of the work of many people who made the code better
16531660
- samuel laulhau (lalop)
16541661
- Laurent Bachelier (laurentb)
16551662
- Florent Viel (luxifer)
1663+
- Matthieu Mota (matthieumota)
16561664
- Matthieu Moquet (mattketmo)
16571665
- Moritz Borgmann (mborgmann)
16581666
- Michal Čihař (mcihar)

src/Symfony/Component/Console/Formatter/OutputFormatter.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ public static function escapeTrailingBackslash($text)
5252
if ('\\' === substr($text, -1)) {
5353
$len = strlen($text);
5454
$text = rtrim($text, '\\');
55-
$text .= str_repeat('<<', $len - strlen($text));
55+
$text = str_replace("\0", '', $text);
56+
$text .= str_repeat("\0", $len - strlen($text));
5657
}
5758

5859
return $text;
@@ -167,8 +168,8 @@ public function format($message)
167168

168169
$output .= $this->applyCurrentStyle(substr($message, $offset));
169170

170-
if (false !== strpos($output, '<<')) {
171-
return strtr($output, array('\\<' => '<', '<<' => '\\'));
171+
if (false !== strpos($output, "\0")) {
172+
return strtr($output, array("\0" => '\\', '\\<' => '<'));
172173
}
173174

174175
return str_replace('\\<', '<', $output);

src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public function testLGCharEscaping()
2828
$formatter = new OutputFormatter(true);
2929

3030
$this->assertEquals('foo<bar', $formatter->format('foo\\<bar'));
31+
$this->assertEquals('foo << bar', $formatter->format('foo << bar'));
32+
$this->assertEquals('foo << bar \\', $formatter->format('foo << bar \\'));
33+
$this->assertEquals("foo << \033[32mbar \\ baz\033[39m \\", $formatter->format('foo << <info>bar \\ baz</info> \\'));
3134
$this->assertEquals('<info>some info</info>', $formatter->format('\\<info>some info\\</info>'));
3235
$this->assertEquals('\\<info>some info\\</info>', OutputFormatter::escape('<info>some info</info>'));
3336

0 commit comments

Comments
 (0)