Doc #72905 [Opn->Ver]: Return value of FALSE on error is not documented

From: Date: Sat, 20 Aug 2016 11:11:09 +0000
Subject: Doc #72905 [Opn->Ver]: Return value of FALSE on error is not documented
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13842@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72905&edit=1 ID: 72905 Updated by: requinix@php.net Reported by: james at turnersoft dot co dot uk Summary: Return value of FALSE on error is not documented -Status: Open +Status: Verified Type: Documentation Problem -Package: Documentation problem +Package: LDAP related Operating System: Linux PHP Version: 7.0.10 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2016-08-20 10:58:35] james at turnersoft dot co dot uk 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 this bug report at https://bugs.php.net/bug.php?id=72905&edit=1

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