summaryrefslogtreecommitdiff
path: root/Zend/tests/closure_048.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/closure_048.phpt')
-rw-r--r--Zend/tests/closure_048.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/tests/closure_048.phpt b/Zend/tests/closure_048.phpt
index 40f2e2fbac..47781641a8 100644
--- a/Zend/tests/closure_048.phpt
+++ b/Zend/tests/closure_048.phpt
@@ -4,13 +4,13 @@ Closure 048: Use in preg_replace_callback() using variables by reference
<?php
function replace_variables($text, $params) {
-
+
$c = function($matches) use (&$params, &$text) {
$text = preg_replace( '/(\?)/', array_shift( $params ), $text, 1 );
};
preg_replace_callback( '/(\?)/', $c, $text );
-
+
return $text;
}