|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-03-29 18:03 UTC] markskilbeck@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: markskilbeck
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 16:00:01 2025 UTC |
Description: ------------ The worker script function reverse_fn, echo's text in this code segment # This status loop is not needed, just showing how it works for ($x= 0; $x < $workload_size; $x++) { echo "Sending status: " + $x + 1 . "/$workload_size complete\n"; $job->sendStatus($x+1, $workload_size); $job->sendData(substr($workload, $x, 1)); sleep(1); } The line echo "Sending status: " + $x + 1 . "/$workload_size complete\n"; Should read echo "Sending status: " . ($x + 1) . "/$workload_size complete\n"; Test script: --------------- $workload_size = 2; $x = 0; echo "Sending status: " + $x + 1 . "/$workload_size complete\n"; Expected result: ---------------- Sending status: 1/2 complete Actual result: -------------- 1/2 complete