Doc #63043 [NEW]: Only one option can be removed at time

From: Date: Sat, 08 Sep 2012 02:44:02 +0000
Subject: Doc #63043 [NEW]: Only one option can be removed at time
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8823@lists.php.net to get a copy of this message
From: goran dot v dot miskovic at gmail dot com Operating system: Ubuntu 12.04 PHP version: Irrelevant Package: gearman Bug Type: Documentation Problem Bug description:Only one option can be removed at time Description: ------------ --- From manual page: http://www.php.net/gearmanclient.removeoptions#refsect1- gearmanclient.removeoptions-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 one or more options can be removed at time while only one option can be removed at time. Test script: --------------- <?php $client = new GearmanClient(); $client->addOptions(GEARMAN_CLIENT_NON_BLOCKING); $client->addOptions(GEARMAN_CLIENT_FREE_TASKS); $client->addOptions(GEARMAN_CLIENT_UNBUFFERED_RESULT); $result = $client->removeOptions(GEARMAN_CLIENT_NON_BLOCKING, GEARMAN_CLIENT_FREE_TASKS, GEARMAN_CLIENT_UNBUFFERED_RESULT); var_dump($result); Expected result: ---------------- bool(true) Actual result: -------------- Fatal error: Uncaught exception 'ErrorException' with message 'GearmanClient::removeOptions() expects exactly 1 parameter, 3 given' -- Edit bug report at https://bugs.php.net/bug.php?id=63043&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63043&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63043&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63043&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63043&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=63043&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=63043&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63043&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63043&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63043&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63043&r=support Expected behavior: https://bugs.php.net/fix.php?id=63043&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63043&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63043&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63043&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63043&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63043&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63043&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63043&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63043&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63043&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63043&r=mysqlcfg

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