aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-12-04 13:46:01 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2012-12-04 13:46:01 -0500
commita553cfbc30472f136f9904d97bf4d09a7187518f (patch)
tree7ce3601fa4149cc3b2f074b2a77a18770f3e1fd7 /tests/lock
parent[ticket/10103] $rv had too few characters. (diff)
downloadphpbb-a553cfbc30472f136f9904d97bf4d09a7187518f.tar.gz
phpbb-a553cfbc30472f136f9904d97bf4d09a7187518f.tar.bz2
phpbb-a553cfbc30472f136f9904d97bf4d09a7187518f.zip
[ticket/10103] Inline assignment is bad?
PHPBB3-10103
Diffstat (limited to 'tests/lock')
-rw-r--r--tests/lock/flock_test.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lock/flock_test.php b/tests/lock/flock_test.php
index bc682f9410..abcb4e79c2 100644
--- a/tests/lock/flock_test.php
+++ b/tests/lock/flock_test.php
@@ -65,7 +65,8 @@ class phpbb_lock_flock_test extends phpbb_test_case
$path = __DIR__ . '/../tmp/precious';
- if ($pid = pcntl_fork())
+ $pid = pcntl_fork();
+ if ($pid)
{
// parent
// wait 0.5 s, acquire the lock, note how long it took