Permalink
Browse files

Merge pull request #16 from bmcgavin/master

Avoid call-time-pass-by-reference warnings on PHP 5.2.
Passes tests with php 5.3.6 looks ok.
  • Loading branch information...
2 parents 5153257 + 6ca2100 commit b1ed3a0dab318eb0f9099f664ed08bca928aa704 @olbrich committed Dec 2, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cuke4Php.php
View
@@ -251,7 +251,7 @@ function snippetText($aSnippet) {
$sMethodName = "step" . str_replace(" ", "", ucwords(preg_replace("/\W+/", " ", preg_replace("/\"[^\"]*\"/", "Parameter", $aSnippet->step_name))));
$count = 0;
$aParams = array();
- $sStepName = preg_replace("/\"[^\"]*\"/", "\"([^\"]*)\"", preg_quote($aSnippet->step_name), -1, &$count);
+ $sStepName = preg_replace("/\"[^\"]*\"/", "\"([^\"]*)\"", preg_quote($aSnippet->step_name), -1, $count);
for ($param = 1; $param <= $count; $param++) {
$aParams[] = "\$arg$param";
}
@@ -279,4 +279,4 @@ public function $sMethodName($sParams) {
}
}
-?>
+?>

0 comments on commit b1ed3a0

Please sign in to comment.