From:             kingoleg at mail dot ru
Operating system: all
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  array_pop() warning about FALSE

Description:
------------
I have found a "bug" on page function.array-pop.html

I read:

If array is empty (or is not an array), NULL will be returned. 

But there is a warning about FALSE:

This function may return Boolean FALSE, but may also return a non-Boolean
value which evaluates to FALSE, such as 0 or "". Please read the section
on Booleans for more information. Use the === operator for testing the
return value of this function.

So, I know, that this warning is exists in man of function that on failure
return (boolean)FALSE but can return (integer)0 that equal (in == sense) to
FALSE.

I think, that this warning is not needed on this page.

Reproduce code:
---------------
http://us2.php.net/manual/en/function.array-pop.php

Expected result:
----------------
There is no Warning about FALSE.

Actual result:
--------------
Warning about FALSE

-- 
Edit bug report at http://bugs.php.net/?id=29545&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29545&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29545&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29545&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29545&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29545&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29545&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29545&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29545&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29545&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29545&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29545&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29545&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29545&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29545&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29545&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29545&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29545&r=float

Reply via email to