--TEST-- ldap_parse_reference() - Basic ldap_parse_reference test --CREDITS-- Patrick Allaert # Belgian PHP Testfest 2009 --SKIPIF-- --FILE-- array("extensibleObject", "referral"), "cn" => "userref", "ref" => "cn=userA,$base", )); ldap_set_option($link, LDAP_OPT_DEREF, LDAP_DEREF_NEVER); $result = ldap_search($link, "$base", "(cn=*)"); $ref = ldap_first_reference($link, $result); $refs = null; var_dump( ldap_parse_reference($link, $ref, $refs), $refs ); ?> --CLEAN-- "2.16.840.1.113730.3.4.2"))); ldap_delete($link, "cn=userref,$base"); remove_dummy_data($link, $base); ?> --EXPECTF-- bool(true) array(1) { [0]=> string(%d) "cn=userA,%s" }