Doc #72905 [NEW]: Return value of FALSE on error is not documented
| From: | james at turnersoft dot co dot uk | Date: | Sat, 20 Aug 2016 10:58:41 +0000 |
| Subject: | Doc #72905 [NEW]: Return value of FALSE on error is not documented | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-13841@lists.php.net to get a copy of this message | ||
From: james at turnersoft dot co dot uk
Operating system: Linux
PHP version: 7.0.10
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Return value of FALSE on error is not documented
Description:
------------
---
From manual page: http://www.php.net/function.ldap-explode-dn
---
The page describes the return value of ldap_explode_dn() as an array of
DN components.
This is not the only possibility - the behaviour is not documented that
the function will return FALSE if passed a value that it is unable to
parse.
(The function is a wrapper to OpenLDAP's ldap_explode_dn()... return
value FALSE corresponds to the underlying libldap call returning NULL.)
Test script:
---------------
var_dump(ldap_explode_dn("000:cn=DESCRIPTION_0",0));
Expected result:
----------------
The documentation only mentions an array as a possible return type from
this function.
Actual result:
--------------
The test script outputs "bool(false)".
--
Edit bug report at https://bugs.php.net/bug.php?id=72905&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72905&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72905&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72905&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72905&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72905&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72905&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72905&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72905&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72905&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72905&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72905&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72905&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72905&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72905&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72905&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72905&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72905&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72905&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72905&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72905&r=mysqlcfg