Bug #51427 [NEW]: Gearman Client AddTaskBackground - The status text is not echoed

From: Date: Mon, 29 Mar 2010 15:27:04 +0000
Subject: Bug #51427 [NEW]: Gearman Client AddTaskBackground - The status text is not echoed
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4120@lists.php.net to get a copy of this message
From: Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Bug Bug description:Gearman Client AddTaskBackground - The status text is not echoed 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 -- Edit bug report at http://bugs.php.net/bug.php?id=51427&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51427&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51427&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51427&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51427&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51427&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51427&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51427&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51427&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51427&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51427&r=support Expected behavior: http://bugs.php.net/fix.php?id=51427&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51427&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51427&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51427&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51427&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51427&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51427&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51427&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51427&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51427&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51427&r=mysqlcfg

« previous php.doc.bugs (#4120) next »