com php-src: Use .= where possible: run-tests.php
| From: | Stanislav Malyshev | Date: | Sat, 09 Jun 2018 16:02:35 +0000 |
| Subject: | com php-src: Use .= where possible: run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102202@lists.php.net to get a copy of this message | ||
Commit: 3c3ef6dd26095c43adcd4bdfe2b4f084942186d5
Author: Nat Zimmermann <nat@ntzm.io> Sat, 9 Jun 2018 17:02:35 +0100
Parents: 1b767ac26bd3cd404824bbcc88335c818bd2de9a
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3c3ef6dd26095c43adcd4bdfe2b4f084942186d5
Log:
Use .= where possible
Changed paths:
M run-tests.php
Diff:
diff --git a/run-tests.php b/run-tests.php
index 4f40ca9..4007eb7 100644
--- a/run-tests.php
+++ b/run-tests.php
@@ -2069,10 +2069,10 @@ COMMAND $cmd
$start = $end = $length;
}
// quote a non re portion of the string
- $temp = $temp . preg_quote(substr($wanted_re, $startOffset, $start - $startOffset),
'/');
+ $temp .= preg_quote(substr($wanted_re, $startOffset, $start - $startOffset), '/');
// add the re unquoted.
if ($end > $start) {
- $temp = $temp . '(' . substr($wanted_re, $start+2, $end - $start-2). ')';
+ $temp .= '(' . substr($wanted_re, $start+2, $end - $start-2). ')';
}
$startOffset = $end + 2;
}