summaryrefslogtreecommitdiff
path: root/Zend/tests/closure_003.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/closure_003.phpt')
-rw-r--r--Zend/tests/closure_003.phpt24
1 files changed, 12 insertions, 12 deletions
diff --git a/Zend/tests/closure_003.phpt b/Zend/tests/closure_003.phpt
index 6f5cc70bf1..64a956ed4f 100644
--- a/Zend/tests/closure_003.phpt
+++ b/Zend/tests/closure_003.phpt
@@ -4,21 +4,21 @@ Closure 003: Lambda with lexical variables (local scope)
<?php
function run () {
- $x = 4;
+ $x = 4;
- $lambda1 = function () use ($x) {
- echo "$x\n";
- };
+ $lambda1 = function () use ($x) {
+ echo "$x\n";
+ };
- $lambda2 = function () use (&$x) {
- echo "$x\n";
- };
+ $lambda2 = function () use (&$x) {
+ echo "$x\n";
+ };
- $lambda1();
- $lambda2();
- $x++;
- $lambda1();
- $lambda2();
+ $lambda1();
+ $lambda2();
+ $x++;
+ $lambda1();
+ $lambda2();
}
run();