Doc #64801 [NEW]: gmp_testbit Return Values text inaccurate

From: Date: Thu, 09 May 2013 16:10:56 +0000
Subject: Doc #64801 [NEW]: gmp_testbit Return Values text inaccurate
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9803@lists.php.net to get a copy of this message
From:             phpbugs at personal dot formauri dot es
Operating system: 
PHP version:      Irrelevant
Package:          Documentation problem
Bug Type:         Documentation Problem
Bug description:gmp_testbit Return Values text inaccurate

Description:
------------
The Return Values of the gmp_testbit() function reads:

Returns TRUE on success or FALSE on failure.

Judging by the examples, that is incorrect. The function seems to return
TRUE if the tested bit is 1, and FALSE if it is 0.

(It is a bit of a stretch to consider a failure for a number to have a bit
set to zero in the given position.)



-- 
Edit bug report at https://bugs.php.net/bug.php?id=64801&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=64801&r=trysnapshot54
Try a snapshot (PHP 5.3):   https://bugs.php.net/fix.php?id=64801&r=trysnapshot53
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=64801&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64801&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64801&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64801&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64801&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64801&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64801&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64801&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=64801&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=64801&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64801&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64801&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64801&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64801&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64801&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64801&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64801&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64801&r=mysqlcfg



Thread (2 messages)

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