--TEST-- ldap_first_reference() - Basic ldap_first_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=*)"); var_dump($ref = ldap_first_reference($link, $result)); $refs = null; ldap_parse_reference($link, $ref, $refs); var_dump($refs); ?> ===DONE=== --CLEAN-- LDAP_CONTROL_MANAGEDSAIT, 'iscritical' => TRUE]]); remove_dummy_data($link, $base); ?> --EXPECTF-- resource(%d) of type (ldap result entry) array(1) { [0]=> string(%d) "cn=userA,%s" } ===DONE===