Doc #63042 [NEW]: Only one option can be added

From: Date: Sat, 08 Sep 2012 02:10:26 +0000
Subject: Doc #63042 [NEW]: Only one option can be added
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8822@lists.php.net to get a copy of this message
From: goran dot v dot miskovic at gmail dot org Operating system: Ubuntu 12.04 PHP version: Irrelevant Package: gearman Bug Type: Documentation Problem Bug description:Only one option can be added Description: ------------ --- From manual page: http://www.php.net/gearmanclient.setoptions#refsect1- gearmanclient.setoptions-description --- $ php -i | grep Version PHP Version => 5.3.10-1ubuntu3.2 $ php -i | grep gearman Additional .ini files parsed => /etc/php5/cli/conf.d/gearman.ini, gearman gearman support => enabled libgearman version => 0.27 $ pecl info gearman About pecl.php.net/gearman-1.0.2 Documentation reads that multiple options can be set at once while only a single option can be set at once. Function name is also misleading and it should be GearmanClient::setOption() but that is another topic. :) Test script: --------------- <?php $client = new GearmanClient(); $result = $client->addOptions(GEARMAN_CLIENT_NON_BLOCKING, GEARMAN_CLIENT_FREE_TASKS, GEARMAN_CLIENT_UNBUFFERED_RESULT); var_dump($result); Expected result: ---------------- bool(true) Actual result: -------------- PHP Fatal error: Uncaught exception 'ErrorException' with message 'GearmanClient::addOptions() expects exactly 1 parameter, 3 given' -- Edit bug report at https://bugs.php.net/bug.php?id=63042&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63042&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63042&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63042&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63042&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=63042&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=63042&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63042&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63042&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63042&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63042&r=support Expected behavior: https://bugs.php.net/fix.php?id=63042&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63042&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63042&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63042&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63042&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63042&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63042&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63042&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63042&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63042&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63042&r=mysqlcfg

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