Download src/php/php-src/ext/ldap/tests/ldap_bind_basic.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 406 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ldap/tests/ldap_bind_basic.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/ldap/tests/ldap_bind_basic.phpt
-
curl -L -o ldap_bind_basic.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ldap/tests/ldap_bind_basic.phpt
406 Bytes
| --TEST-- | |
| ldap_bind() - Basic anonymous binding | |
| --CREDITS-- | |
| Patrick Allaert <patrickallaert@php.net> | |
| # Belgian PHP Testfest 2009 | |
| --EXTENSIONS-- | |
| ldap | |
| --SKIPIF-- | |
| require_once __DIR__ .'/skipifbindfailure.inc'; | |
| --FILE-- | |
| require "connect.inc"; | |
| $link = ldap_connect($uri); | |
| ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, $protocol_version); | |
| var_dump(ldap_bind($link)); | |
| --EXPECT-- | |
| bool(true) | |