|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-11-07 14:08 UTC] vrana@php.net
[2008-11-07 14:10 UTC] vrana@php.net
[2008-11-08 01:32 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 17:00:01 2025 UTC |
Description: ------------ The documentation for ldap_explode_dn says that the return value should be "Returns an array of all DN components.". Not only is this vague (a separate problem), it fails to document that the returned array is an associative array where the first key/value being 'count' => (integer), where the count is the total number of elements in the array. Reproduce code: --------------- $dn="cn=example,dc=example,dc=com"; var_dump(ldap_explode_dn($dn,0)); Expected result: ---------------- array(3) { [0]=> string(19) "cn=example" [1]=> string(19) "dc=example" [2]=> string(4) "dc=com" } Actual result: -------------- array(3) { ["count"]=> int(3) [0]=> string(19) "cn=example" [1]=> string(19) "dc=example" [2]=> string(4) "dc=com" }