Download src/php/php-src/ext/ldap/tests/ldap_constructor.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 297 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ldap/tests/ldap_constructor.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/ldap/tests/ldap_constructor.phpt
-
curl -L -o ldap_constructor.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ldap/tests/ldap_constructor.phpt
297 Bytes
| --TEST-- | |
| Attempt to instantiate an LDAP\Connection directly | |
| --EXTENSIONS-- | |
| ldap | |
| --FILE-- | |
| try { | |
| new LDAP\Connection(); | |
| } catch (Error $ex) { | |
| echo "Exception: ", $ex->getMessage(), "\n"; | |
| } | |
| --EXPECT-- | |
| Exception: Cannot directly construct LDAP\Connection, use ldap_connect() instead | |