#50687 [NEW]: array_reverse return values missing NULL

From: Date: Thu, 07 Jan 2010 17:39:20 +0000
Subject: #50687 [NEW]: array_reverse return values missing NULL
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3652@lists.php.net to get a copy of this message
From:             hanskrentel at yahoo dot de
Operating system: win
PHP version:      5.2.12
PHP Bug Type:     Documentation problem
Bug description:  array_reverse return values missing NULL

Description:
------------
array_reverse has array as documented return type. while running
var_dump(array_reverse(NULL)); it reported to me NULL. I
think some documentation is missing here.

Reproduce code:
---------------
---
From manual page: function.array-reverse#Return Values
---


Expected result:
----------------
array (Not that I personally would expect that, but the documentation).

Actual result:
--------------
null

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



Thread (5 messages)

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